2013-10-14 18:27:11 +01:00
|
|
|
{ stdenv, fetchurl, jre, graphviz }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-08 22:09:23 +01:00
|
|
|
version = "8047";
|
2013-10-14 18:27:11 +01:00
|
|
|
name = "plantuml-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/plantuml/plantuml.${version}.jar";
|
2016-09-08 22:09:23 +01:00
|
|
|
sha256 = "11a1qchalymvc7qn9kqxamp8qm8fljpnxmfi4zs8sg75nzddjnlm";
|
2013-10-14 18:27:11 +01: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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|