Commit b79bebbb authored by John Soo's avatar John Soo Committed by Anderson Torres
Browse files

liquibase: add updateScript

parent a0f00c2d
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{ 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/";