diff options
author | John Soo <john.soo@arista.com> | 2023-07-06 11:19:32 -0700 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-07-07 20:45:44 -0300 |
commit | b79bebbbf846a947330a433315a06ce4d4d0ff08 (patch) | |
tree | 8928dacbc83615ecc74af35789a3e1cff7ff542f | |
parent | a0f00c2d62ea4227940bee06f6c61a15709e7c24 (diff) | |
download | nixpkgs-b79bebbbf846a947330a433315a06ce4d4d0ff08.tar nixpkgs-b79bebbbf846a947330a433315a06ce4d4d0ff08.tar.gz nixpkgs-b79bebbbf846a947330a433315a06ce4d4d0ff08.tar.bz2 nixpkgs-b79bebbbf846a947330a433315a06ce4d4d0ff08.tar.lz nixpkgs-b79bebbbf846a947330a433315a06ce4d4d0ff08.tar.xz nixpkgs-b79bebbbf846a947330a433315a06ce4d4d0ff08.tar.zst nixpkgs-b79bebbbf846a947330a433315a06ce4d4d0ff08.zip |
liquibase: add updateScript
-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/"; |