Unverified Commit e94132cf authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

stdenv: handle null replaceStdenv as identity (#481399)

parents db04d9ce 6c6d4daf
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -31,7 +31,10 @@ bootStages
    stdenv =
      assert vanillaPackages.stdenv.hostPlatform == localSystem;
      assert vanillaPackages.stdenv.targetPlatform == localSystem;
      config.replaceStdenv { pkgs = vanillaPackages; };
      let
        fn = config.replaceStdenv or null;
      in
      if fn == null then vanillaPackages.stdenv else fn { pkgs = vanillaPackages; };
  })

]