summary refs log tree commit diff
path: root/pkgs/tools/typesetting/asciidoctor/default.nix
blob: dd90444d6af69fd78a36d6073c26fbfe64b7f45a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, lib, bundlerEnv, ruby_2_2, curl }:

bundlerEnv rec {
  name = "asciidoctor-${version}";
  version = "1.5.4";

  ruby = ruby_2_2;
  gemfile = ./Gemfile;
  lockfile = ./Gemfile.lock;
  gemset = ./gemset.nix;

  # Delete dependencies' executables
  postBuild = ''
    find $out/bin -type f -not -wholename '*bin/asciidoctor*' -print0 \
    | xargs -0 rm
  '';

  meta = with lib; {
    description = "A faster Asciidoc processor written in Ruby";
    homepage = http://asciidoctor.org/;
    license = licenses.mit;
    maintainers = with maintainers; [ gpyh ];
    platforms = platforms.unix;
  };
}