mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
5c812046c3
Diff: https://github.com/nextcloud/notify_push/compare/v0.6.12...v0.7.0 Changelog: https://github.com/nextcloud/notify_push/releases/tag/v0.7.0
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "notify_push";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nextcloud";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-QHVWiH6qkwQay0wffoyDUyVxgxzNp10ieYIsdqoEdCM=";
|
|
};
|
|
|
|
cargoHash = "sha256-HwE/ql8rJcGIINy+hNnpaTFEJqbmuUDrIvVI8kCpfQ8=";
|
|
|
|
passthru = rec {
|
|
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;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/nextcloud/notify_push/releases/tag/v${version}";
|
|
description = "Update notifications for nextcloud clients";
|
|
mainProgram = "notify_push";
|
|
homepage = "https://github.com/nextcloud/notify_push";
|
|
license = licenses.agpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.helsinki-systems.members;
|
|
};
|
|
}
|