Commit 5b114f05 authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

buildPython*: overrideStdenvCompat: lower warnings down to the stdenv override value

If Nix supports lazy attribute names in the future,
this change will make `<python package>.override` warning-free
and make such warning (or future throw) remediateable
via another override.
parent 4ef0c2de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -63,8 +63,8 @@ let
            '';
        in
        if !(lib.isFunction args) && (args ? stdenv) then
          applyMsgStdenvArg (getName args) (
            f'.override { inherit (args) stdenv; } (removeAttrs args [ "stdenv" ])
          f'.override { stdenv = applyMsgStdenvArg (getName args) args.stdenv; } (
            removeAttrs args [ "stdenv" ]
          )
        else
          f args