nixpkgs/pkgs/stdenv/custom/default.nix
2016-11-30 19:03:22 -05:00

17 lines
512 B
Nix

{ system, allPackages, platform, crossSystem, config, ... } @ args:
rec {
vanillaStdenv = import ../. (args // {
# Remove config.replaceStdenv to ensure termination.
config = builtins.removeAttrs config [ "replaceStdenv" ];
});
buildPackages = allPackages {
inherit system platform crossSystem config;
# It's OK to change the built-time dependencies
allowCustomOverrides = true;
bootStdenv = vanillaStdenv;
};
stdenvCustom = config.replaceStdenv { pkgs = buildPackages; };
}