1 { lib, stdenv, fetchzip, jdk, makeWrapper }:
3 stdenv.mkDerivation rec {
4 pname = "asciidoctorj";
8 url = "mirror://maven/org/asciidoctor/${pname}/${version}/${pname}-${version}-bin.zip";
9 sha256 = "sha256-F4tmpdNS0PIoLpqV9gifJf2iQ/kX+cp3EssRyhzyOUw=";
12 nativeBuildInputs = [ makeWrapper ];
15 rm bin/asciidoctorj.bat
17 wrapProgram $out/bin/asciidoctorj \
18 --prefix JAVA_HOME : ${jdk}
22 description = "Official library for running Asciidoctor on the JVM";
24 AsciidoctorJ is the official library for running Asciidoctor on the JVM.
25 Using AsciidoctorJ, you can convert AsciiDoc content or analyze the
26 structure of a parsed AsciiDoc document from Java and other JVM
29 homepage = "https://asciidoctor.org/docs/asciidoctorj/";
30 license = licenses.asl20;
31 platforms = platforms.all;
32 maintainers = with maintainers; [ moaxcp ];
33 mainProgram = "asciidoctorj";