Skip to content

Commit

Permalink
python: Propagate packageOverrides to pythonForBuild
Browse files Browse the repository at this point in the history
When overriding versions of build tools injected via hooks
`packageOverrides` was not taken into account and 2 incompatible
versions of the same package (`wheel` in this case) ended up in the
closure, causing the builds to fail.
  • Loading branch information
adisbladis committed Nov 30, 2020
1 parent ee3c23e commit 49b8738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/interpreters/python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ with pkgs;
inherit hasDistutilsCxxPatch;
# TODO: rename to pythonOnBuild
# Not done immediately because its likely used outside Nixpkgs.
pythonForBuild = pythonOnBuildForHost;
pythonForBuild = pythonOnBuildForHost.override { inherit packageOverrides; self = pythonForBuild; };

tests = callPackage ./tests.nix {
python = self;
Expand Down

0 comments on commit 49b8738

Please sign in to comment.