2015-05-27 15:11:33 +00:00
|
|
|
{ buildRubyGem, makeWrapper, ruby, coreutils }:
|
2014-10-31 01:44:57 +00:00
|
|
|
|
|
|
|
buildRubyGem {
|
2015-09-13 19:25:58 +00:00
|
|
|
name = "bundler-1.10.6";
|
2015-05-27 12:43:46 +00:00
|
|
|
namePrefix = "";
|
2015-09-13 19:25:58 +00:00
|
|
|
sha256 = "1vlzfq0bkkj4jyq6av0y55mh5nj5n0f3mfbmmifwgkh44g8k6agv";
|
2014-10-31 01:44:57 +00:00
|
|
|
dontPatchShebangs = true;
|
2014-12-31 02:05:00 +00:00
|
|
|
postInstall = ''
|
2015-09-06 08:21:43 +00:00
|
|
|
find $out -type f -perm -0100 | while read f; do
|
2014-12-31 02:05:00 +00:00
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "/usr/bin/env" "${coreutils}/bin/env"
|
|
|
|
done
|
2015-05-27 15:11:33 +00:00
|
|
|
|
|
|
|
wrapProgram $out/bin/bundler \
|
|
|
|
--prefix PATH ":" ${ruby}/bin
|
2014-12-31 02:05:00 +00:00
|
|
|
'';
|
2014-10-31 01:44:57 +00:00
|
|
|
}
|