mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
nix: move fetch-zig-cache script into nix/build-support
This commit is contained in:
@ -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}")")"
|
||||||
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
Reference in New Issue
Block a user