nixpkgs/pkgs/tools/typesetting/asciidoctor/default.nix

29 lines
759 B
Nix
Raw Normal View History

2019-07-04 15:50:56 +03:00
{ lib, bundlerApp, mkShell, bundix }:
2017-08-11 05:11:46 +03:00
let app = bundlerApp {
pname = "asciidoctor";
gemdir = ./.;
2016-05-01 17:05:22 +03:00
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;
};
};
2019-07-04 15:50:56 +03:00
# Can't be defined directly in the passthru, since app.gems isn't defined at that point.
shell = mkShell {
2019-07-04 15:50:56 +03:00
inputsFrom = lib.mapAttrs app.gems;
buildInputs = [ bundix ];
2016-05-01 17:05:22 +03:00
};
in app.overrideAttrs (attrs: { passthru = attrs.passthru // { updateShell = shell; }; })