summary refs log tree commit diff
path: root/pkgs/stdenv/custom/default.nix
blob: 6d2aa8c59b3fa99e9f7ea9989db30dc38aef4c10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ system, allPackages, platform, crossSystem, config, ... } @ args:

rec {
  vanillaStdenv = import ../. (args // {
    # Remove config.replaceStdenv to ensure termination.
    config = builtins.removeAttrs config [ "replaceStdenv" ];
  });

  buildPackages = allPackages {
    # It's OK to change the built-time dependencies
    allowCustomOverrides = true;
    bootStdenv = vanillaStdenv;
    inherit system platform crossSystem config;
  };

  stdenvCustom = config.replaceStdenv { pkgs = buildPackages; };
}