Skip to content

Commit

Permalink
Merge pull request #192 from mcwitt/compose-python-overrides
Browse files Browse the repository at this point in the history
Use composeExtensions to preserve existing Python package overrides
  • Loading branch information
markuskowa authored May 14, 2022
2 parents 0a10a4b + 0cdad56 commit 175598e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,13 @@ let
xtb = callPackage ./pkgs/apps/xtb { };

### Python packages
python3 = super.python3.override { packageOverrides = pythonOverrides cfg self super; };
python2 = super.python2.override { packageOverrides = pythonOverrides cfg self super; };
python3 = super.python3.override (old: {
packageOverrides = super.lib.composeExtensions (old.packageOverrides or (_: _: { })) (pythonOverrides cfg self super);
});

python2 = super.python2.override (old: {
packageOverrides = super.lib.composeExtensions (old.packageOverrides or (_: _: { })) (pythonOverrides cfg self super);
});

#
# Libraries
Expand Down

0 comments on commit 175598e

Please sign in to comment.