From bc780285c034a94f5c9ec84d1ebc23bba07f5dd9 Mon Sep 17 00:00:00 2001 From: Pooyan Khosravi Date: Fri, 12 May 2017 08:52:18 -0400 Subject: [PATCH] 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. --- .../ruby-modules/gem-config/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 83346037dad..d8f3a18d5f8 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -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 \