3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/ruby/bundler.nix

18 lines
452 B
Nix
Raw Normal View History

{ 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";
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 = ''
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
wrapProgram $out/bin/bundler \
--prefix PATH ":" ${ruby}/bin
2014-12-31 02:05:00 +00:00
'';
2014-10-31 01:44:57 +00:00
}