nixpkgs/pkgs/servers/nextcloud/notify_push.nix

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

52 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, nixosTests
, rustPlatform
}:
2022-11-18 15:31:49 +00:00
rustPlatform.buildRustPackage rec {
pname = "notify_push";
version = "0.7.0";
2022-11-18 15:31:49 +00:00
src = fetchFromGitHub {
owner = "nextcloud";
repo = pname;
rev = "v${version}";
hash = "sha256-QHVWiH6qkwQay0wffoyDUyVxgxzNp10ieYIsdqoEdCM=";
2022-11-18 15:31:49 +00:00
};
cargoHash = "sha256-HwE/ql8rJcGIINy+hNnpaTFEJqbmuUDrIvVI8kCpfQ8=";
2022-11-18 15:31:49 +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";
cargoHash = "sha256-KybnPzCM9mLF55s5eZ3qr5GRcaaYFpEdNklWEo/72Ts=";
meta = meta // {
mainProgram = "test_client";
};
};
tests =
lib.filterAttrs
(key: lib.const (lib.hasPrefix "with-postgresql-and-redis" key))
nixosTests.nextcloud
// {
inherit test_client;
};
2022-11-18 15:31:49 +00:00
};
meta = with lib; {
changelog = "https://github.com/nextcloud/notify_push/releases/tag/v${version}";
2022-11-18 15:31:49 +00:00
description = "Update notifications for nextcloud clients";
mainProgram = "notify_push";
2022-11-18 15:31:49 +00:00
homepage = "https://github.com/nextcloud/notify_push";
license = licenses.agpl3Plus;
platforms = platforms.linux;
maintainers = teams.helsinki-systems.members;
2022-11-18 15:31:49 +00:00
};
}