diff --git a/nix/build-support/check-zig-cache-hash.sh b/nix/build-support/check-zig-cache-hash.sh index ad51af2e4..49ea29ffb 100755 --- a/nix/build-support/check-zig-cache-hash.sh +++ b/nix/build-support/check-zig-cache-hash.sh @@ -34,7 +34,7 @@ trap 'rm -rf "${ZIG_GLOBAL_CACHE_DIR}"' EXIT # 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. ZIG_CACHE_HASH="sha256-$(nix-hash --type sha256 --to-base64 "$(nix-hash --type sha256 "${ZIG_GLOBAL_CACHE_DIR}")")" diff --git a/fetch-zig-cache.sh b/nix/build-support/fetch-zig-cache.sh similarity index 100% rename from fetch-zig-cache.sh rename to nix/build-support/fetch-zig-cache.sh diff --git a/nix/package.nix b/nix/package.nix index d6c294b86..fccaf1c92 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -56,7 +56,7 @@ ../vendor ../build.zig ../build.zig.zon - ../fetch-zig-cache.sh + ./build-support/fetch-zig-cache.sh ] ); }; @@ -91,7 +91,7 @@ buildPhase = '' runHook preBuild - sh ./fetch-zig-cache.sh + sh ./nix/build-support/fetch-zig-cache.sh runHook postBuild '';