base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / as / asciidoctorj / package.nix
blob4fe4878faae800d24403d85ad82285eb5e1d1806
1 { lib, stdenv, fetchzip, jdk, makeWrapper }:
3 stdenv.mkDerivation rec {
4   pname = "asciidoctorj";
5   version = "3.0.0";
7   src = fetchzip {
8     url = "mirror://maven/org/asciidoctor/${pname}/${version}/${pname}-${version}-bin.zip";
9     sha256 = "sha256-F4tmpdNS0PIoLpqV9gifJf2iQ/kX+cp3EssRyhzyOUw=";
10   };
12   nativeBuildInputs = [ makeWrapper ];
14   installPhase = ''
15     rm bin/asciidoctorj.bat
16     cp -r . $out
17     wrapProgram $out/bin/asciidoctorj \
18       --prefix JAVA_HOME : ${jdk}
19   '';
21   meta = with lib; {
22     description = "Official library for running Asciidoctor on the JVM";
23     longDescription = ''
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
27       languages.
28     '';
29     homepage = "https://asciidoctor.org/docs/asciidoctorj/";
30     license = licenses.asl20;
31     platforms = platforms.all;
32     maintainers = with maintainers; [ moaxcp ];
33     mainProgram = "asciidoctorj";
34   };