8 stdenv.mkDerivation rec {
13 url = "https://github.com/stathissideris/ditaa/releases/download/v${version}/ditaa-${version}-standalone.jar";
14 sha256 = "1acnl7khz8aasg230nbsx9dyf8716scgb5l3679cb2bdzxisl64l";
20 mkdir -p $out/bin $out/lib
22 cp ${src} "$out/lib/ditaa.jar"
24 cat > "$out/bin/ditaa" << EOF
26 exec ${jre}/bin/java -jar "$out/lib/ditaa.jar" "\$@"
29 chmod a+x "$out/bin/ditaa"
33 description = "Convert ascii art diagrams into proper bitmap graphics";
34 homepage = "https://github.com/stathissideris/ditaa";
35 sourceProvenance = with sourceTypes; [ binaryBytecode ];
36 license = licenses.lgpl3;
37 platforms = platforms.unix;
38 maintainers = [ maintainers.bjornfor ];
39 mainProgram = "ditaa";