From e821d617802ebbfff756844e4d9720342fc78a4e Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 13 Nov 2026 14:12:49 +0100 Subject: Swarm POC --- modules/swarm/.nix/derivation.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 modules/swarm/.nix/derivation.nix (limited to 'modules/swarm/.nix/derivation.nix') 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" ]; +} -- cgit v1.3.1