nixpkgs/pkgs/stdenv/custom/default.nix

18 lines
508 B
Nix
Raw Normal View History

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