2023-05-16 14:23:27 +02:00
|
|
|
{ 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
|
|
|
|
2023-05-16 14:23:27 +02: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=";
|
2024-02-22 00:07:55 +01:00
|
|
|
|
|
|
|
meta = meta // {
|
|
|
|
mainProgram = "test_client";
|
|
|
|
};
|
2023-05-16 14:23:27 +02:00
|
|
|
};
|
|
|
|
tests = {
|
2023-12-15 18:13:26 +01:00
|
|
|
inherit (nixosTests.nextcloud)
|
|
|
|
with-postgresql-and-redis26
|
|
|
|
with-postgresql-and-redis27
|
|
|
|
with-postgresql-and-redis28;
|
2023-05-16 14:23:27 +02:00
|
|
|
inherit test_client;
|
2022-11-18 16:31:49 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-26 11:47:19 +01:00
|
|
|
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";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "notify_push";
|
2022-11-18 16:31:49 +01:00
|
|
|
homepage = "https://github.com/nextcloud/notify_push";
|
|
|
|
license = licenses.agpl3Plus;
|
2024-01-26 11:47:19 +01:00
|
|
|
platforms = platforms.linux;
|
2023-11-17 13:35:31 +01:00
|
|
|
maintainers = teams.helsinki-systems.members;
|
2022-11-18 16:31:49 +01:00
|
|
|
};
|
|
|
|
}
|