summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.nix/derivation.nix31
-rw-r--r--default.nix20
2 files changed, 51 insertions, 0 deletions
diff --git a/.nix/derivation.nix b/.nix/derivation.nix
new file mode 100644
index 0000000..e67f767
--- /dev/null
+++ b/.nix/derivation.nix
@@ -0,0 +1,31 @@
+{ lib
+, stdenv
+, scons
+, clang-tools
+, version
+, forstio
+}:
+
+stdenv.mkDerivation {
+ pname = "kelauth";
+ inherit version;
+ src = ./..;
+
+ enableParallelBuilding = true;
+
+ nativeBuildInputs = [
+ scons
+ clang-tools
+ ];
+
+ buildInputs = [
+ forstio.core
+ forstio.async
+ forstio.codec
+ forstio.io
+ forstio.remote
+ forstio.remote-fs
+ ];
+
+ outputs = ["out" "dev"];
+}
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..e9e3f33
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,20 @@
+{ pkgs ? import <nixpkgs> {}
+, stdenv ? pkgs.llvmPackages_16.stdenv
+, clang-tools ? pkgs.clang-tools_16
+, forstio ? (import ((builtins.fetchGit {
+ url = "git@git.keldu.de:forstio/forstio";
+ ref = "dev";
+ }).outPath + "/default.nix"){
+ inherit stdenv;
+ inherit clang-tools;
+ }).forstio
+}:
+
+let
+ version = "0.0.0";
+in pkgs.callPackage ./.nix/derivation.nix {
+ inherit stdenv;
+ inherit clang-tools;
+ inherit version;
+ inherit forstio;
+}