From 2c84f41a8e27d9a17ac15e22afef495af3ba55c9 Mon Sep 17 00:00:00 2001 From: byteforge38 Date: Thu, 15 Jan 2026 19:08:33 -0800 Subject: [PATCH] stdenv: keep replaceStdenv fallback for non-module contexts --- pkgs/stdenv/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/default.nix b/pkgs/stdenv/default.nix index 98aefc2bf568..53f63245c919 100644 --- a/pkgs/stdenv/default.nix +++ b/pkgs/stdenv/default.nix @@ -43,7 +43,7 @@ in # Select the appropriate stages for the platform `system'. if crossSystem != localSystem || crossOverlays != [ ] then stagesCross -else if config.replaceStdenv != null then +else if (config.replaceStdenv or null) != null then stagesCustom else if localSystem.isLinux then stagesLinux