Unverified Commit 32ecc225 authored by Matt Sturgeon's avatar Matt Sturgeon
Browse files

buildPython*: remove stdenv arg in overrideStdenvCompat

Avoid passing `stdenv` to the underlying function when it is already
handled in overrideStdenvCompat.
parent 9d87f178
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
    )