diff options
| author | Philip Taron <philip.taron@gmail.com> | 2026-01-18 21:58:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 21:58:16 +0000 |
| commit | e94132cfbd7c680b57660fc6b373b78dba0891b8 (patch) | |
| tree | 19242f6d92021c8b235d7d2b3e77a93396a581f2 | |
| parent | db04d9ce522b47b5103546fa6c0816b4d110da3b (diff) | |
| parent | 6c6d4daf79263066efae45467cb4a95021ad2bb8 (diff) | |
stdenv: handle null replaceStdenv as identity (#481399)
| -rw-r--r-- | pkgs/stdenv/custom/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/stdenv/custom/default.nix b/pkgs/stdenv/custom/default.nix index c8f1bc66a06c..4520f0c9905a 100644 --- a/pkgs/stdenv/custom/default.nix +++ b/pkgs/stdenv/custom/default.nix @@ -31,7 +31,10 @@ bootStages stdenv = assert vanillaPackages.stdenv.hostPlatform == localSystem; assert vanillaPackages.stdenv.targetPlatform == localSystem; - config.replaceStdenv { pkgs = vanillaPackages; }; + let + fn = config.replaceStdenv or null; + in + if fn == null then vanillaPackages.stdenv else fn { pkgs = vanillaPackages; }; }) ] |
