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