Merge pull request #177945 from NixOS/backport-177888-to-release-22.05

[Backport release-22.05] python3: fix wrong platform libs when cross-compiling
This commit is contained in:
adisbladis
2022-06-17 17:04:48 +08:00
committed by GitHub

View File

@@ -85,7 +85,7 @@ let
passthru = let
# When we override the interpreter we also need to override the spliced versions of the interpreter
inputs' = lib.filterAttrs (_: v: ! lib.isDerivation v) inputs;
inputs' = lib.filterAttrs (n: v: ! lib.isDerivation v && n != "passthruFun") inputs;
override = attr: let python = attr.override (inputs' // { self = python; }); in python;
in passthruFun rec {
inherit self sourceVersion packageOverrides;