diff options
author | Claudius Holeksa <mail@keldu.de> | 2023-05-23 18:09:32 +0200 |
---|---|---|
committer | Claudius Holeksa <mail@keldu.de> | 2023-05-23 18:09:32 +0200 |
commit | c49d97a9c13fc9e3d012acb16e5ca511e4b04ca7 (patch) | |
tree | 033ef09ab0a70301acc16b3566f2826a63121399 |
nix: Adding initial setup
-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; +} |