bbin: add updateScript

This commit is contained in:
sohalt 2023-11-01 15:18:15 +01:00
parent 86c4da9608
commit 3d830355df

View File

@ -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";