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:
Artemis Tosini 2023-10-20 22:38:28 +00:00
parent 5c78e5b4aa
commit 76d0d657d6
No known key found for this signature in database
GPG Key ID: EE5227935FE3FF18
3 changed files with 7 additions and 4 deletions

View File

@ -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;

View File

@ -12,12 +12,13 @@
#
{ lib
, hostPlatform
, fetchFromGitHub
, fetchpatch
}:
let
expected = import ./bootstrap-sources.nix { };
expected = import ./bootstrap-sources.nix { inherit hostPlatform; };
in
fetchFromGitHub {

View File

@ -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 { };