summary refs log tree commit diff
path: root/pkgs/stdenv/custom/default.nix
blob: d7e9bf53bed1b296a9bd197ff82aff5a359bfcd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib
, system, platform, crossSystem, config, overlays
}:

assert crossSystem == null;

let
  bootStages = import ../. {
    inherit lib system platform crossSystem overlays;
    # Remove config.replaceStdenv to ensure termination.
    config = builtins.removeAttrs config [ "replaceStdenv" ];
  };

in bootStages ++ [

  # Additional stage, built using custom stdenv
  (vanillaPackages: {
    inherit system platform crossSystem config overlays;
    stdenv = config.replaceStdenv { pkgs = vanillaPackages; };
  })

]