diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-02-24 12:10:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 12:10:02 +0100 |
commit | 83b8193be91629174662bc38ba8de176d17255a7 (patch) | |
tree | 4c000c28363258d1ce36ddcf9f3e7ec83cbf065b /pkgs/servers | |
parent | 1cdbf440a865181f166dfaa59d6b7db5bd11ccaa (diff) | |
parent | bdb0566f8b7816408d2012786c1000ccff00e3a4 (diff) |
Merge pull request #201780 from helsinki-systems/init/nextcloud-notify-push
nextcloud-notify-push: init at 0.5.0
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/nextcloud/notify_push.nix | 41 | ||||
-rw-r--r-- | pkgs/servers/nextcloud/packages/24.json | 10 | ||||
-rw-r--r-- | pkgs/servers/nextcloud/packages/25.json | 10 | ||||
-rw-r--r-- | pkgs/servers/nextcloud/packages/nextcloud-apps.json | 1 |
4 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/servers/nextcloud/notify_push.nix b/pkgs/servers/nextcloud/notify_push.nix new file mode 100644 index 0000000000000..737e5d7debaad --- /dev/null +++ b/pkgs/servers/nextcloud/notify_push.nix @@ -0,0 +1,41 @@ +{ lib, fetchFromGitHub, fetchpatch, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "notify_push"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "nextcloud"; + repo = pname; + rev = "v${version}"; + hash = "sha256-LkC2mD3klMQRF3z5QuVPcRHzz33VJP+UcN6LxsQXq7Q="; + }; + + cargoHash = "sha256-GZikXM3AvhC2gtwE2wYbGV+aRV+QKothWQG17Vzi2Lc="; + + passthru = { + test_client = rustPlatform.buildRustPackage { + pname = "${pname}-test_client"; + inherit src version; + + cargoPatches = [ + # fix test client not being able to connect + (fetchpatch { + url = "https://github.com/nextcloud/notify_push/commit/03aa38d917bfcba4d07f72b6aedac6a5057cad81.patch"; + hash = "sha256-dcN62tA05HH1RTvG0puonJjKMQn1EouA8iuz82vh2aU="; + }) + ]; + + buildAndTestSubdir = "test_client"; + + cargoHash = "sha256-RALqjI6DlWmfgKvyaH4RiSyqWsIqUyY9f709hOi2ldc="; + }; + }; + + meta = with lib; { + description = "Update notifications for nextcloud clients"; + homepage = "https://github.com/nextcloud/notify_push"; + license = licenses.agpl3Plus; + maintainers = with maintainers; [ ajs124 ]; + }; +} diff --git a/pkgs/servers/nextcloud/packages/24.json b/pkgs/servers/nextcloud/packages/24.json index b0439db114aea..8dc5d7cbf99c9 100644 --- a/pkgs/servers/nextcloud/packages/24.json +++ b/pkgs/servers/nextcloud/packages/24.json @@ -129,6 +129,16 @@ "agpl" ] }, + "notify_push": { + "sha256": "1raxkzdcd9mixg30ifv22lzf10j47n79n05yqbf6mjagrgj0rr7f", + "url": "https://github.com/nextcloud/notify_push/releases/download/v0.5.0/notify_push.tar.gz", + "version": "0.5.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": { "sha256": "6117b7b8c5c7133975e4ebf482814cdcd3f94a1b3c76ea1b5eed47bdd1fbfcbb", "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v7.5.8/onlyoffice.tar.gz", diff --git a/pkgs/servers/nextcloud/packages/25.json b/pkgs/servers/nextcloud/packages/25.json index 43ff7d5b6d66e..60282475f0fd9 100644 --- a/pkgs/servers/nextcloud/packages/25.json +++ b/pkgs/servers/nextcloud/packages/25.json @@ -109,6 +109,16 @@ "agpl" ] }, + "notify_push": { + "sha256": "1raxkzdcd9mixg30ifv22lzf10j47n79n05yqbf6mjagrgj0rr7f", + "url": "https://github.com/nextcloud/notify_push/releases/download/v0.5.0/notify_push.tar.gz", + "version": "0.5.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": { "sha256": "0gy4n86q7b5qmy609ncibp94v1b3z9msc0129572qz2zyxfqxq3i", "url": "https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v7.6.8/onlyoffice.tar.gz", diff --git a/pkgs/servers/nextcloud/packages/nextcloud-apps.json b/pkgs/servers/nextcloud/packages/nextcloud-apps.json index a837578902360..ba55e92332c98 100644 --- a/pkgs/servers/nextcloud/packages/nextcloud-apps.json +++ b/pkgs/servers/nextcloud/packages/nextcloud-apps.json @@ -12,6 +12,7 @@ , "mail" , "news" , "notes" +, "notify_push" , "onlyoffice" , "polls" , "registration" |