2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre, graphviz }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.2021.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "plantuml";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/plantuml/${version}/plantuml.${version}.jar";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-wVwPPAIR7oDIe+vPh/NZJazX/CU4yAxzafDrst0YSBI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
install -Dm644 $src $out/lib/plantuml.jar
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/plantuml \
|
|
|
|
--argv0 plantuml \
|
|
|
|
--set GRAPHVIZ_DOT ${graphviz}/bin/dot \
|
|
|
|
--add-flags "-jar $out/lib/plantuml.jar"
|
|
|
|
|
|
|
|
$out/bin/plantuml -help
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Draw UML diagrams using a simple and human readable text description";
|
|
|
|
homepage = "http://plantuml.sourceforge.net/";
|
|
|
|
# "plantuml -license" says GPLv3 or later
|
|
|
|
license = licenses.gpl3Plus;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor Mogria ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|