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

19 lines
506 B
Nix
Raw Normal View History

{ buildRubyGem, coreutils, fetchgit }:
2014-12-31 02:05:00 +00:00
buildRubyGem {
name = "bundler-HEAD";
src = fetchgit {
url = "https://github.com/bundler/bundler.git";
rev = "a2343c9eabf5403d8ffcbca4dea33d18a60fc157";
sha256 = "11pbg71bhp66nyhwk0cpbcn1fhp4amv8sr2vx8dw83dcnqqafn92";
leaveDotGit = true;
2014-12-31 02:05:00 +00:00
};
dontPatchShebangs = true;
postInstall = ''
find $out -type f -perm +0100 | while read f; do
substituteInPlace $f \
--replace "/usr/bin/env" "${coreutils}/bin/env"
done
'';
}