bootstrap: avoid ever invoking mkNixpkgs without the localSystem
argument
apparently importing nixpkgs and then `override`ing with `localSystem` isn't enough; it needs `localSystem` from the start.
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
mkPkgs = branch: args: (
|
mkPkgs = branch: args: (
|
||||||
(import ./pkgs/by-name/nixpkgs-bootstrap/${branch}.nix {}).override args
|
import ./pkgs/by-name/nixpkgs-bootstrap/${branch}.nix args
|
||||||
).extend (import ./overlays/all.nix);
|
).extend (import ./overlays/all.nix);
|
||||||
pkgs = mkPkgs "master" { inherit localSystem; };
|
pkgs = mkPkgs "master" { inherit localSystem; };
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
|
@@ -5,11 +5,12 @@
|
|||||||
# - nix hash to-sri sha256:xyz
|
# - nix hash to-sri sha256:xyz
|
||||||
# - paste the output as the new `sha256`
|
# - paste the output as the new `sha256`
|
||||||
{
|
{
|
||||||
mkNixpkgs ? import ./mkNixpkgs.nix {}
|
mkNixpkgs ? import ./mkNixpkgs.nix {},
|
||||||
}:
|
...
|
||||||
mkNixpkgs {
|
}@args:
|
||||||
|
mkNixpkgs ({
|
||||||
rev = "5db39d669a21ca7f0e76c295e7664b9d938b7042";
|
rev = "5db39d669a21ca7f0e76c295e7664b9d938b7042";
|
||||||
sha256 = "sha256-SUZZMAn19X3Ym6lVb18LoXhCS2yicrRr83si5VyJDS0=";
|
sha256 = "sha256-SUZZMAn19X3Ym6lVb18LoXhCS2yicrRr83si5VyJDS0=";
|
||||||
version = "0-unstable-2025-02-28";
|
version = "0-unstable-2025-02-28";
|
||||||
branch = "master";
|
branch = "master";
|
||||||
}
|
} // args)
|
||||||
|
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
mkNixpkgs ? import ./mkNixpkgs.nix {}
|
mkNixpkgs ? import ./mkNixpkgs.nix {},
|
||||||
}:
|
...
|
||||||
mkNixpkgs {
|
}@args:
|
||||||
|
mkNixpkgs ({
|
||||||
rev = "749375426d72ead4bdac625818e7be62a6bbbaf4";
|
rev = "749375426d72ead4bdac625818e7be62a6bbbaf4";
|
||||||
sha256 = "sha256-IDxPfbSdIy7XAP1hneGOfr2jsj+hFUsvFhpRksYqols=";
|
sha256 = "sha256-IDxPfbSdIy7XAP1hneGOfr2jsj+hFUsvFhpRksYqols=";
|
||||||
version = "0-unstable-2025-02-28";
|
version = "0-unstable-2025-02-28";
|
||||||
branch = "staging-next";
|
branch = "staging-next";
|
||||||
}
|
} // args)
|
||||||
|
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
mkNixpkgs ? import ./mkNixpkgs.nix {}
|
mkNixpkgs ? import ./mkNixpkgs.nix {},
|
||||||
}:
|
...
|
||||||
mkNixpkgs {
|
}@args:
|
||||||
|
mkNixpkgs ({
|
||||||
rev = "29dcbf482396b9e5bdf1ec92973a8451e0aaa1d5";
|
rev = "29dcbf482396b9e5bdf1ec92973a8451e0aaa1d5";
|
||||||
sha256 = "sha256-ps1xz98RAUqrT+V7GFpzf/uHaoh9o5ZoOpE7SnSB6sY=";
|
sha256 = "sha256-ps1xz98RAUqrT+V7GFpzf/uHaoh9o5ZoOpE7SnSB6sY=";
|
||||||
version = "0-unstable-2025-02-28";
|
version = "0-unstable-2025-02-28";
|
||||||
branch = "staging";
|
branch = "staging";
|
||||||
}
|
} // args)
|
||||||
|
Reference in New Issue
Block a user