diff options
author | Artemis Tosini <me@artem.ist> | 2023-10-20 22:38:28 +0000 |
---|---|---|
committer | Artemis Tosini <me@artem.ist> | 2023-10-20 23:48:18 +0000 |
commit | 76d0d657d6b351d5428af1de984a1a6782132683 (patch) | |
tree | 5290b0623d6d7007d122510c1b20dc25b95b5290 /pkgs/os-specific | |
parent | 5c78e5b4aa516bd7c34718e219abfefe6bc62e55 (diff) |
minimal-bootstrap: fix build in flakes
The minimal bootstrap sources currently rely on builtins.currentSystem, which is not available in restricted evaluation mode.
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/bootstrap-sources.nix | 4 | ||||
-rw-r--r-- | pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/make-bootstrap-sources.nix | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/bootstrap-sources.nix b/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/bootstrap-sources.nix index a0663c9dbe4f9..715d261eea4f5 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/bootstrap-sources.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/bootstrap-sources.nix @@ -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; diff --git a/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/make-bootstrap-sources.nix b/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/make-bootstrap-sources.nix index 381902cd2c129..6cc7cddb82af4 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/make-bootstrap-sources.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/stage0-posix/make-bootstrap-sources.nix @@ -12,12 +12,13 @@ # { lib +, hostPlatform , fetchFromGitHub , fetchpatch }: let - expected = import ./bootstrap-sources.nix { }; + expected = import ./bootstrap-sources.nix { inherit hostPlatform; }; in fetchFromGitHub { |