mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-20 04:02:40 +03:00
42249205fe
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.
30 lines
737 B
Nix
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; }; })
|