summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-01-28 11:24:30 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-01-28 11:24:30 +0100
commit1d81ab6f66b5efd6b4d291762935866930731152 (patch)
tree0a5b12ef94d4fd4c0cd3f5d9626d6447aa110ad2 /default.nix
parent624f5d8181a449f36950503859271e1a052e8a65 (diff)
downloadlibs-lbm-1d81ab6f66b5efd6b4d291762935866930731152.tar.gz
Reworked fetching due to unstable fetchTarball
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";