Merge pull request #185816 from AndrewKvalheim/asciidoctor-with-extensions/java
asciidoctor-with-extensions: add Java dependency
This commit is contained in:
commit
c4a0efdd5a
@ -2,9 +2,13 @@
|
||||
, bundlerApp
|
||||
, bundlerUpdateScript
|
||||
, makeWrapper
|
||||
, withJava ? true, jre # Used by asciidoctor-diagram for ditaa and PlantUML
|
||||
}:
|
||||
|
||||
bundlerApp {
|
||||
let
|
||||
path = lib.makeBinPath (lib.optional withJava jre);
|
||||
in
|
||||
bundlerApp rec {
|
||||
pname = "asciidoctor";
|
||||
gemdir = ./.;
|
||||
|
||||
@ -16,6 +20,13 @@ bundlerApp {
|
||||
"asciidoctor-revealjs"
|
||||
];
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
postBuild = lib.optionalString (path != "") (lib.concatMapStrings (exe: ''
|
||||
wrapProgram $out/bin/${exe} \
|
||||
--prefix PATH : ${path}
|
||||
'') exes);
|
||||
|
||||
passthru = {
|
||||
updateScript = bundlerUpdateScript "asciidoctor-with-extensions";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user