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