From 843b9886800a8e78aaaa01989f1d03cdbf907b88 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 16 Jun 2022 16:49:18 +0300 Subject: [PATCH] python3: fix wrong platform libs when cross-compiling see https://github.com/NixOS/nixpkgs/pull/169475#issuecomment-1129517328 patch by adisbladis Co-authored-by: adisbladis --- pkgs/development/interpreters/python/cpython/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 72fd4df385d2..009d0f45f97e 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -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;