Unverified Commit 444c2e8b authored by June Stepp's avatar June Stepp
Browse files

ankiAddons: fix update scripts

nix-update previously identified `anki-utils.nix` as every add-on's
source file.
parent 89c2b233
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
+0 −8
Original line number Diff line number Diff line
@@ -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}";
+1 −1
Original line number Diff line number Diff line
@@ -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";