Skip to content

Conversation

@lucaato
Copy link
Contributor

@lucaato lucaato commented Mar 21, 2025

I needed to add a python package that was missing from pythonPackages to try out a quick fix.
Does this setup makes sense to you ?

python.nix Outdated
python = python3.override (old: {
self = python;
packageOverrides = self: super: {
packageOverrides = self: super: ((if old ? packageOverrides then (old.packageOverrides self super) else {}) // {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we should merge the user-provided overrides afterward to override some expressions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, thanks

@adisbladis
Copy link
Member

Made a better implementation (using extension composition instead of just //) and pushed to master. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants