nixpkgs/pkgs/development/interpreters/ruby/bundler.nix

18 lines
452 B
Nix
Raw Normal View History

{ buildRubyGem, makeWrapper, ruby, coreutils }:
2014-10-31 04:44:57 +03:00
buildRubyGem {
2015-07-07 02:41:53 +03:00
name = "bundler-1.10.5";
namePrefix = "";
2015-07-07 02:41:53 +03:00
sha256 = "1zkxw6699bbmsamrij2lirscbh0j58p1p3bql22jsxvx34j6w5nc";
2014-10-31 04:44:57 +03:00
dontPatchShebangs = true;
2014-12-31 05:05:00 +03:00
postInstall = ''
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
wrapProgram $out/bin/bundler \
--prefix PATH ":" ${ruby}/bin
2014-12-31 05:05:00 +03:00
'';
2014-10-31 04:44:57 +03:00
}