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-06-05 15:53:02 +00:00
|
|
|
version = "0.6.12";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-Wbrkr9DWOQpOKAp9X/PzU8alDDrDapX/1hE+ObbD/nc=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-4bgbhtqdb1IVsf0yIcZOXZCVdRHjdvhZe/VCab0kuMk=";
|
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-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-Z7AX/PXfiUHEV/M+i/2qne70tcZnnPj/iNT+DNMECS8=";
|
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-redis27
|
2024-06-05 15:53:02 +00:00
|
|
|
with-postgresql-and-redis28
|
|
|
|
with-postgresql-and-redis29;
|
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
|
|
|
};
|
|
|
|
}
|