ankiAddons.ajt-card-management: init at 25.10.14.0 (#459939)
This commit is contained in:
@@ -10514,6 +10514,14 @@
|
||||
githubId = 47456195;
|
||||
name = "hexclover";
|
||||
};
|
||||
hey2022 = {
|
||||
name = "Yiheng He";
|
||||
email = "yiheng.he@proton.me";
|
||||
matrix = "@hey2022:matrix.org";
|
||||
github = "hey2022";
|
||||
githubId = 48553457;
|
||||
keys = [ { fingerprint = "128E 09C0 6F73 D678 6BB5 E551 5EA5 3C75 F7BE 3EDE"; } ];
|
||||
};
|
||||
heyimnova = {
|
||||
email = "git@heyimnova.dev";
|
||||
github = "heyimnova";
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
pname = "ajt-card-management";
|
||||
version = "25.10.14.0";
|
||||
src =
|
||||
(fetchFromGitHub {
|
||||
owner = "Ajatt-Tools";
|
||||
repo = "learn-now-button";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ebGMrEfDV9ZWtrV2AjiaNd7WMeNBHlaOBE2xL1x0nWs=";
|
||||
fetchSubmodules = true;
|
||||
})
|
||||
# HACK: remove when https://github.com/Ajatt-Tools/learn-now-button/pull/9 is released
|
||||
.overrideAttrs
|
||||
(oldAttrs: {
|
||||
env = oldAttrs.env or { } // {
|
||||
GIT_CONFIG_COUNT = 1;
|
||||
GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf";
|
||||
GIT_CONFIG_VALUE_0 = "git@github.com:";
|
||||
};
|
||||
});
|
||||
sourceRoot = "${finalAttrs.src.name}/card_management";
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = "Reset, Learn, and Grade cards from the card browser";
|
||||
longDescription = ''
|
||||
Reset, Learn, and Grade cards from the card browser
|
||||
|
||||
This addon adds new buttons to the card browser.
|
||||
- The Learn now button immediately puts selected new cards in the learning queue.
|
||||
- The Grade now button lets you grade selected cards without opening Reviewer.
|
||||
- The Reset selected cards button lets you delete scheduling and learning information from selected cards.
|
||||
'';
|
||||
homepage = "https://github.com/Ajatt-Tools/learn-now-button";
|
||||
downloadPage = "https://ankiweb.net/shared/info/1021636467";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
maintainers = with lib.maintainers; [ hey2022 ];
|
||||
};
|
||||
})
|
||||
@@ -4,6 +4,8 @@
|
||||
{
|
||||
adjust-sound-volume = callPackage ./adjust-sound-volume { };
|
||||
|
||||
ajt-card-management = callPackage ./ajt-card-management { };
|
||||
|
||||
anki-connect = callPackage ./anki-connect { };
|
||||
|
||||
anki-quizlet-importer-extended = callPackage ./anki-quizlet-importer-extended { };
|
||||
|
||||
Reference in New Issue
Block a user