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/freebsd/default.nix | |
parent | c5c66060484800ecd97a811157a31e9cdd2241b1 (diff) |
stdenv: define is* predicates with hostPlatform.is*
This is a saner default until stdenv's are removed altogether
Diffstat (limited to 'pkgs/stdenv/freebsd/default.nix')
-rw-r--r-- | pkgs/stdenv/freebsd/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/stdenv/freebsd/default.nix b/pkgs/stdenv/freebsd/default.nix index b926c6bdd901..474a467e90c3 100644 --- a/pkgs/stdenv/freebsd/default.nix +++ b/pkgs/stdenv/freebsd/default.nix @@ -35,8 +35,10 @@ let inherit (localSystem) system; in stdenv = import ../generic { name = "stdenv-freebsd-boot-1"; - inherit system config; + inherit config; initialPath = [ "/" "/usr" ]; + hostPlatform = localSystem; + targetPlatform = localSystem; shell = "${bootstrapTools}/bin/bash"; fetchurlBoot = null; cc = null; @@ -50,9 +52,10 @@ let inherit (localSystem) system; in stdenv = import ../generic { name = "stdenv-freebsd-boot-0"; - inherit system config; + inherit config; initialPath = [ prevStage.bootstrapTools ]; - inherit (prevStage.stdenv) shell; + inherit (prevStage.stdenv) + hostPlatform targetPlatform shell; fetchurlBoot = prevStage.fetchurl; cc = null; }; @@ -65,10 +68,10 @@ let inherit (localSystem) system; in inherit config overlays; stdenv = import ../generic { name = "stdenv-freebsd-boot-3"; - inherit system config; + inherit config; inherit (prevStage.stdenv) - initialPath shell fetchurlBoot; + hostPlatform targetPlatform initialPath shell fetchurlBoot; cc = import ../../build-support/cc-wrapper { nativeTools = true; |