core/pkgs/stdenv/custom/default.nix

23 lines
627 B
Nix
Raw Normal View History

2024-05-13 21:24:10 +00:00
{ lib, localSystem, crossSystem, config, overlays, crossOverlays ? [ ] }:
2024-05-02 00:46:19 +00:00
assert crossSystem == localSystem;
let
bootStages = import ../. {
inherit lib localSystem crossSystem overlays;
# Remove config.replaceStdenv to ensure termination.
config = builtins.removeAttrs config [ "replaceStdenv" ];
};
in bootStages ++ [
# Additional stage, built using custom stdenv
(vanillaPackages: {
inherit config overlays;
2024-05-13 21:24:10 +00:00
stdenv = assert vanillaPackages.hostPlatform == localSystem;
2024-05-02 00:46:19 +00:00
assert vanillaPackages.targetPlatform == localSystem;
config.replaceStdenv { pkgs = vanillaPackages; };
})
]