summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-07-30 00:22:51 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-07-30 00:22:51 +0200
commit28a4e20052411f2dfd5578207449332d4e515b10 (patch)
tree9fc1402fa3a99b611a4583cf63c156359a58e2f1
parentff4f8f1200aefbe7618dc02cc47915cefcc00940 (diff)
wip
-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;
+}