From 28a4e20052411f2dfd5578207449332d4e515b10 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 30 Jul 2024 00:22:51 +0200 Subject: wip --- .nix/derivation.nix | 31 +++++++++++++++++++++++++++++++ default.nix | 20 ++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .nix/derivation.nix create mode 100644 default.nix 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 {} +, 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; +} -- cgit v1.2.3