Merge pull request #311655 from nmattia/nm-kitty
[NixPkgs.git] / pkgs / servers / nextcloud / notify_push.nix
blob3d92584d2f9373401f9c8325523ce49d7156d216
1 { lib
2 , fetchFromGitHub
3 , nixosTests
4 , rustPlatform
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "notify_push";
9   version = "0.6.10";
11   src = fetchFromGitHub {
12     owner = "nextcloud";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-Kk9l9jowerxh5nsKQ5TOaijSJbs0DgJKaRl9tlAttzI=";
16   };
18   cargoHash = "sha256-wtmYWQOYy8JmbSxgrXkFtDe6KmJJIMVpcELQj06II4k=";
20   passthru = rec {
21     test_client = rustPlatform.buildRustPackage {
22       pname = "${pname}-test_client";
23       inherit src version;
25       buildAndTestSubdir = "test_client";
27       cargoHash = "sha256-sPUlke8KI6sX2HneeoZh8RMG7aydC43c37V179ipukU=";
29       meta = meta // {
30         mainProgram = "test_client";
31       };
32     };
33     tests = {
34       inherit (nixosTests.nextcloud)
35         with-postgresql-and-redis26
36         with-postgresql-and-redis27
37         with-postgresql-and-redis28;
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   };