2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nixosTests
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "notify_push";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.6.10";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Kk9l9jowerxh5nsKQ5TOaijSJbs0DgJKaRl9tlAttzI=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-wtmYWQOYy8JmbSxgrXkFtDe6KmJJIMVpcELQj06II4k=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru = rec {
|
2023-03-04 12:14:45 +00:00
|
|
|
test_client = rustPlatform.buildRustPackage {
|
|
|
|
pname = "${pname}-test_client";
|
|
|
|
inherit src version;
|
|
|
|
|
|
|
|
buildAndTestSubdir = "test_client";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-sPUlke8KI6sX2HneeoZh8RMG7aydC43c37V179ipukU=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
meta = meta // {
|
|
|
|
mainProgram = "test_client";
|
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
tests = {
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit (nixosTests.nextcloud)
|
|
|
|
with-postgresql-and-redis26
|
|
|
|
with-postgresql-and-redis27
|
|
|
|
with-postgresql-and-redis28;
|
2023-05-24 13:37:59 +00:00
|
|
|
inherit test_client;
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-07 01:22:34 +00:00
|
|
|
changelog = "https://github.com/nextcloud/notify_push/releases/tag/v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
description = "Update notifications for nextcloud clients";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "notify_push";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/nextcloud/notify_push";
|
|
|
|
license = licenses.agpl3Plus;
|
2024-02-07 01:22:34 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = teams.helsinki-systems.members;
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|