about summary refs log tree commit diff
path: root/pkgs/top-level/stdenv.nix
blob: 9f485b8c90ef668b3f96e0b7545cfaa111d8cf84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ system, bootStdenv, crossSystem, config, platform, lib, nixpkgsFun }:

rec {
  allStdenvs = import ../stdenv {
    inherit system platform config crossSystem lib;
    allPackages = nixpkgsFun;
  };

  defaultStdenv = allStdenvs.stdenv // { inherit platform; };

  stdenv =
    if bootStdenv != null
    then (bootStdenv // { inherit platform; })
    else defaultStdenv;
}