rubyLibs.bundler broken - don't know how to set dontPatchShebangs = 1; #1804

Closed
vizanto opened this Issue Feb 21, 2014 · 4 comments

3 participants

@vizanto
unsupported interpreter directive "/usr/bin/env <%= Bundler.settings[:shebang] || RbConfig::CONFIG['ruby_install_name'] %>" (set dontPatchShebangs=1 and handle shebang patching yourself)
builder for `/nix/store/qc54043cprayw7z88fbiajgfxkgfxm3l-ruby-bundler-1.3.5.drv' failed with exit code 1
cannot build derivation `/nix/store/1zmgwi9jsj997shi30lyphsnaxvb01wq-unit.drv': 1 dependencies couldn't be built
cannot build derivation `/nix/store/hn9f5dn873xic2vliwasszy96m0cvij4-units.drv': 1 dependencies couldn't be built
cannot build derivation `/nix/store/3njd97k92hj3jfy2p181jdcb4b6yrs73-etc.drv': 1 dependencies couldn't be built
cannot build derivation `/nix/store/3cm40ygc6vl25a3psn26a426nqh4xxr4-nixos-14.02pre39623.3c871cc.drv': 1 dependencies couldn't be built
error: build of `/nix/store/3cm40ygc6vl25a3psn26a426nqh4xxr4-nixos-14.02pre39623.3c871cc.drv' failed

Must be something fairly recent...

@vizanto

And just now that I decided to submit a bug, I remember:

pkgs.lib.overrideDerivation pkgs.rubyLibs.bundler (oldAttrs: { dontPatchShebangs = 1; });

Build passes, will report later if bundler actually works. :-)

@vizanto

It works. So more of an documentation issue or perhaps something to fix in rubyLibs

@vizanto vizanto closed this Feb 22, 2014
@offlinehacker
@bjornfor

We should fix this by fixing the patchShebangs function. See comments in #2146.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment