mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
16 lines
374 B
Nix
16 lines
374 B
Nix
{ 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;
|
|
}
|