diff options
author | Michael Fellinger <m.fellinger@gmail.com> | 2016-04-17 22:36:40 +0200 |
---|---|---|
committer | LluĂs Batlle i Rossell <viric@viric.name> | 2016-04-18 12:04:37 +0200 |
commit | 55bd038cc17e8c6693e0eb5938d14646d0559415 (patch) | |
tree | c520868824bea4176bb7f0f7dbfacbe8e7b73403 /pkgs/development | |
parent | c09692ede596de9da1d37842ddafdd74da29a0c0 (diff) | |
download | nixlib-55bd038cc17e8c6693e0eb5938d14646d0559415.tar nixlib-55bd038cc17e8c6693e0eb5938d14646d0559415.tar.gz nixlib-55bd038cc17e8c6693e0eb5938d14646d0559415.tar.bz2 nixlib-55bd038cc17e8c6693e0eb5938d14646d0559415.tar.lz nixlib-55bd038cc17e8c6693e0eb5938d14646d0559415.tar.xz nixlib-55bd038cc17e8c6693e0eb5938d14646d0559415.tar.zst nixlib-55bd038cc17e8c6693e0eb5938d14646d0559415.zip |
gem-config: fix bundler
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ruby-modules/gem-config/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 5544a7f88b40..72e483bc77d3 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -166,5 +166,15 @@ in export XAPIAN_CONFIG=${xapian}/bin/xapian-config ''; }; + + # patching shebangs would fail on the templates/Executable file, so we + # temporarily remove the executable flag. + bundler = attrs: + let + templates = "${attrs.ruby.gemPath}/gems/${attrs.gemName}-${attrs.version}/lib/bundler/templates/"; + in { + preFixup = "chmod -x $out/${templates}/Executable"; + postFixup = "chmod +x $out/${templates}/Executable"; + }; } |