2023-02-24 13:43:43 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2022-11-18 16:31:49 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "notify_push";
|
2023-03-30 00:04:57 +02:00
|
|
|
version = "0.6.2";
|
2022-11-18 16:31:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-30 00:04:57 +02:00
|
|
|
hash = "sha256-YCIXpCNKqdCSvq7CSPSwoPc2gpCnnda8S7I4FzpezMc=";
|
2022-11-18 16:31:49 +01:00
|
|
|
};
|
|
|
|
|
2023-03-30 00:04:57 +02:00
|
|
|
cargoHash = "sha256-l6gMz/iJeLl+RLjOiR9U1m6V/rK+RWM84bQiz4jCFtY=";
|
2022-11-18 16:31:49 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
test_client = rustPlatform.buildRustPackage {
|
|
|
|
pname = "${pname}-test_client";
|
|
|
|
inherit src version;
|
|
|
|
|
|
|
|
buildAndTestSubdir = "test_client";
|
|
|
|
|
2023-03-30 00:04:57 +02:00
|
|
|
cargoHash = "sha256-4jQvlxU3S3twTpiLab8BXC6ZSPSWN6ftK3GzfKnjHSE=";
|
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;
|
|
|
|
maintainers = with maintainers; [ ajs124 ];
|
|
|
|
};
|
|
|
|
}
|