2015-05-27 16:11:33 +01:00
|
|
|
{ buildRubyGem, makeWrapper, ruby, coreutils }:
|
2014-10-31 01:44:57 +00:00
|
|
|
|
|
|
|
buildRubyGem {
|
2015-09-13 20:25:58 +01:00
|
|
|
name = "bundler-1.10.6";
|
2015-05-27 13:43:46 +01:00
|
|
|
namePrefix = "";
|
2015-09-13 20:25:58 +01: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 09:21:43 +01: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 16:11:33 +01: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
|
|
|
}
|