core: update zig2nix to use explicit Zig version from Nix (#6617)

This will avoid build breakage in the near future as Zig 0.14 is coming
to Nix.
This commit is contained in:
Leah Amelia Chen
2025-03-07 20:42:13 +01:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

4
build.zig.zon.nix generated
View File

@ -5,7 +5,7 @@
fetchurl, fetchurl,
fetchgit, fetchgit,
runCommandLocal, runCommandLocal,
zig, zig_0_13,
name ? "zig-packages", name ? "zig-packages",
}: }:
with builtins; with builtins;
@ -16,7 +16,7 @@ with lib; let
}: }:
runCommandLocal name runCommandLocal name
{ {
nativeBuildInputs = [zig]; nativeBuildInputs = [zig_0_13];
} }
'' ''
hash="$(zig fetch --global-cache-dir "$TMPDIR" ${artifact})" hash="$(zig fetch --global-cache-dir "$TMPDIR" ${artifact})"

8
flake.lock generated
View File

@ -125,16 +125,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1738263917, "lastModified": 1741368279,
"narHash": "sha256-j/3fwe2pEOquHabP/puljOKwAZFjIE9gXZqA91sC48M=", "narHash": "sha256-WTaC8HmnIq6O71iK0g9as404BbmS+YyEP5qS85m2JBY=",
"owner": "jcollie", "owner": "jcollie",
"repo": "zig2nix", "repo": "zig2nix",
"rev": "c311d8e77a6ee0d995f40a6e10a89a3a4ab04f9a", "rev": "672971b5b6911de21446ad4fc76dee677922eda0",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "jcollie", "owner": "jcollie",
"ref": "c311d8e77a6ee0d995f40a6e10a89a3a4ab04f9a", "ref": "672971b5b6911de21446ad4fc76dee677922eda0",
"repo": "zig2nix", "repo": "zig2nix",
"type": "github" "type": "github"
} }

View File

@ -26,7 +26,7 @@
}; };
zig2nix = { zig2nix = {
url = "github:jcollie/zig2nix?ref=c311d8e77a6ee0d995f40a6e10a89a3a4ab04f9a"; url = "github:jcollie/zig2nix?ref=672971b5b6911de21446ad4fc76dee677922eda0";
inputs = { inputs = {
nixpkgs.follows = "nixpkgs-stable"; nixpkgs.follows = "nixpkgs-stable";
flake-utils.follows = "flake-utils"; flake-utils.follows = "flake-utils";