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 {
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.2023.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "plantuml";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-04-27 09:35:20 +00:00
|
|
|
url = "https://github.com/plantuml/plantuml/releases/download/v${version}/plantuml-pdf-${version}.jar";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-E3ipqlf5VWNkYioEC5g/33rmMS1ahV960Tx9HiGH++U=";
|
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/";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# "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;
|
|
|
|
};
|
|
|
|
}
|