nix: move fetch-zig-cache script into nix/build-support

This commit is contained in:
Jeffrey C. Ollie
2024-09-27 20:40:03 -05:00
parent a9b04037b4
commit 21a7e40510
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ trap 'rm -rf "${ZIG_GLOBAL_CACHE_DIR}"' EXIT
# Run Zig and download the cache to the temporary directory. # Run Zig and download the cache to the temporary directory.
sh ./fetch-zig-cache.sh sh ./nix/build-support/fetch-zig-cache.sh
# Now, calculate the hash. # Now, calculate the hash.
ZIG_CACHE_HASH="sha256-$(nix-hash --type sha256 --to-base64 "$(nix-hash --type sha256 "${ZIG_GLOBAL_CACHE_DIR}")")" ZIG_CACHE_HASH="sha256-$(nix-hash --type sha256 --to-base64 "$(nix-hash --type sha256 "${ZIG_GLOBAL_CACHE_DIR}")")"

View File

@ -56,7 +56,7 @@
../vendor ../vendor
../build.zig ../build.zig
../build.zig.zon ../build.zig.zon
../fetch-zig-cache.sh ./build-support/fetch-zig-cache.sh
] ]
); );
}; };
@ -91,7 +91,7 @@
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
sh ./fetch-zig-cache.sh sh ./nix/build-support/fetch-zig-cache.sh
runHook postBuild runHook postBuild
''; '';