buildPython*: extend overrideStdenvCompat to fixed-point arguments

with `passthru.__stdenvPythonCompat`

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
Yueh-Shun Li
2026-01-19 14:29:47 +08:00
co-authored by Matt Sturgeon
parent 5b114f0534
commit de48b6a845
2 changed files with 10 additions and 2 deletions
@@ -418,6 +418,7 @@ lib.extendMkDerivation {
optional-dependencies
;
updateScript = nix-update-script { };
${if attrs ? stdenv then "__stdenvPythonCompat" else null} = attrs.stdenv;
}
// attrs.passthru or { };