From 42960d743a87684313e56251bcd97225e60a712d Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Tue, 24 Sep 2024 00:51:36 +0800 Subject: [PATCH] opencc: add passthru.updateScript --- pkgs/tools/text/opencc/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/text/opencc/default.nix b/pkgs/tools/text/opencc/default.nix index fef7fbd9dbbb..a6e833de76e6 100644 --- a/pkgs/tools/text/opencc/default.nix +++ b/pkgs/tools/text/opencc/default.nix @@ -6,6 +6,7 @@ python3, opencc, rapidjson, + gitUpdater, }: stdenv.mkDerivation rec { @@ -37,6 +38,10 @@ stdenv.mkDerivation rec { (lib.cmakeBool "USE_SYSTEM_RAPIDJSON" true) ]; + passthru = { + updateScript = gitUpdater { rev-prefix = "ver."; }; + }; + meta = with lib; { homepage = "https://github.com/BYVoid/OpenCC"; license = licenses.asl20;