nixpkgs/pkgs/servers/nextcloud/notify_push.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
853 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform }:
2022-11-18 16:31:49 +01:00
rustPlatform.buildRustPackage rec {
pname = "notify_push";
version = "0.6.2";
2022-11-18 16:31:49 +01:00
src = fetchFromGitHub {
owner = "nextcloud";
repo = pname;
rev = "v${version}";
hash = "sha256-YCIXpCNKqdCSvq7CSPSwoPc2gpCnnda8S7I4FzpezMc=";
2022-11-18 16:31:49 +01: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";
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 ];
};
}