asciidoctor: add update.sh for dependency updates

This commit is contained in:
Danylo Hlynskyi 2019-06-26 20:57:51 +01:00 committed by Sarunas Valaskevicius
parent 6ea5cf34b2
commit a772b8633f
2 changed files with 14 additions and 2 deletions

View File

@ -1,10 +1,10 @@
{ stdenv, lib, bundlerApp, ruby
{ stdenv, lib, bundlerApp, ruby, bundix, mkShell
# Dependencies of the 'mathematical' package
, cmake, bison, flex, glib, pkgconfig, cairo
, pango, gdk_pixbuf, libxml2, python3, patchelf
}:
bundlerApp {
bundlerApp rec {
inherit ruby;
pname = "asciidoctor";
gemdir = ./.;
@ -43,6 +43,12 @@ bundlerApp {
};
};
passthru.updateShell = mkShell {
buildInputs = (gemConfig.mathematical {}).buildInputs ++ [
bundix
];
};
meta = with lib; {
description = "A faster Asciidoc processor written in Ruby";
homepage = https://asciidoctor.org/;

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
rm gemset.nix Gemfile.lock
nix-shell ../../../.. -A asciidoctor.updateShell --run '
bundix -m --bundle-pack-path $TMPDIR/asciidoctor-ruby-bundle
'
rm -r .bundle