Merge pull request #70604 from moaxcp/asciidoctorj

asciidoctorj init at 2.1.0
This commit is contained in:
Renaud 2019-11-14 22:30:45 +01:00 committed by GitHub
commit 32b0cb0f46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ stdenv, fetchzip, jdk, makeWrapper }:
stdenv.mkDerivation rec {
pname = "asciidoctorj";
version = "2.1.0";
src = fetchzip {
url = "http://dl.bintray.com/asciidoctor/maven/org/asciidoctor/${pname}/${version}/${pname}-${version}-bin.zip";
sha256 = "19fl4y3xlkmmgf5vyyb3k9p6nyglck9l53r6x12zil01q49g0zba";
};
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 ];
};
}

View file

@ -2126,6 +2126,8 @@ in
epubcheck = null;
};
asciidoctorj = callPackage ../tools/typesetting/asciidoctorj { };
asunder = callPackage ../applications/audio/asunder { };
autossh = callPackage ../tools/networking/autossh { };