2013-10-14 19:27:11 +02:00
|
|
|
{ stdenv, fetchurl, jre, graphviz }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-30 20:56:29 +02:00
|
|
|
version = "1.2018.10";
|
2013-10-14 19:27:11 +02:00
|
|
|
name = "plantuml-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-06 21:05:30 +02:00
|
|
|
url = "mirror://sourceforge/project/plantuml/${version}/plantuml.${version}.jar";
|
2018-08-30 20:56:29 +02:00
|
|
|
sha256 = "19s3zrfri388nfykcs67sfk0dhmiw0rcv0dvj1j4c0fkyhl41bjs";
|
2013-10-14 19:27:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# It's only a .jar file and a shell wrapper
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/lib"
|
|
|
|
|
|
|
|
cp "$src" "$out/lib/plantuml.jar"
|
|
|
|
|
|
|
|
cat > "$out/bin/plantuml" << EOF
|
|
|
|
#!${stdenv.shell}
|
|
|
|
export GRAPHVIZ_DOT="${graphviz}/bin/dot"
|
|
|
|
exec "${jre}/bin/java" -jar "$out/lib/plantuml.jar" "\$@"
|
|
|
|
EOF
|
|
|
|
chmod a+x "$out/bin/plantuml"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Draw UML diagrams using a simple and human readable text description";
|
|
|
|
homepage = http://plantuml.sourceforge.net/;
|
|
|
|
# "java -jar plantuml.jar -license" says GPLv3 or later
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2018-03-31 00:30:39 +02:00
|
|
|
platforms = platforms.unix;
|
2013-10-14 19:27:11 +02:00
|
|
|
};
|
|
|
|
}
|