mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
18 lines
451 B
Nix
18 lines
451 B
Nix
{ 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
|
|
'';
|
|
}
|