mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-14 08:04:47 +00:00
![Silvan Mosberger](/assets/img/avatar_default.png)
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
jdk,
|
|
makeWrapper,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "asciidoctorj";
|
|
version = "3.0.0";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://maven/org/asciidoctor/${pname}/${version}/${pname}-${version}-bin.zip";
|
|
sha256 = "sha256-F4tmpdNS0PIoLpqV9gifJf2iQ/kX+cp3EssRyhzyOUw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
rm bin/asciidoctorj.bat
|
|
cp -r . $out
|
|
wrapProgram $out/bin/asciidoctorj \
|
|
--prefix JAVA_HOME : ${jdk}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
mainProgram = "asciidoctorj";
|
|
};
|
|
}
|