mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
minimal-bootstrap: fix build in flakes
The minimal bootstrap sources currently rely on builtins.currentSystem, which is not available in restricted evaluation mode.
This commit is contained in:
parent
5c78e5b4aa
commit
76d0d657d6
@ -1,4 +1,4 @@
|
||||
{
|
||||
{ hostPlatform
|
||||
}:
|
||||
|
||||
rec {
|
||||
@ -65,7 +65,7 @@ rec {
|
||||
*/
|
||||
minimal-bootstrap-sources = derivation {
|
||||
inherit name;
|
||||
system = builtins.currentSystem;
|
||||
system = hostPlatform.system;
|
||||
outputHashMode = "recursive";
|
||||
inherit outputHashAlgo outputHash;
|
||||
|
||||
|
@ -12,12 +12,13 @@
|
||||
#
|
||||
|
||||
{ lib
|
||||
, hostPlatform
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
let
|
||||
expected = import ./bootstrap-sources.nix { };
|
||||
expected = import ./bootstrap-sources.nix { inherit hostPlatform; };
|
||||
in
|
||||
|
||||
fetchFromGitHub {
|
||||
|
@ -28322,7 +28322,9 @@ with pkgs;
|
||||
checkMeta = callPackage ../stdenv/generic/check-meta.nix { };
|
||||
});
|
||||
minimal-bootstrap-sources = callPackage ../os-specific/linux/minimal-bootstrap/stage0-posix/bootstrap-sources.nix { };
|
||||
make-minimal-bootstrap-sources = callPackage ../os-specific/linux/minimal-bootstrap/stage0-posix/make-bootstrap-sources.nix { };
|
||||
make-minimal-bootstrap-sources = callPackage ../os-specific/linux/minimal-bootstrap/stage0-posix/make-bootstrap-sources.nix {
|
||||
inherit (stdenv) hostPlatform;
|
||||
};
|
||||
|
||||
mingetty = callPackage ../os-specific/linux/mingetty { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user