From d61106e5093c7d45cab8e97b4658fb7bfe681cd7 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 28 Nov 2024 23:50:46 +0100 Subject: [PATCH] onionshare: add update script --- pkgs/by-name/on/onionshare/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/on/onionshare/package.nix b/pkgs/by-name/on/onionshare/package.nix index fc8ba2673dcc..4b36c4ca5f01 100644 --- a/pkgs/by-name/on/onionshare/package.nix +++ b/pkgs/by-name/on/onionshare/package.nix @@ -13,6 +13,8 @@ fetchpatch, versionCheckHook, + gitUpdater, + onionshare-gui, }: python3Packages.buildPythonApplication rec { pname = "onionshare-cli"; @@ -119,6 +121,13 @@ python3Packages.buildPythonApplication rec { __darwinAllowLocalNetworking = true; + passthru = { + updateScript = gitUpdater { rev-prefix = "v"; }; + tests = { + inherit onionshare-gui; + }; + }; + meta = { description = "Securely and anonymously send and receive files"; longDescription = ''