diff options
Diffstat (limited to 'modules/swarm/.nix/derivation.nix')
| -rw-r--r-- | modules/swarm/.nix/derivation.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/swarm/.nix/derivation.nix b/modules/swarm/.nix/derivation.nix new file mode 100644 index 0000000..afd07ef --- /dev/null +++ b/modules/swarm/.nix/derivation.nix @@ -0,0 +1,38 @@ +{ lib +, stdenv +, scons +, clang-tools +, forstio +, pname +, version +, kel +}: + +stdenv.mkDerivation { + pname = "${pname}-swarm"; + inherit version; + src = ./..; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + # The module itself is forstio free -- it is schemas and arithmetic. forstio + # is here only for the test runner, exactly as in modules/core. + buildInputs = [ + forstio.core + kel.lbm.core + ]; + + doCheck = true; + + checkPhase = '' + scons test + ./bin/tests + ''; + + preferLocalBuild = true; + + outputs = [ "out" "dev" ]; +} |
