Unverified Commit b8eb9480 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

nextcloud-notify_push.app: move out of automatically generated set

`pkgs.nextcloud-notify_push` and the app
(`nextcloudPackages.apps.notify_push`) must always have the same
version. However, the latter is updated automatically. Most recently
this happened in #374902.

With this change, the app isn't updated automatically anymore, but is
part of the server-side package (and uses the same version).
parent 2e0e0e2e
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -3,10 +3,16 @@
  fetchFromGitHub,
  nixosTests,
  rustPlatform,
  fetchNextcloudApp,
}:

rustPlatform.buildRustPackage rec {
  pname = "notify_push";

  # NOTE: make sure this is compatible with all Nextcloud versions
  # in nixpkgs!
  # For that, check the `<dependencies>` section of `appinfo/info.xml`
  # in the app (https://github.com/nextcloud/notify_push/blob/main/appinfo/info.xml)
  version = "1.0.0";

  src = fetchFromGitHub {
@@ -20,6 +26,16 @@ rustPlatform.buildRustPackage rec {
  cargoHash = "sha256-bO3KN+ynxNdbnFv1ZHJSSPWd4SxWQGIis3O3Gfba8jw=";

  passthru = rec {
    app = fetchNextcloudApp {
      appName = "notify_push";
      appVersion = version;
      hash = "sha256-4yCs4Q25PhYVICAIFlNiRTOFvL0JdmUwR5bNxp54GiA=";
      license = "agpl3Plus";
      homepage = "https://github.com/nextcloud/notify_push";
      url = "https://github.com/nextcloud-releases/notify_push/releases/download/v${version}/notify_push-v${version}.tar.gz";
      description = "Push update support for desktop app";
    };

    test_client = rustPlatform.buildRustPackage {
      pname = "${pname}-test_client";
      inherit src version;
+0 −10
Original line number Diff line number Diff line
@@ -209,16 +209,6 @@
      "agpl"
    ]
  },
  "notify_push": {
    "hash": "sha256-4yCs4Q25PhYVICAIFlNiRTOFvL0JdmUwR5bNxp54GiA=",
    "url": "https://github.com/nextcloud-releases/notify_push/releases/download/v1.0.0/notify_push-v1.0.0.tar.gz",
    "version": "1.0.0",
    "description": "Push update support for desktop app.\n\nOnce the app is installed, the push binary needs to be setup. You can either use the setup wizard with `occ notify_push:setup` or see the [README](http://github.com/nextcloud/notify_push) for detailed setup instructions",
    "homepage": "",
    "licenses": [
      "agpl"
    ]
  },
  "onlyoffice": {
    "hash": "sha256-YXj0tHU++S7YDMYj/Eg5KsSX3qBSYtyuPZfiOBQ8cjk=",
    "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.5.0/onlyoffice.tar.gz",
+0 −10
Original line number Diff line number Diff line
@@ -209,16 +209,6 @@
      "agpl"
    ]
  },
  "notify_push": {
    "hash": "sha256-4yCs4Q25PhYVICAIFlNiRTOFvL0JdmUwR5bNxp54GiA=",
    "url": "https://github.com/nextcloud-releases/notify_push/releases/download/v1.0.0/notify_push-v1.0.0.tar.gz",
    "version": "1.0.0",
    "description": "Push update support for desktop app.\n\nOnce the app is installed, the push binary needs to be setup. You can either use the setup wizard with `occ notify_push:setup` or see the [README](http://github.com/nextcloud/notify_push) for detailed setup instructions",
    "homepage": "",
    "licenses": [
      "agpl"
    ]
  },
  "onlyoffice": {
    "hash": "sha256-YXj0tHU++S7YDMYj/Eg5KsSX3qBSYtyuPZfiOBQ8cjk=",
    "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.5.0/onlyoffice.tar.gz",
+4 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  newScope,
  callPackage,
  ncVersion,
  nextcloud-notify_push,
}:

let
@@ -51,6 +52,9 @@ let
            inherit pname data;
          }
        ) pkgs
        // {
          notify_push = nextcloud-notify_push.app;
        }
      )
    ) generatedJson;

+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@
, "music": "agpl3Plus"
, "news": "agpl3Plus"
, "notes": "agpl3Plus"
, "notify_push": "agpl3Plus"
, "onlyoffice": "asl20"
, "phonetrack": "agpl3Plus"
, "polls": "agpl3Plus"