nixpkgs/pkgs/top-level/stdenv.nix

16 lines
374 B
Nix
Raw Normal View History

{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun }:
2016-03-20 16:14:57 +01:00
rec {
allStdenvs = import ../stdenv {
inherit system platform config crossSystem lib;
allPackages = nixpkgsFun;
2016-03-20 16:14:57 +01:00
};
defaultStdenv = allStdenvs.stdenv // { inherit platform; };
stdenv =
if bootStdenv != null
then (bootStdenv // { inherit platform; })
else defaultStdenv;
2016-03-20 16:14:57 +01:00
}