anki-utils.buildAnkiAddon: add default passthru.updateScript

Most packagess seem to use it. DRY.

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-01-28 07:29:35 -05:00
committed by Weijia Wang
parent 7474b4c57d
commit 0617f3c308
@@ -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