Merge pull request #177888 from Artturin/python3fixcross

python3: fix wrong platform libs when cross-compiling
This commit is contained in:
adisbladis 2022-06-17 06:28:34 +08:00 committed by GitHub
commit 6ac66ecd71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,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;