ankiAddons: fix update scripts (#450498)

This commit is contained in:
Aleksana
2025-12-01 03:52:41 +00:00
committed by GitHub
3 changed files with 3 additions and 11 deletions
@@ -2,7 +2,7 @@
lib,
anki-utils,
fetchFromSourcehut,
nix-update-script,
gitUpdater,
}:
anki-utils.buildAnkiAddon (finalAttrs: {
pname = "anki-connect";
@@ -14,7 +14,7 @@ anki-utils.buildAnkiAddon (finalAttrs: {
hash = "sha256-ZPjGqyxTyLg5DtOUPJWCBC/IMfDVxtWt86VeFrsE41k=";
};
sourceRoot = "${finalAttrs.src.name}/plugin";
passthru.updateScript = nix-update-script { };
passthru.updateScript = gitUpdater { };
meta = {
description = ''
Enable external applications such as Yomichan to communicate
@@ -13,9 +13,6 @@
finalAttrs:
{
pname,
version,
src,
sourceRoot ? "",
configurePhase ? ''
runHook preConfigure
runHook postConfigure
@@ -26,7 +23,6 @@
'',
dontPatchELF ? true,
dontStrip ? true,
nativeBuildInputs ? [ ],
passthru ? { },
meta ? { },
# Script run after "user_files" folder is populated.
@@ -37,14 +33,10 @@
}:
{
inherit
version
src
sourceRoot
configurePhase
buildPhase
dontPatchELF
dontStrip
nativeBuildInputs
;
pname = "anki-addon-${pname}";
@@ -6,7 +6,7 @@
}:
anki-utils.buildAnkiAddon (finalAttrs: {
pname = "reviewer-refocus-card";
version = "0-unstable-2022-12-24";
version = "0.3.0-unstable-2022-12-24";
src = fetchFromGitHub {
owner = "glutanimate";
repo = "anki-addons-misc";