2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchzip, jdk, makeWrapper }:
|
2019-10-07 02:27:20 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "asciidoctorj";
|
2023-06-05 21:27:21 +00:00
|
|
|
version = "2.5.10";
|
2019-10-07 02:27:20 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2022-06-19 19:13:17 +00:00
|
|
|
url = "mirror://maven/org/asciidoctor/${pname}/${version}/${pname}-${version}-bin.zip";
|
2023-06-05 21:27:21 +00:00
|
|
|
sha256 = "sha256-uhGwZkr5DaoQGkH+romkD7bQTLr+O8Si+wQcZXyMWOI=";
|
2019-10-07 02:27:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
rm bin/asciidoctorj.bat
|
|
|
|
cp -r . $out
|
|
|
|
wrapProgram $out/bin/asciidoctorj \
|
|
|
|
--prefix JAVA_HOME : ${jdk}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Official library for running Asciidoctor on the JVM";
|
2019-10-07 02:27:20 +00:00
|
|
|
longDescription = ''
|
2020-10-22 00:57:09 +00:00
|
|
|
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
|
2019-10-07 02:27:20 +00:00
|
|
|
languages.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://asciidoctor.org/docs/asciidoctorj/";
|
2019-10-07 02:27:20 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ moaxcp ];
|
|
|
|
};
|
2020-10-22 00:57:09 +00:00
|
|
|
}
|