Unverified Commit 1d8647a2 authored by David Chocholatý's avatar David Chocholatý
Browse files

anytype: Remove pointless update script from main package

Anytype cannot be updated separately from its dependencies which need to
 be updated together with the main package. Therefore, it is pointless
 to keep the update script in the main package.
parent 0d5f1b02
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
{
  lib,
  runCommand,
  fetchFromGitHub,
  buildNpmPackage,
  pkg-config,
@@ -10,7 +9,6 @@
  makeDesktopItem,
  copyDesktopItems,
  commandLineArgs ? "",
  nix-update-script,
}:

let
@@ -113,17 +111,6 @@ buildNpmPackage {
    })
  ];

  passthru.updateScript = nix-update-script {
    # Prevent updating to versions with '-' in them.
    # Necessary since Anytype uses Electron-based 'MAJOR.MINOR.PATCH(-{alpha,beta})?' versioning scheme where each
    #  {alpha,beta} version increases the PATCH version, releasing a new full release version in GitHub instead of a
    #  pre-release version.
    extraArgs = [
      "--version-regex"
      "[^-]*"
    ];
  };

  meta = {
    inherit description;
    homepage = "https://anytype.io/";