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";
|
2023-05-16 12:23:27 +00:00
|
|
|
version = "0.6.3";
|
2022-11-18 15:31:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-16 12:23:27 +00:00
|
|
|
hash = "sha256-5Vd8fD0nB2POtxDFNVtkJfVEe+O8tjnwlwYosDJjIDA=";
|
2022-11-18 15:31:49 +00:00
|
|
|
};
|
|
|
|
|
2023-05-16 12:23:27 +00:00
|
|
|
cargoHash = "sha256-TF4rL7KXsbfYiEOfkKRyr3PCvyocq6tg90OZURZh8f8=";
|
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";
|
|
|
|
|
2023-05-16 12:23:27 +00:00
|
|
|
cargoHash = "sha256-ES0LBKirOUqXOtA9O2KouA+NWisIMoe8XhmnTC8w1cg=";
|
|
|
|
};
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests.nextcloud) with-postgresql-and-redis26;
|
|
|
|
inherit test_client;
|
2022-11-18 15:31:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Update notifications for nextcloud clients";
|
|
|
|
homepage = "https://github.com/nextcloud/notify_push";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ajs124 ];
|
|
|
|
};
|
|
|
|
}
|