ankiAddons: fix update scripts

nix-update previously identified `anki-utils.nix` as every add-on's
source file.
This commit is contained in:
June Stepp
2025-11-17 18:10:22 -06:00
parent 89c2b2330e
commit 444c2e8bbf
3 changed files with 4 additions and 12 deletions
@@ -2,7 +2,7 @@
lib,
anki-utils,
fetchFromSourcehut,
nix-update-script,
gitUpdater,
}:
anki-utils.buildAnkiAddon (finalAttrs: {
pname = "anki-connect";
@@ -10,11 +10,11 @@ anki-utils.buildAnkiAddon (finalAttrs: {
src = fetchFromSourcehut {
owner = "~foosoft";
repo = "anki-connect";
rev = finalAttrs.version;
tag = finalAttrs.version;
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";