nixpkgs/pkgs/tools/typesetting/asciidoctor/default.nix
Michael Peyton Jones 42249205fe
asciidctor: include the asciidoctor-epub3 gem
This is another common output target for asciidctor that requires an
additional gem.

The previous commit is necessary for this to work, so that we get the
gem config for nokogiri correctly.
2019-07-04 13:16:23 +01:00

30 lines
737 B
Nix

{ lib, bundlerApp, mkShell, bundix, defaultGemConfig }:
let app = bundlerApp {
pname = "asciidoctor";
gemdir = ./.;
exes = [
"asciidoctor"
"asciidoctor-pdf"
"asciidoctor-safe"
"asciidoctor-epub3"
];
meta = with lib; {
description = "A faster Asciidoc processor written in Ruby";
homepage = https://asciidoctor.org/;
license = licenses.mit;
maintainers = with maintainers; [ gpyh ];
platforms = platforms.unix;
};
};
shell = mkShell {
buildInputs =
app.gems.mathematical.buildInputs ++
app.gems.nokogiri.buildInputs ++
[ bundix ];
};
in app.overrideAttrs (attrs: { passthru = attrs.passthru // { updateShell = shell; }; })