liquibase: cleaning up
This commit is contained in:
parent
2ab13ca162
commit
62acc9aa8f
@ -1,11 +1,8 @@
|
|||||||
{ stdenv, fetchurl, jre, makeWrapper
|
{ lib, stdenv, fetchurl, jre, makeWrapper
|
||||||
, mysqlSupport ? true, mysql_jdbc ? null }:
|
, mysqlSupport ? true, mysql_jdbc }:
|
||||||
|
|
||||||
assert mysqlSupport -> mysql_jdbc != null;
|
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
let
|
let
|
||||||
extraJars = optional mysqlSupport mysql_jdbc;
|
extraJars = lib.optional mysqlSupport mysql_jdbc;
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -47,15 +44,15 @@ stdenv.mkDerivation rec {
|
|||||||
# taken from the executable script in the source
|
# taken from the executable script in the source
|
||||||
CP="$out/liquibase.jar"
|
CP="$out/liquibase.jar"
|
||||||
${addJars "$out/lib"}
|
${addJars "$out/lib"}
|
||||||
${concatStringsSep "\n" (map (p: addJars "${p}/share/java") extraJars)}
|
${lib.concatStringsSep "\n" (map (p: addJars "${p}/share/java") extraJars)}
|
||||||
|
|
||||||
${getBin jre}/bin/java -cp "\$CP" \$JAVA_OPTS \
|
${lib.getBin jre}/bin/java -cp "\$CP" \$JAVA_OPTS \
|
||||||
liquibase.integration.commandline.Main \''${1+"\$@"}
|
liquibase.integration.commandline.Main \''${1+"\$@"}
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/liquibase
|
chmod +x $out/bin/liquibase
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Version Control for your database";
|
description = "Version Control for your database";
|
||||||
homepage = "https://www.liquibase.org/";
|
homepage = "https://www.liquibase.org/";
|
||||||
changelog = "https://raw.githubusercontent.com/liquibase/liquibase/v${version}/changelog.txt";
|
changelog = "https://raw.githubusercontent.com/liquibase/liquibase/v${version}/changelog.txt";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user