fix evaluation

This commit is contained in:
Robin Gloster 2016-02-27 00:43:49 +00:00
parent 3477e662e6
commit b3d9562fc8

View File

@ -198,14 +198,14 @@ let
};
# We use pkgs_ because accessing pkgs would lead to an infinite recursion in stdenvOverrides
defaultStdenv = stdenvAdapters.useHardenFlags (
defaultStdenv = (import ../stdenv/adapters.nix pkgs_).useHardenFlags (
pkgs_.allStdenvs.stdenv // { inherit platform; }
);
stdenvCross = lowPrio (makeStdenvCross defaultStdenv crossSystem binutilsCross gccCrossStageFinal);
stdenv =
if bootStdenv != null then (stdenvAdapters.useHardenFlags bootStdenv // {inherit platform;}) else
if bootStdenv != null then ((import ../stdenv/adapters.nix pkgs_).useHardenFlags bootStdenv // {inherit platform;}) else
if crossSystem != null then
stdenvCross
else