From b79bebbbf846a947330a433315a06ce4d4d0ff08 Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 6 Jul 2023 11:19:32 -0700 Subject: liquibase: add updateScript --- pkgs/development/tools/database/liquibase/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix index 2a873038d91..bc76fedaca4 100644 --- a/pkgs/development/tools/database/liquibase/default.nix +++ b/pkgs/development/tools/database/liquibase/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, gitUpdater , jre , makeWrapper , mysqlSupport ? true @@ -28,7 +29,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "https://github.com/liquibase/liquibase/releases/download/v${version}/${pname}-${version}.tar.gz"; - sha256 = "sha256-mIuHNNo/L5h2RvpTN0jZt6ri+Il0H9aSL4auOjIepjU="; + hash = "sha256-mIuHNNo/L5h2RvpTN0jZt6ri+Il0H9aSL4auOjIepjU="; }; nativeBuildInputs = [ makeWrapper ]; @@ -72,6 +73,15 @@ stdenv.mkDerivation rec { chmod +x $out/bin/liquibase ''; + passthru.updateScript = gitUpdater { + url = "https://github.com/liquibase/liquibase"; + rev-prefix = "v"; + # The latest versions are in the 4.xx series. I am not sure where + # 10.10.10 and 5.0.0 came from, though it appears like they are + # for the commercial product. + ignoredVersions = "10.10.10|5.0.0|.*-beta.*"; + }; + meta = with lib; { description = "Version Control for your database"; homepage = "https://www.liquibase.org/"; -- cgit 1.4.1