ruby: fixes rubygems user installs

* Manage patches in git
* Fixes the hook invocation to be more safe. Thanks @Mic92
* Install gems as user by default
* Install gem binaries with the /usr/bin/env shebang
* Fixes a bug where the passthru.libPath and passthru.gemPath would
  point to the wrong directory
* Overhaul ruby version heuristics
This commit is contained in:
zimbatm
2016-10-02 22:07:22 +01:00
parent 854e00943b
commit b8bcbec5fd
4 changed files with 102 additions and 64 deletions
@@ -184,6 +184,7 @@ stdenv.mkDerivation (attrs // {
--install-dir "$GEM_HOME" \
--build-root '/' \
--backtrace \
--no-env-shebang \
${documentFlag} \
$gempkg $gemFlags -- $buildFlags