ruby-modules gem-config: add rainbow

Rainbow needs rake (a make analogue) as build dep. This builds an specific
version of rake for building rainbow.

Since rake is private to rainbow there shouldn't be any problems until rainbow
devs decide they need another rake version which is unlikely.
This commit is contained in:
Pooyan Khosravi 2017-05-12 08:52:18 -04:00
parent e8880627e8
commit bc780285c0

View File

@ -21,11 +21,20 @@
, libiconv, postgresql, v8_3_16_14, clang, sqlite, zlib, imagemagick
, pkgconfig , ncurses, xapian_1_2_22, gpgme, utillinux, fetchpatch, tzdata, icu, libffi
, cmake, libssh2, openssl, mysql, darwin, git, perl, gecode_3, curl
, libmsgpack, qt48, libsodium, snappy, libossp_uuid, lxc
, libmsgpack, qt48, libsodium, snappy, libossp_uuid, lxc, buildRubyGem
}@args:
let
v8 = v8_3_16_14;
rainbow_rake = buildRubyGem {
name = "rake";
gemName = "rake";
remotes = ["https://rubygems.org"];
sha256 = "01j8fc9bqjnrsxbppncai05h43315vmz9fwg28qdsgcjw9ck1d7n";
type = "gem";
version = "12.0.0";
};
in
{
@ -145,6 +154,10 @@ in
buildInputs = [ openssl ];
};
rainbow = attrs: {
buildInputs = [ rainbow_rake ];
};
rbnacl = spec: {
postInstall = ''
sed -i $(cat $out/nix-support/gem-meta/install-path)/lib/rbnacl.rb -e "2a \