buildPython*: remove stdenv arg in overrideStdenvCompat

Avoid passing `stdenv` to the underlying function when it is already
handled in overrideStdenvCompat.
This commit is contained in:
Matt Sturgeon
2025-12-11 01:07:55 +00:00
parent 9d87f178ed
commit 32ecc2256b
@@ -51,7 +51,7 @@ let
lib.warnIf (lib.oldestSupportedReleaseIsAtLeast 2511) ''
Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated. You should use their `.override` function instead, e.g:
buildPythonPackage.override { stdenv = customStdenv; } { }
'' (f.override { inherit (args) stdenv; } args)
'' (f.override { inherit (args) stdenv; } (removeAttrs args [ "stdenv" ]))
else
f args
)