-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
tesseract: fix passthru override #440938
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
tesseract: fix passthru override #440938
Conversation
|
Could you see if just removing |
|
Yeah that also seems to fix it. That’s probably the reason why the #423615 started breaking it. I still think this is the better fix. It would've been broken anyway if anyone tried using overrideAttrs on this package. |
eclairevoyant
left a comment
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.
nit: // is right associative and extremely low precedence... so these are redundant. At least for the multiline ones, removing them might make the nesting shallower and improve readability.
b9be0b9 to
268fce0
Compare
|
I've remove some of the brackets. The others I kinda think are good to have as I don't think everyone knows the precedence by heart and this just makes it clear to see what's going on. |
philiptaron
left a comment
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.
I think this looks ugly as sin and falls afoul of the recently merged advice to not make use of overrideAttrs in Nixpkgs.
That said, it does indeed fix the passthru override. I'll whip up a short PR to make this look a little better.
Wasn't that more of a security concern? I don't see this as creating a new version of the package if it's merely setting |
|
Any remaining blockers? |
fixes tesseract passthru.
error was surfaced by: #423615
fixes: #440907
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.