about summary refs log tree commit diff
path: root/pkgs/development/interpreters/ruby/bundler.nix
blob: 336d405442253fca2672d983568892b579a127c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ buildRubyGem, makeWrapper, ruby, coreutils }:

buildRubyGem {
  name = "bundler-1.9.2";
  namePrefix = "";
  sha256 = "0ck9bnqg7miimggj1d6qlabrsa5h9yaw241fqn15cvqh915209zk";
  dontPatchShebangs = true;
  postInstall = ''
    find $out -type f -perm +0100 | while read f; do
      substituteInPlace $f \
         --replace "/usr/bin/env" "${coreutils}/bin/env"
    done

    wrapProgram $out/bin/bundler \
      --prefix PATH ":" ${ruby}/bin
  '';
}