Skip to content

Conversation

@n0pl4c3
Copy link

@n0pl4c3 n0pl4c3 commented Dec 28, 2025

Things done

  • Added ankiAddons.advanced-browser Anki Addon
  • Added self (n0pl4c3) to maintainers

As there was discussion in an issue on home-manager about packaging more Anki addons, I decided to try packaging some of the addons I use. I have some others prepared, but since this is my first time contributing here I think it makes sense to wait if I did something massively wrong first 😅

Tested with nix-build -E 'with import ./. {}; anki.withAddons [ ankiAddons.advanced-browser ]' && ./result/bin/anki.

  • 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 requested review from JuneStepp, euank and oxij December 28, 2025 21:41
@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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Dec 28, 2025
Copy link
Member

@ethancedwards8 ethancedwards8 left a comment

Choose a reason for hiding this comment

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

very nice work. overall lgtm

The options to configure this add-on can be found [here](https://github.com/AnKing-VIP/advanced-browser/blob/v${finalAttrs.version}/advancedbrowser/config.md).
'';
homepage = "https://ankiweb.net/shared/info/874215009";
license = lib.licenses.gpl3;
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
license = lib.licenses.gpl3;
license = lib.licenses.gpl3Only;

gpl3 only is discouraged nowadays. use gpl3Plus or gpl3Only. I couldn't find any info in the repo about only or later, so I think its safer/better to assume gpl3Only.

Copy link
Author

Choose a reason for hiding this comment

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

I see, thanks a lot for reviewing, also very helpful to avoid some mistakes for the other Anki Addons I have in mind.
Applied all suggestions, from what I can get from he contributing guidelines and looking at other PRs it seems it's best practice to squash changes into the original commit, so hope the way I did it is fine.

A general overview of the functionality can be found [here](https://ankiweb.net/shared/info/874215009).
The options to configure this add-on can be found [here](https://github.com/AnKing-VIP/advanced-browser/blob/v${finalAttrs.version}/advancedbrowser/config.md).
'';
homepage = "https://ankiweb.net/shared/info/874215009";
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
homepage = "https://ankiweb.net/shared/info/874215009";
homepage = "https://ankiweb.net/shared/info/874215009";
downloadPage = "https://github.com/AnKing-VIP/advanced-browser";

tag = "v${finalAttrs.version}";
hash = "sha256-w2YeFHk0M2LFkyf93cy+PExTd93nu0Mk3CDGD9uu2bk=";
};
sourceRoot = "${finalAttrs.src.name}";
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
sourceRoot = "${finalAttrs.src.name}";

I don't think this is necessary

sourceRoot = "${finalAttrs.src.name}";
passthru.updateScript = nix-update-script { };
meta = {
description = "Advanced Browser is an Anki add-on that adds more features to the browser. It allows you to add a variety of new, sortable columns to the card browser.";
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
description = "Advanced Browser is an Anki add-on that adds more features to the browser. It allows you to add a variety of new, sortable columns to the card browser.";
description = "Adds more features to the browser";

see https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/meta.chapter.md#description-var-meta-description

Copy link
Author

Choose a reason for hiding this comment

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

Seems I missed that, my bad. Applied, but slightly rephrased to focus that it really just adds more columns to sort by, while still staying at a concise word count.

@n0pl4c3 n0pl4c3 force-pushed the anki-advanced-browser branch from f09a11b to 6905ed7 Compare December 29, 2025 11:15
Copy link
Member

@ethancedwards8 ethancedwards8 left a comment

Choose a reason for hiding this comment

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

Lgtm. Very nice work and thank you for your contribution!

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Dec 29, 2025
Copy link
Member

@JuneStepp JuneStepp left a comment

Choose a reason for hiding this comment

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

There's a 4.5 version of the add-on.
Besides that, looks good!

@n0pl4c3 n0pl4c3 force-pushed the anki-advanced-browser branch from 6905ed7 to 7aa5a84 Compare January 10, 2026 15:12
@n0pl4c3
Copy link
Author

n0pl4c3 commented Jan 10, 2026

Great catch thank you, I only checked the Release page and did not spot that there was a tag for 4.5, fixed now!

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package 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. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants