Skip to content

Conversation

@PatrickDaG
Copy link
Contributor

fixes tesseract passthru.
error was surfaced by: #423615
fixes: #440907

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Sep 7, 2025
@winterqt
Copy link
Member

winterqt commented Sep 7, 2025

Could you see if just removing loPrio from the callPackage for tesseract4 and 5 fixes this? (This should only be broken atm for those two, 3 should be fine.)

@PatrickDaG
Copy link
Contributor Author

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.

Copy link
Contributor

@eclairevoyant eclairevoyant left a 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.

https://nix.dev/manual/nix/2.28/language/operators

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Sep 8, 2025
@PatrickDaG
Copy link
Contributor Author

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.

Copy link
Contributor

@philiptaron philiptaron left a 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.

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Sep 8, 2025
@eclairevoyant
Copy link
Contributor

eclairevoyant commented Sep 8, 2025

falls afoul of the recently merged advice to not make use of overrideAttrs in Nixpkgs.

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 passthru. Though undoubtedly it'd be nice to avoid it if possible.

@eclairevoyant
Copy link
Contributor

Any remaining blockers?

@Aleksanaa Aleksanaa merged commit 5097cd6 into NixOS:master Sep 13, 2025
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tesseract: missing languages attr

5 participants