New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elasticsearch-curator: add top-level package using older click #58031
elasticsearch-curator: add top-level package using older click #58031
Conversation
See NixOS#58023 for a discussion of why this is necessary. The upstream issue can be found at elastic/curator#1280.
Thank you for this, and sorry about the trouble. I'm a bit worried about the downstream builds from this though, is there any way we can avoid it on the default click? |
Yes, if we override
I wouldn't worry about the rebuilds though: |
Oh, I'm only talking about the amount of rebuilds, not that I'm scared anything broke from this. nox-review produced quite a list. |
I see. That's usually not that big of a deal for Python packages as they are relatively cheap to build. |
}; | ||
}); | ||
}; | ||
}).pkgs; toPythonApplication elasticsearch-curator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick. toPythonApplication
could be put into packageOverrides
. This would remove usage of with
:
elasticsearch-curator = let
packageOverrides = self: super: {
elasticsearch-curator = super.toPythonApplication super.elasticsearch-curator;
click = super.click...
};
customPythonPackages = (python3.overrde { inherit packageOverrides; }).pkgs;
in
customPythonPackages.elasticsearch-curator;
It looks kinda miracle, that elasticsearch-curator
didn't select self.elasticsearch-curator
from outer scope...
Motivation for this change
closes #58023
I'm not sure if this warrants a mention in the release notes.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)cc @johanot @srhb @basvandijk