2023-05-16 12:23:27 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nixosTests
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
2022-11-18 15:31:49 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "notify_push";
|
2024-08-01 11:05:29 +00:00
|
|
|
version = "0.7.0";
|
2022-11-18 15:31:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-08-01 11:05:29 +00:00
|
|
|
hash = "sha256-QHVWiH6qkwQay0wffoyDUyVxgxzNp10ieYIsdqoEdCM=";
|
2022-11-18 15:31:49 +00:00
|
|
|
};
|
|
|
|
|
2024-08-01 11:05:29 +00:00
|
|
|
cargoHash = "sha256-HwE/ql8rJcGIINy+hNnpaTFEJqbmuUDrIvVI8kCpfQ8=";
|
2022-11-18 15:31:49 +00:00
|
|
|
|
2023-05-16 12:23:27 +00:00
|
|
|
passthru = rec {
|
2022-11-18 15:31:49 +00:00
|
|
|
test_client = rustPlatform.buildRustPackage {
|
|
|
|
pname = "${pname}-test_client";
|
|
|
|
inherit src version;
|
|
|
|
|
|
|
|
buildAndTestSubdir = "test_client";
|
|
|
|
|
2024-08-01 11:05:29 +00:00
|
|
|
cargoHash = "sha256-KybnPzCM9mLF55s5eZ3qr5GRcaaYFpEdNklWEo/72Ts=";
|
2024-02-21 23:07:55 +00:00
|
|
|
|
|
|
|
meta = meta // {
|
|
|
|
mainProgram = "test_client";
|
|
|
|
};
|
2023-05-16 12:23:27 +00:00
|
|
|
};
|
2024-07-06 21:41:18 +00:00
|
|
|
tests =
|
|
|
|
lib.filterAttrs
|
|
|
|
(key: lib.const (lib.hasPrefix "with-postgresql-and-redis" key))
|
|
|
|
nixosTests.nextcloud
|
|
|
|
// {
|
|
|
|
inherit test_client;
|
|
|
|
};
|
2022-11-18 15:31:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-26 10:47:19 +00:00
|
|
|
changelog = "https://github.com/nextcloud/notify_push/releases/tag/v${version}";
|
2022-11-18 15:31:49 +00:00
|
|
|
description = "Update notifications for nextcloud clients";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "notify_push";
|
2022-11-18 15:31:49 +00:00
|
|
|
homepage = "https://github.com/nextcloud/notify_push";
|
|
|
|
license = licenses.agpl3Plus;
|
2024-01-26 10:47:19 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-17 12:35:31 +00:00
|
|
|
maintainers = teams.helsinki-systems.members;
|
2022-11-18 15:31:49 +00:00
|
|
|
};
|
|
|
|
}
|