Skip to content

Conversation

@teto
Copy link
Member

@teto teto commented Jan 2, 2026

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-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jan 2, 2026
Copy link
Member

@donovanglover donovanglover left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

let
libmocr = stdenv.mkDerivation {
pname = "libmocr";
version = "unstable-2023-11-15"; # Placeholder version
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
version = "unstable-2023-11-15"; # Placeholder version
version = "0-unstable-2023-11-15";

Comment on lines 36 to 41
meta = with lib; {
description = "A library for Manga OCR";
homepage = "https://github.com/ripose-jp/libmocr";
license = licenses.gpl2;
platforms = platforms.linux;
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
meta = with lib; {
description = "A library for Manga OCR";
homepage = "https://github.com/ripose-jp/libmocr";
license = licenses.gpl2;
platforms = platforms.linux;
};
meta = {
description = "Library for Manga OCR";
homepage = "https://github.com/ripose-jp/libmocr";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};

Copy link
Member Author

Choose a reason for hiding this comment

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

done

in
''
wrapProgram "$out/bin/memento" \
--prefix PATH : "${yt-dlp}/bin" ${lib.optionalString withOcr "--suffix PYTHONPATH : \"${pyEnv}/${pyEnv.sitePackages}\""}
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to use pyEnv.sitePackages instead of python.sitePackages? Would be the first time pyEnv.sitePackages is used in nixpkgs

Copy link
Member Author

Choose a reason for hiding this comment

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

nope. I found pyEnv made more sense but I changed it to python3.sitePackages as requested.

@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jan 3, 2026
teto added 2 commits January 3, 2026 16:49
Added optional support for OCR. Off by default because it doubles
closure size plus one needs to download the model imperatively.

Some stats:
1.6 weighs: /nix/store/86kmz0zc87hg1v3nwxgf0zd2839d539c-memento-1.6.0   1.3 GiB
1.7 without Ocr : /nix/store/ygd1zr809v5apyjvmydw6nccx1ycc2mh-memento-1.7.0    1.3 GiB
1.7 with ocr: /nix/store/19g1qk5g9kirsqgw1s0nasb676hj8qia-memento-1.7.0   3.3 GiB

Amon the novelties, it now builds with system qcoro.
@teto teto force-pushed the teto/bump/memento branch from b7b330c to 809daf1 Compare January 3, 2026 15:50
Copy link
Member

@donovanglover donovanglover left a comment

Choose a reason for hiding this comment

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

LGTM (not tested)

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 4, 2026
@teto teto added this pull request to the merge queue Jan 4, 2026
Merged via the queue into NixOS:master with commit 10ac86b Jan 4, 2026
32 of 34 checks passed
@teto teto deleted the teto/bump/memento branch January 4, 2026 14:06
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: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants