nixpkgs/pkgs/servers/nextcloud/notify_push.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.3 KiB
Nix
Raw Permalink Normal View History

{ lib
, fetchFromGitHub
, nixosTests
, rustPlatform
}:
2022-11-18 16:31:49 +01:00
rustPlatform.buildRustPackage rec {
pname = "notify_push";
2024-03-23 13:37:05 +01:00
version = "0.6.10";
2022-11-18 16:31:49 +01:00
src = fetchFromGitHub {
owner = "nextcloud";
repo = pname;
rev = "v${version}";
2024-03-23 13:37:05 +01:00
hash = "sha256-Kk9l9jowerxh5nsKQ5TOaijSJbs0DgJKaRl9tlAttzI=";
2022-11-18 16:31:49 +01:00
};
2024-03-23 13:37:05 +01:00
cargoHash = "sha256-wtmYWQOYy8JmbSxgrXkFtDe6KmJJIMVpcELQj06II4k=";
2022-11-18 16:31:49 +01:00
passthru = rec {
2022-11-18 16:31:49 +01:00
test_client = rustPlatform.buildRustPackage {
pname = "${pname}-test_client";
inherit src version;
buildAndTestSubdir = "test_client";
2024-03-23 13:37:05 +01:00
cargoHash = "sha256-sPUlke8KI6sX2HneeoZh8RMG7aydC43c37V179ipukU=";
meta = meta // {
mainProgram = "test_client";
};
};
tests = {
inherit (nixosTests.nextcloud)
with-postgresql-and-redis26
with-postgresql-and-redis27
with-postgresql-and-redis28;
inherit test_client;
2022-11-18 16:31:49 +01:00
};
};
meta = with lib; {
changelog = "https://github.com/nextcloud/notify_push/releases/tag/v${version}";
2022-11-18 16:31:49 +01:00
description = "Update notifications for nextcloud clients";
mainProgram = "notify_push";
2022-11-18 16:31:49 +01:00
homepage = "https://github.com/nextcloud/notify_push";
license = licenses.agpl3Plus;
platforms = platforms.linux;
maintainers = teams.helsinki-systems.members;
2022-11-18 16:31:49 +01:00
};
}