ditaa: 0.9 -> 0.11 (adds --svg support)

This commit is contained in:
John Wiegley 2018-01-30 00:45:50 -08:00 committed by Bjørn Forsman
parent 93be6c41aa
commit 0ef512fe7a

View File

@ -1,27 +1,20 @@
{ stdenv, fetchurl, unzip, jre }:
{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "ditaa-0.9";
name = "ditaa-0.11.0";
src = fetchurl {
name = "${name}.zip";
url = "mirror://sourceforge/project/ditaa/ditaa/0.9/ditaa0_9.zip";
sha256 = "12g6k3hacvyw3s9pijli7vfnkspyp37qkr29qgbmq1hbp0ryk2fn";
url = https://github.com/stathissideris/ditaa/releases/download/v0.11.0/ditaa-0.11.0-standalone.jar;
sha256 = "1acnl7khz8aasg230nbsx9dyf8716scgb5l3679cb2bdzxisl64l";
};
buildInputs = [ unzip ];
phases = [ "installPhase" ];
installPhase = ''
unzip "$src"
mkdir -p "$out/bin"
mkdir -p "$out/lib"
mkdir -p "$out/share/ditaa"
cp dita*.jar "$out/lib/ditaa.jar"
cp COPYING HISTORY "$out/share/ditaa"
cp ${src} "$out/lib/ditaa.jar"
cat > "$out/bin/ditaa" << EOF
#!${stdenv.shell}
@ -33,8 +26,8 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "Convert ascii art diagrams into proper bitmap graphics";
homepage = http://ditaa.sourceforge.net/;
license = licenses.gpl2;
homepage = https://github.com/stathissideris/ditaa;
license = licenses.lgpl3;
platforms = platforms.unix;
maintainers = [ maintainers.bjornfor ];
};