Skip to content

Commit

Permalink
python3: Whitelist config options when overriding interpreter
Browse files Browse the repository at this point in the history
In the case of cross compilation we don't want pass through build
inputs from the cross platform, but we do want to pass on config options.
  • Loading branch information
adisbladis committed Apr 21, 2022
1 parent 703f4b4 commit 9203631
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/interpreters/python/cpython/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ let

passthru = let
# When we override the interpreter we also need to override the spliced versions of the interpreter
override = attr: let python = attr.override (inputs // { self = python; }); in python;
inputs' = lib.filterAttrs (_: v: ! lib.isDerivation v) inputs;
override = attr: let python = attr.override (inputs' // { self = python; }); in python;
in passthruFun rec {
inherit self sourceVersion packageOverrides;
implementation = "cpython";
Expand Down

0 comments on commit 9203631

Please sign in to comment.