diff options
author | Claudius Holeksa <mail@keldu.de> | 2023-06-19 20:06:10 +0200 |
---|---|---|
committer | Claudius Holeksa <mail@keldu.de> | 2023-06-19 20:06:10 +0200 |
commit | 530578103251ea4e34a3c4f7df0c93e5a5e86e18 (patch) | |
tree | 47e74452de832e0973ee42e34dc73dc1e2e038f2 | |
parent | 801461d74059586742d9ed23dafd203a071c09c0 (diff) |
nix: Fixed clang version setting
-rw-r--r-- | .nix/derivation.nix | 2 | ||||
-rw-r--r-- | default.nix | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/.nix/derivation.nix b/.nix/derivation.nix index 94f5bb7..9ec1e4b 100644 --- a/.nix/derivation.nix +++ b/.nix/derivation.nix @@ -2,6 +2,7 @@ , stdenvNoCC , scons , clang +, clang-tools , forstio }: @@ -13,6 +14,7 @@ stdenvNoCC.mkDerivation { nativeBuildInputs = [ scons clang + clang-tools; ]; buildInputs = [ diff --git a/default.nix b/default.nix index c4bf675..2bb91d8 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,6 @@ { pkgs ? import <nixpkgs> {} +, clang ? pkgs.clang_15 +, clang-tools ? pkgs.clang-tools_15 }: let @@ -6,8 +8,13 @@ let url = "git@git.keldu.de:forstio/forstio"; ref = "dev"; - }).outPath + "/default.nix"){}).forstio; + }).outPath + "/default.nix"){ + inherit clang; + inherit clang-tools; + }).forstio; in pkgs.callPackage ./.nix/derivation.nix { inherit forstio; + inherit clang; + inherit clang-tools; } |