2016-11-27 20:37:45 +00:00
|
|
|
{ lib, allPackages
|
|
|
|
, system, platform, crossSystem, config
|
|
|
|
}:
|
2016-04-27 17:09:27 +01:00
|
|
|
|
2016-11-30 23:51:13 +00:00
|
|
|
assert crossSystem == null;
|
|
|
|
|
2016-04-27 17:09:27 +01:00
|
|
|
rec {
|
2016-11-27 20:37:45 +00:00
|
|
|
vanillaStdenv = import ../. {
|
|
|
|
inherit lib allPackages system platform crossSystem;
|
2016-04-27 17:09:27 +01:00
|
|
|
# Remove config.replaceStdenv to ensure termination.
|
|
|
|
config = builtins.removeAttrs config [ "replaceStdenv" ];
|
2016-11-27 20:37:45 +00:00
|
|
|
};
|
2016-04-27 17:09:27 +01:00
|
|
|
|
|
|
|
buildPackages = allPackages {
|
2016-12-01 00:03:22 +00:00
|
|
|
inherit system platform crossSystem config;
|
2016-04-27 17:09:27 +01: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 17:09:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
stdenvCustom = config.replaceStdenv { pkgs = buildPackages; };
|
|
|
|
}
|