summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix31
1 files changed, 23 insertions, 8 deletions
diff --git a/default.nix b/default.nix
index d46eed5..9068e76 100644
--- a/default.nix
+++ b/default.nix
@@ -36,14 +36,29 @@ let
llvmPackages = pkgs.llvmPackages_19;
lld = pkgs.lld_19;
};
-
- forstio = (import ((builtins.fetchTarball {
- url = "https://git.keldu.de/forstio-forstio/snapshot/master.tar.gz";
- sha256 = "sha256:0078544k33h6ihhzz1150xs9zcywdmb6y8p16038v488kblvh3nc";
- }) + "/default.nix"){
- inherit stdenv;
- inherit clang-tools;
- inherit adaptive-cpp;
+ forstio = let
+ forstioSrc = stdenv.mkDerivation {
+ name = "forstio-src";
+
+ src = builtins.fetchurl {
+ url = "https://git.keldu.de/forstio-forstio/snapshot/master.tar.gz";
+ sha256 = "e91c18fef798dd7b3afbd1615c2e320b90d74aa2d7ef726801a76e3f7f77ae81";
+ };
+
+ phases = [ "unpackPhase" "installPhase" ];
+
+ unpackPhase = ''
+ mkdir source
+ tar -xzf "$src" -C source --strip-components=1
+ '';
+
+ installPhase = ''
+ cp -r source $out
+ '';
+ };
+ in
+ (import "${forstioSrc}/default.nix" {
+ inherit stdenv clang-tools adaptive-cpp;
}).forstio;
pname = "kel-lbm";