diff options
Diffstat (limited to 'modules/window-vulkan/.nix')
-rw-r--r-- | modules/window-vulkan/.nix/derivation.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/window-vulkan/.nix/derivation.nix b/modules/window-vulkan/.nix/derivation.nix new file mode 100644 index 0000000..086e200 --- /dev/null +++ b/modules/window-vulkan/.nix/derivation.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, scons +, clang-tools +, version +, forstio +, xorg +}: + +let + +in stdenv.mkDerivation { + pname = "forstio-window-vulkan"; + inherit version; + src = ./..; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + buildInputs = [ + forstio.core + forstio.async + forstio.io + forstio.codec + forstio.window + xorg.libX11 + xorg.libxcb + ]; + + doCheck = false; + checkPhase = '' + scons test + ./bin/tests + ''; + + outputs = ["out" "dev"]; +} |