Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, fetchFromGitHub, nixosTests, rustPlatform, fetchNextcloudApp,}:
rustPlatform.buildRustPackage rec { pname = "notify_push";
# NOTE: make sure this is compatible with all Nextcloud versions # in nixpkgs! # For that, check the `<dependencies>` section of `appinfo/info.xml` # in the app (https://github.com/nextcloud/notify_push/blob/main/appinfo/info.xml) version = "1.1.0";
src = fetchFromGitHub { owner = "nextcloud"; repo = "notify_push"; tag = "v${version}"; hash = "sha256-mHoVNKvE4Hszi1wg9fIHjRMJp5+CIBCgUPzreJ6Jnew="; };
cargoHash = "sha256-PkRWyz4Gd2gGg9n4yChtR96QNOjEK5HNVhBwkkVjVPE=";
passthru = rec { app = fetchNextcloudApp { appName = "notify_push"; appVersion = version; hash = "sha256-nxbmzRaW4FYmwTF27P9K7SebKYiL5KOMdyU5unif+NQ="; license = "agpl3Plus"; homepage = "https://github.com/nextcloud/notify_push"; url = "https://github.com/nextcloud-releases/notify_push/releases/download/v${version}/notify_push-v${version}.tar.gz"; description = "Push update support for desktop app"; };
test_client = rustPlatform.buildRustPackage { pname = "${pname}-test_client"; inherit src version;
buildAndTestSubdir = "test_client";
cargoHash = "sha256-PkRWyz4Gd2gGg9n4yChtR96QNOjEK5HNVhBwkkVjVPE=";
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; teams = [ teams.helsinki-systems ]; };}