summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2019-11-14 22:30:45 +0100
committerGitHub <noreply@github.com>2019-11-14 22:30:45 +0100
commit32b0cb0f46ec28a0a342bb206151d29958af9539 (patch)
tree58b1df0146df6d91766026736fa6b4754cb80bd9 /pkgs/tools/typesetting
parentdf7cdb37ce97bc5ea91a9e6e1bf946ecaccbc86a (diff)
parentecccca3dd0e50bd679a7524da06be1a5e7e8419f (diff)
downloadnixpkgs-32b0cb0f46ec28a0a342bb206151d29958af9539.tar
nixpkgs-32b0cb0f46ec28a0a342bb206151d29958af9539.tar.gz
nixpkgs-32b0cb0f46ec28a0a342bb206151d29958af9539.tar.bz2
nixpkgs-32b0cb0f46ec28a0a342bb206151d29958af9539.tar.lz
nixpkgs-32b0cb0f46ec28a0a342bb206151d29958af9539.tar.xz
nixpkgs-32b0cb0f46ec28a0a342bb206151d29958af9539.tar.zst
nixpkgs-32b0cb0f46ec28a0a342bb206151d29958af9539.zip
Merge pull request #70604 from moaxcp/asciidoctorj
asciidoctorj init at 2.1.0
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/asciidoctorj/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/asciidoctorj/default.nix b/pkgs/tools/typesetting/asciidoctorj/default.nix
new file mode 100644
index 00000000000..8eaee977d28
--- /dev/null
+++ b/pkgs/tools/typesetting/asciidoctorj/default.nix
@@ -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 ];
+  };
+}