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