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

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

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