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