1 { lib, stdenv, fetchurl, jre }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/stathissideris/ditaa/releases/download/v${version}/ditaa-${version}-standalone.jar";
9 sha256 = "1acnl7khz8aasg230nbsx9dyf8716scgb5l3679cb2bdzxisl64l";
15 mkdir -p $out/bin $out/lib
17 cp ${src} "$out/lib/ditaa.jar"
19 cat > "$out/bin/ditaa" << EOF
21 exec ${jre}/bin/java -jar "$out/lib/ditaa.jar" "\$@"
24 chmod a+x "$out/bin/ditaa"
28 description = "Convert ascii art diagrams into proper bitmap graphics";
29 homepage = "https://github.com/stathissideris/ditaa";
30 sourceProvenance = with sourceTypes; [ binaryBytecode ];
31 license = licenses.lgpl3;
32 platforms = platforms.unix;
33 maintainers = [ maintainers.bjornfor ];
34 mainProgram = "ditaa";