ankiAddons.buildAnkiAddon: set passthru.updateScript by default (#484712)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
pname = "adjust-sound-volume";
|
||||
@@ -13,7 +12,6 @@ anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-6reIUz+tHKd4KQpuofLa/tIL5lCloj3yODZ8Cz29jFU=";
|
||||
};
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = "Add a new menu item for adjusting the sound volume";
|
||||
homepage = "https://github.com/mnogu/adjust-sound-volume";
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
@@ -26,7 +25,6 @@ anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
};
|
||||
});
|
||||
sourceRoot = "${finalAttrs.src.name}/card_management";
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = "Reset, Learn, and Grade cards from the card browser";
|
||||
longDescription = ''
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
pname = "anki-quizlet-importer-extended";
|
||||
@@ -13,7 +12,6 @@ anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-BTddZColXM193x8xFa1axHeiWukjxXvwkXGpHxsLtR0=";
|
||||
};
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = "Import Quizlet Decks into Anki";
|
||||
homepage = "https://ankiweb.net/shared/info/1362209126";
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
lndir,
|
||||
formats,
|
||||
runCommand,
|
||||
nix-update-script,
|
||||
}:
|
||||
{
|
||||
buildAnkiAddon = lib.extendMkDerivation {
|
||||
@@ -55,6 +56,7 @@
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
withConfig =
|
||||
{
|
||||
# JSON add-on config. The available options for an add-on are in its
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
pname = "image-occlusion-enhanced";
|
||||
@@ -15,7 +14,6 @@ anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
hash = "sha256-YR1hicBDb08J+1Qc+SDiJDXLo5FzLqCQGeVe7brbPME=";
|
||||
};
|
||||
sourceRoot = "${finalAttrs.src.name}/src/image_occlusion_enhanced";
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = ''
|
||||
Adds extra features for creating image-based cloze-deletions
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
pname = "passfail2";
|
||||
@@ -21,7 +20,6 @@ anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = ''
|
||||
Replaces the default Anki review buttons with only two options:
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
pname = "puppy-reinforcement";
|
||||
@@ -14,7 +13,6 @@ anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
hash = "sha256-y52AjmYrFTcTwd4QAcJzK5R9wwxUSlvnN3C2O/r5cHk=";
|
||||
};
|
||||
sourceRoot = "${finalAttrs.src.name}/src/puppy_reinforcement";
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = "Encourage learners with pictures of cute puppies";
|
||||
longDescription = ''
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
anki-utils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
pname = "recolor";
|
||||
@@ -25,8 +24,6 @@ anki-utils.buildAnkiAddon (finalAttrs: {
|
||||
./only-update-config-version-when-migration-happens.patch
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "ReColor your Anki desktop to whatever aesthetic you like";
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user