Skip to content

Commit 32ecc22

Browse files
committed
buildPython*: remove stdenv arg in overrideStdenvCompat
Avoid passing `stdenv` to the underlying function when it is already handled in overrideStdenvCompat.
1 parent 9d87f17 commit 32ecc22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkgs/development/interpreters/python/python-packages-base.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let
5151
lib.warnIf (lib.oldestSupportedReleaseIsAtLeast 2511) ''
5252
Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated. You should use their `.override` function instead, e.g:
5353
buildPythonPackage.override { stdenv = customStdenv; } { }
54-
'' (f.override { inherit (args) stdenv; } args)
54+
'' (f.override { inherit (args) stdenv; } (removeAttrs args [ "stdenv" ]))
5555
else
5656
f args
5757
)

0 commit comments

Comments
 (0)