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

assert crossSystem == null;

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: {
    buildPlatform = localSystem;
    hostPlatform = localSystem;
    targetPlatform = localSystem;
    inherit config overlays;
    stdenv = config.replaceStdenv { pkgs = vanillaPackages; };
  })

]