2016-12-16 13:22:02 +00:00
|
|
|
{ lib
|
2016-12-17 18:05:21 +00:00
|
|
|
, system, platform, crossSystem, config, overlays
|
2016-11-27 20:37:45 +00:00
|
|
|
}:
|
2016-04-27 16:09:27 +00:00
|
|
|
|
2016-11-30 23:51:13 +00:00
|
|
|
assert crossSystem == null;
|
|
|
|
|
2016-12-16 13:22:02 +00:00
|
|
|
let
|
|
|
|
bootStages = import ../. {
|
2016-12-17 18:05:21 +00:00
|
|
|
inherit lib system platform crossSystem overlays;
|
2016-04-27 16:09:27 +00:00
|
|
|
# Remove config.replaceStdenv to ensure termination.
|
|
|
|
config = builtins.removeAttrs config [ "replaceStdenv" ];
|
2016-11-27 20:37:45 +00:00
|
|
|
};
|
2016-04-27 16:09:27 +00:00
|
|
|
|
2016-12-16 13:22:02 +00:00
|
|
|
in bootStages ++ [
|
|
|
|
|
|
|
|
# Additional stage, built using custom stdenv
|
|
|
|
(vanillaPackages: {
|
2016-12-17 18:05:21 +00:00
|
|
|
inherit system platform crossSystem config overlays;
|
2016-12-16 13:22:02 +00:00
|
|
|
stdenv = config.replaceStdenv { pkgs = vanillaPackages; };
|
|
|
|
})
|
2016-04-27 16:09:27 +00:00
|
|
|
|
2016-12-16 13:22:02 +00:00
|
|
|
]
|