Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #47587 from peterhoeg/u/plantuml

plantuml: 1.2018.10 -> 1.2018.11

authored by Peter Hoeg and committed by GitHub ae2bb82a 13b29031

+14 -17
+14 -17
pkgs/tools/misc/plantuml/default.nix
··· 1 - { stdenv, fetchurl, jre, graphviz }: 2 3 stdenv.mkDerivation rec { 4 - version = "1.2018.10"; 5 name = "plantuml-${version}"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/project/plantuml/${version}/plantuml.${version}.jar"; 9 - sha256 = "19s3zrfri388nfykcs67sfk0dhmiw0rcv0dvj1j4c0fkyhl41bjs"; 10 }; 11 12 - # It's only a .jar file and a shell wrapper 13 - phases = [ "installPhase" ]; 14 15 - installPhase = '' 16 - mkdir -p "$out/bin" 17 - mkdir -p "$out/lib" 18 19 - cp "$src" "$out/lib/plantuml.jar" 20 21 - cat > "$out/bin/plantuml" << EOF 22 - #!${stdenv.shell} 23 - export GRAPHVIZ_DOT="${graphviz}/bin/dot" 24 - exec "${jre}/bin/java" -jar "$out/lib/plantuml.jar" "\$@" 25 - EOF 26 - chmod a+x "$out/bin/plantuml" 27 ''; 28 29 meta = with stdenv.lib; { 30 description = "Draw UML diagrams using a simple and human readable text description"; 31 homepage = http://plantuml.sourceforge.net/; 32 - # "java -jar plantuml.jar -license" says GPLv3 or later 33 license = licenses.gpl3Plus; 34 - maintainers = [ maintainers.bjornfor ]; 35 platforms = platforms.unix; 36 }; 37 }
··· 1 + { stdenv, fetchurl, makeWrapper, jre, graphviz }: 2 3 stdenv.mkDerivation rec { 4 + version = "1.2018.11"; 5 name = "plantuml-${version}"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/project/plantuml/${version}/plantuml.${version}.jar"; 9 + sha256 = "006bpxz6zsjypxscxbnz3b7icg47bfwcq1v7rvijflchw12hq9nm"; 10 }; 11 12 + nativeBuildInputs = [ makeWrapper ]; 13 14 + buildCommand = '' 15 + install -Dm644 $src $out/lib/plantuml.jar 16 17 + mkdir -p $out/bin 18 + makeWrapper ${jre}/bin/java $out/bin/plantuml \ 19 + --argv0 plantuml \ 20 + --set GRAPHVIZ_DOT ${graphviz}/bin/dot \ 21 + --add-flags "-jar $out/lib/plantuml.jar" 22 23 + $out/bin/plantuml -help 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Draw UML diagrams using a simple and human readable text description"; 28 homepage = http://plantuml.sourceforge.net/; 29 + # "plantuml -license" says GPLv3 or later 30 license = licenses.gpl3Plus; 31 + maintainers = with maintainers; [ bjornfor ]; 32 platforms = platforms.unix; 33 }; 34 }