top-level: Make config-overriden stdenv bootstrap more normally

This commit is contained in:
John Ericson
2016-11-06 21:28:38 -08:00
parent ea7bf02268
commit 6bfe04277f
4 changed files with 29 additions and 14 deletions
+3
View File
@@ -40,9 +40,12 @@ rec {
inherit (import ./cross { inherit system allPackages platform crossSystem config lib; }) stdenvCross;
inherit (import ./custom { inherit system allPackages platform crossSystem config lib; }) stdenvCustom;
# Select the appropriate stdenv for the platform `system'.
stdenv =
if crossSystem != null then stdenvCross else
if config ? replaceStdenv then stdenvCustom else
if system == "i686-linux" then stdenvLinux else
if system == "x86_64-linux" then stdenvLinux else
if system == "armv5tel-linux" then stdenvLinux else