diff options
-rw-r--r-- | pkgs/development/tools/database/liquibase/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
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/"; |