diff options
Diffstat (limited to 'modules/png/.nix/derivation.nix')
| -rw-r--r-- | modules/png/.nix/derivation.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/png/.nix/derivation.nix b/modules/png/.nix/derivation.nix new file mode 100644 index 0000000..6e52083 --- /dev/null +++ b/modules/png/.nix/derivation.nix @@ -0,0 +1,38 @@ +{ lib +, stdenv +, scons +, clang-tools +, pname +, version +, forstio +, kel-lbm +, adaptive-cpp +}: + +stdenv.mkDerivation { + pname = "${pname}-png"; + inherit version; + src = ./..; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + buildInputs = [ + forstio.core + forstio.async + forstio.codec + kel-lbm.core + ]; + + doCheck = true; + checkPhase = '' + scons test + ./bin/tests + ''; + + preferLocalBuild = true; + + outputs = [ "out" "dev" ]; +} |
