2019-07-04 15:50:56 +03:00
|
|
|
{ lib, bundlerApp, mkShell, bundix }:
|
2017-08-11 05:11:46 +03:00
|
|
|
|
2019-07-04 14:39:29 +03:00
|
|
|
let app = bundlerApp {
|
|
|
|
pname = "asciidoctor";
|
|
|
|
gemdir = ./.;
|
2016-05-01 17:05:22 +03:00
|
|
|
|
2019-07-04 14:39:29 +03:00
|
|
|
exes = [
|
|
|
|
"asciidoctor"
|
|
|
|
"asciidoctor-pdf"
|
|
|
|
"asciidoctor-safe"
|
2019-07-04 14:41:09 +03:00
|
|
|
"asciidoctor-epub3"
|
2019-07-04 14:39:29 +03:00
|
|
|
];
|
2018-04-09 13:45:48 +03:00
|
|
|
|
2019-07-04 14:39:29 +03:00
|
|
|
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;
|
2018-04-09 13:45:48 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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.
|
2019-07-04 14:39:29 +03:00
|
|
|
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
|
|
|
};
|
2019-07-04 14:39:29 +03:00
|
|
|
in app.overrideAttrs (attrs: { passthru = attrs.passthru // { updateShell = shell; }; })
|