Unverified Commit e3028b47 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

ankiAddons: fix update scripts (#450498)

parents f0f49ef6 444c2e8b
Loading
Loading
Loading
Loading
+2 −2
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";
@@ -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
+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";