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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user