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";
|
2023-12-15 18:13:26 +01:00
|
|
|
version = "0.6.6";
|
2022-11-18 16:31:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-12-15 18:13:26 +01:00
|
|
|
hash = "sha256-9wVH+msUh0t0PKz+5044PhT9lGsbfp4u44gX0O70Pbo=";
|
2022-11-18 16:31:49 +01:00
|
|
|
};
|
|
|
|
|
2023-12-15 18:13:26 +01:00
|
|
|
cargoHash = "sha256-Q4KA+mc48OfmxYY7vDJ2ZU/Wd+101kbimwAw6ag3d+w=";
|
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";
|
|
|
|
|
2023-12-15 18:13:26 +01:00
|
|
|
cargoHash = "sha256-XiaeCVgVjre7NmH/B+dNw0u2HV0vJwlgDjhLXXgJS+Y=";
|
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; {
|
|
|
|
description = "Update notifications for nextcloud clients";
|
|
|
|
homepage = "https://github.com/nextcloud/notify_push";
|
|
|
|
license = licenses.agpl3Plus;
|
2023-11-17 13:35:31 +01:00
|
|
|
maintainers = teams.helsinki-systems.members;
|
2022-11-18 16:31:49 +01:00
|
|
|
};
|
|
|
|
}
|