mkPythonDerivation: move LANG into env for structuredAttrs (#489751)

This commit is contained in:
Martin Weinelt
2026-02-12 23:37:48 +00:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
@@ -388,7 +388,10 @@ lib.extendMkDerivation {
inherit strictDeps;
LANG = "${if python.stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8";
env = {
LANG = "${if python.stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8";
}
// (attrs.env or { });
# Python packages don't have a checkPhase, only an installCheckPhase
doCheck = false;
@@ -248,7 +248,10 @@ let
inherit strictDeps;
LANG = "${if python.stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8";
env = {
LANG = "${if python.stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8";
}
// (attrs.env or { });
# Python packages don't have a checkPhase, only an installCheckPhase
doCheck = false;