From 3d830355df1f901df12ac5c534649f78b8fd7579 Mon Sep 17 00:00:00 2001 From: sohalt Date: Wed, 1 Nov 2023 15:18:15 +0100 Subject: [PATCH] bbin: add updateScript --- pkgs/development/tools/bbin/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/bbin/default.nix b/pkgs/development/tools/bbin/default.nix index 9354134d3b88..ab8638e5033c 100644 --- a/pkgs/development/tools/bbin/default.nix +++ b/pkgs/development/tools/bbin/default.nix @@ -1,6 +1,7 @@ { lib , stdenvNoCC , fetchFromGitHub +, gitUpdater , makeWrapper , babashka-unwrapped }: @@ -33,6 +34,10 @@ stdenvNoCC.mkDerivation rec { runHook postInstall ''; + passthru = { + updateScript = gitUpdater { rev-prefix = "v"; }; + }; + meta = with lib; { homepage = "https://github.com/babashka/bbin"; description = "Install any Babashka script or project with one command";