2023-03-04 12:14:45 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "notify_push";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "0.6.2";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-YCIXpCNKqdCSvq7CSPSwoPc2gpCnnda8S7I4FzpezMc=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
cargoHash = "sha256-l6gMz/iJeLl+RLjOiR9U1m6V/rK+RWM84bQiz4jCFtY=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
test_client = rustPlatform.buildRustPackage {
|
|
|
|
pname = "${pname}-test_client";
|
|
|
|
inherit src version;
|
|
|
|
|
|
|
|
buildAndTestSubdir = "test_client";
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
cargoHash = "sha256-4jQvlxU3S3twTpiLab8BXC6ZSPSWN6ftK3GzfKnjHSE=";
|
2023-03-04 12:14:45 +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 ];
|
|
|
|
};
|
|
|
|
}
|