@@ -6,27 +6,15 @@ assert mysqlSupport -> mysql_jdbc != null;
66with stdenv.lib;
77let
88 extraJars = optional mysqlSupport mysql_jdbc;
9− logback-core = fetchurl {
10− url = "http://central.maven.org/maven2/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar";
11− sha256 = "5946d837fe6f960c02a53eda7a6926ecc3c758bbdd69aa453ee429f858217f22";
12− };
13− logback-classic = fetchurl {
14− url = "http://central.maven.org/maven2/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar";
15− sha256 = "fb53f8539e7fcb8f093a56e138112056ec1dc809ebb020b59d8a36a5ebac37e0";
16− };
17− slf4j = fetchurl {
18− url = "http://central.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar";
19− sha256 = "18c4a0095d5c1da6b817592e767bb23d29dd2f560ad74df75ff3961dbde25b79";
20− };
219in
2210
2311stdenv.mkDerivation rec {
2412 pname = "liquibase";
25− version = "3.6.2";
13+ version = "3.8.5";
2614
2715 src = fetchurl {
28− url = "https://github.com/liquibase/liquibase/releases/download/${pname}-parent-${version}/${pname}-${version}-bin.tar.gz";
29− sha256 = "199ybjk0xxsg04v5x5l4arljmzj96hxva6ym6bp7av7dny0nqvfx";
16+ url = "https://github.com/liquibase/liquibase/releases/download/v${version}/${pname}-${version}.tar.gz";
17+ sha256 = "0wvz188i1214b904xrhvba90hyfrlc4za3aibbdqfm86wm3qzh6s";
3018 };
3119
3220 buildInputs = [ jre makeWrapper ];
@@ -42,22 +30,17 @@ stdenv.mkDerivation rec {
4230 done
4331 '';
4432 in ''
45− mkdir -p $out/{bin,lib,sdk}
46− mv ./* $out/
47− cp ${logback-core} ${logback-classic} ${slf4j} $out/lib
33+ mkdir -p $out
34+ mv ./{lib,licenses,liquibase.jar} $out/
4835
49− # Clean up documentation.
5036 mkdir -p $out/share/doc/${pname}-${version}
51− mv $out/LICENSE.txt \
52− $out/README.txt \
37+ mv LICENSE.txt \
38+ README.txt \
39+ ABOUT.txt \
40+ changelog.txt \
5341 $out/share/doc/${pname}-${version}
5442
55− # Remove silly files.
56− rm $out/liquibase.bat $out/liquibase.spec
57−
58− # we provide our own script
59− rm $out/liquibase
60−
43+ mkdir -p $out/bin
6144 # there’s a lot of escaping, but I’m not sure how to improve that
6245 cat > $out/bin/liquibase <<EOF
6346 #!/usr/bin/env bash
@@ -75,6 +58,7 @@ stdenv.mkDerivation rec {
7558 meta = {
7659 description = "Version Control for your database";
7760 homepage = http://www.liquibase.org/;
61+ changelog = "https://raw.githubusercontent.com/liquibase/liquibase/v${version}/changelog.txt";
7862 license = licenses.asl20;
7963 maintainers = with maintainers; [ nequissimus ];
8064 platforms = with platforms; unix;