summaryrefslogtreecommitdiff
path: root/modules/swarm/.nix/derivation.nix
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-11-13 14:12:49 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-11-13 14:12:49 +0100
commite821d617802ebbfff756844e4d9720342fc78a4e (patch)
tree1dcf33b84698b5074218e44ea491b77a9c23ee66 /modules/swarm/.nix/derivation.nix
parent0c0087ef9482634273ec1a23d3a915754f94926d (diff)
downloadlibs-lbm-e821d617802ebbfff756844e4d9720342fc78a4e.tar.gz
Swarm POCdev
Diffstat (limited to 'modules/swarm/.nix/derivation.nix')
-rw-r--r--modules/swarm/.nix/derivation.nix38
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" ];
+}