diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-05-21 21:37:16 -0400 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-05-22 00:25:02 -0400 |
commit | 1dc6f15de995da2d0351b34c40215336e219cf82 (patch) | |
tree | 65c9b24cc6ff1f1e069db5b25409e0bb0fceed43 /pkgs/stdenv/darwin | |
parent | c5c66060484800ecd97a811157a31e9cdd2241b1 (diff) | |
download | nixlib-1dc6f15de995da2d0351b34c40215336e219cf82.tar nixlib-1dc6f15de995da2d0351b34c40215336e219cf82.tar.gz nixlib-1dc6f15de995da2d0351b34c40215336e219cf82.tar.bz2 nixlib-1dc6f15de995da2d0351b34c40215336e219cf82.tar.lz nixlib-1dc6f15de995da2d0351b34c40215336e219cf82.tar.xz nixlib-1dc6f15de995da2d0351b34c40215336e219cf82.tar.zst nixlib-1dc6f15de995da2d0351b34c40215336e219cf82.zip |
stdenv: define is* predicates with hostPlatform.is*
This is a saner default until stdenv's are removed altogether
Diffstat (limited to 'pkgs/stdenv/darwin')
-rw-r--r-- | pkgs/stdenv/darwin/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 8a517fddad8a..37587e3800d6 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -61,7 +61,7 @@ in rec { allowedRequisites ? null}: let thisStdenv = import ../generic { - inherit system config shell extraBuildInputs allowedRequisites; + inherit config shell extraBuildInputs allowedRequisites; name = "stdenv-darwin-boot-${toString step}"; @@ -87,6 +87,10 @@ in rec { ${extraPreHook} ''; initialPath = [ bootstrapTools ]; + + hostPlatform = localSystem; + targetPlatform = localSystem; + fetchurlBoot = import ../../build-support/fetchurl { stdenv = stage0.stdenv; curl = bootstrapTools; @@ -268,7 +272,7 @@ in rec { }; stdenvDarwin = prevStage: let pkgs = prevStage; in import ../generic rec { - inherit system config; + inherit config; inherit (pkgs.stdenv) fetchurlBoot; name = "stdenv-darwin"; @@ -280,6 +284,9 @@ in rec { stdenvSandboxProfile = binShClosure + libSystemProfile; extraSandboxProfile = binShClosure + libSystemProfile; + hostPlatform = localSystem; + targetPlatform = localSystem; + initialPath = import ../common-path.nix { inherit pkgs; }; shell = "${pkgs.bash}/bin/bash"; |