Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / nextcloud / notify_push.nix
blob5efde0fab0e5566149f9d03c86bf3191ad47fa41
1 { lib
2 , fetchFromGitHub
3 , nixosTests
4 , rustPlatform
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "notify_push";
9   version = "0.6.12";
11   src = fetchFromGitHub {
12     owner = "nextcloud";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-Wbrkr9DWOQpOKAp9X/PzU8alDDrDapX/1hE+ObbD/nc=";
16   };
18   cargoHash = "sha256-4bgbhtqdb1IVsf0yIcZOXZCVdRHjdvhZe/VCab0kuMk=";
20   passthru = rec {
21     test_client = rustPlatform.buildRustPackage {
22       pname = "${pname}-test_client";
23       inherit src version;
25       buildAndTestSubdir = "test_client";
27       cargoHash = "sha256-Z7AX/PXfiUHEV/M+i/2qne70tcZnnPj/iNT+DNMECS8=";
29       meta = meta // {
30         mainProgram = "test_client";
31       };
32     };
33     tests =
34       lib.filterAttrs
35         (key: lib.const (lib.hasPrefix "with-postgresql-and-redis" key))
36         nixosTests.nextcloud
37       // {
38         inherit test_client;
39       };
40   };
42   meta = with lib; {
43     changelog = "https://github.com/nextcloud/notify_push/releases/tag/v${version}";
44     description = "Update notifications for nextcloud clients";
45     mainProgram = "notify_push";
46     homepage = "https://github.com/nextcloud/notify_push";
47     license = licenses.agpl3Plus;
48     platforms = platforms.linux;
49     maintainers = teams.helsinki-systems.members;
50   };