mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
18 lines
521 B
Nix
18 lines
521 B
Nix
{ system, allPackages, platform, crossSystem, config, ... } @ args:
|
|
|
|
rec {
|
|
vanillaStdenv = (import ../. (args // {
|
|
# Remove config.replaceStdenv to ensure termination.
|
|
config = builtins.removeAttrs config [ "replaceStdenv" ];
|
|
})).stdenv;
|
|
|
|
buildPackages = allPackages {
|
|
# It's OK to change the built-time dependencies
|
|
allowCustomOverrides = true;
|
|
bootStdenv = vanillaStdenv;
|
|
inherit system platform crossSystem config;
|
|
};
|
|
|
|
stdenvCustom = config.replaceStdenv { pkgs = buildPackages; };
|
|
}
|