diff options
-rw-r--r-- | .nix/derivation.nix | 24 | ||||
-rw-r--r-- | default.nix | 18 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.nix/derivation.nix b/.nix/derivation.nix new file mode 100644 index 0000000..6b1f4f7 --- /dev/null +++ b/.nix/derivation.nix @@ -0,0 +1,24 @@ +{ lib +, stdenvNoCC +, scons +, clang +, forstio +, kel-unit +}: + +stdenvNoCC.mkDerivation { + pname = "kel-lbm"; + version = "0.0.0"; + src = ./..; + + nativeBuildInputs = [ + scons + clang + ]; + + buildInputs = [ + kel-unit + ]; + + outputs = [ "out" ]; +} diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..f93b364 --- /dev/null +++ b/default.nix @@ -0,0 +1,18 @@ +{ pkgs ? import <nixpkgs> {} +}: + +let + forstio = (import ((builtins.fetchGit { + url = "git@git.keldu.de:forstio/forstio"; + ref = "dev"; + }).outPath + "/default.nix"){}).forstio; + + kel-unit = (import ((builtins.fetchGit { + url = "git@git.keldu.de:libs/unit"; + ref = "dev"; + }).outPath + "/default.nix"){}); + +in pkgs.callPackage ./.nix/derivation.nix { + inherit forstio; + inherit kel-unit; +} |