summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.nix/derivation.nix26
-rw-r--r--default.nix13
2 files changed, 39 insertions, 0 deletions
diff --git a/.nix/derivation.nix b/.nix/derivation.nix
new file mode 100644
index 0000000..cf887cd
--- /dev/null
+++ b/.nix/derivation.nix
@@ -0,0 +1,26 @@
+{ lib
+, stdenvNoCC
+, scons
+, clang
+, forstio
+}:
+
+stdenvNoCC.mkDerivation {
+ pname = "kel-unit";
+ version = "0.0.0";
+ src = ./..;
+
+ nativeBuildInputs = [
+ scons
+ clang
+ ];
+
+ buildInputs = [
+ forstio.core
+ forstio.async
+ forstio.io
+ forstio.codec
+ ];
+
+ outputs = [ "out" ];
+}
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..c4bf675
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,13 @@
+{ pkgs ? import <nixpkgs> {}
+}:
+
+let
+ forstio = (import ((builtins.fetchGit {
+ url = "git@git.keldu.de:forstio/forstio";
+ ref = "dev";
+
+ }).outPath + "/default.nix"){}).forstio;
+
+in pkgs.callPackage ./.nix/derivation.nix {
+ inherit forstio;
+}