mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
42 lines
986 B
Nix
42 lines
986 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "notify_push";
|
|
version = "0.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nextcloud";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-5Vd8fD0nB2POtxDFNVtkJfVEe+O8tjnwlwYosDJjIDA=";
|
|
};
|
|
|
|
cargoHash = "sha256-TF4rL7KXsbfYiEOfkKRyr3PCvyocq6tg90OZURZh8f8=";
|
|
|
|
passthru = rec {
|
|
test_client = rustPlatform.buildRustPackage {
|
|
pname = "${pname}-test_client";
|
|
inherit src version;
|
|
|
|
buildAndTestSubdir = "test_client";
|
|
|
|
cargoHash = "sha256-ES0LBKirOUqXOtA9O2KouA+NWisIMoe8XhmnTC8w1cg=";
|
|
};
|
|
tests = {
|
|
inherit (nixosTests.nextcloud) with-postgresql-and-redis26;
|
|
inherit test_client;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Update notifications for nextcloud clients";
|
|
homepage = "https://github.com/nextcloud/notify_push";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ ajs124 ];
|
|
};
|
|
}
|