@@ -0,0 +1,17 @@
1+{ system, allPackages, platform, crossSystem, config, ... } @ args:
2+
3+rec {
4+ vanillaStdenv = (import ../. (args // {
5+ # Remove config.replaceStdenv to ensure termination.
6+ config = builtins.removeAttrs config [ "replaceStdenv" ];
7+ })).stdenv;
8+
9+ buildPackages = allPackages {
10+ # It's OK to change the built-time dependencies
11+ allowCustomOverrides = true;
12+ bootStdenv = vanillaStdenv;
13+ inherit system platform crossSystem config;
14+ };
15+
16+ stdenvCustom = config.replaceStdenv { pkgs = buildPackages; };
17+}