37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ stdenv, fetchzip, jdk, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "asciidoctorj";
|
|
version = "2.2.0";
|
|
|
|
src = fetchzip {
|
|
url = "http://dl.bintray.com/asciidoctor/maven/org/asciidoctor/${pname}/${version}/${pname}-${version}-bin.zip";
|
|
sha256 = "0akxzfibfa8msnardvyy9hkj2z6sqn7pnwphz6avixdcclg6yxa5";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
rm bin/asciidoctorj.bat
|
|
cp -r . $out
|
|
wrapProgram $out/bin/asciidoctorj \
|
|
--prefix JAVA_HOME : ${jdk}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = ''
|
|
AsciidoctorJ is the official library for running Asciidoctor on the JVM.
|
|
'';
|
|
longDescription = ''
|
|
AsciidoctorJ is the official library for running Asciidoctor on the JVM.
|
|
Using AsciidoctorJ, you can convert AsciiDoc content or analyze the
|
|
structure of a parsed AsciiDoc document from Java and other JVM
|
|
languages.
|
|
'';
|
|
homepage = https://asciidoctor.org/docs/asciidoctorj/;
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ moaxcp ];
|
|
};
|
|
}
|