diff options
author | Alastair Pharo <asppsa@gmail.com> | 2017-07-10 15:11:53 +1000 |
---|---|---|
committer | Alastair Pharo <asppsa@gmail.com> | 2017-07-19 16:13:09 +1000 |
commit | 5c6e4ea4beb54ed9470e34d902ac05256b2b2d78 (patch) | |
tree | ac6e68749213d72a190b6216d4e81e60e010f855 /pkgs/development/interpreters/jruby | |
parent | c9f487ac5d8a946cc51e7ece42d6590ef65994bc (diff) |
jruby: only wrap jruby executables
Other executables all invoke jruby, and so don't need to be wrapped. In some cases wrapping breaks the executables because one file is a ruby script that directly loads the other (e.g. `gem` is a wrapper that loads `jgem`). In this case, if the latter script has been wrapped by nix, loading will fail.
Diffstat (limited to 'pkgs/development/interpreters/jruby')
-rw-r--r-- | pkgs/development/interpreters/jruby/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/jruby/default.nix b/pkgs/development/interpreters/jruby/default.nix index 74203eca3807d..5c5ede3517cbe 100644 --- a/pkgs/development/interpreters/jruby/default.nix +++ b/pkgs/development/interpreters/jruby/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { rm $out/bin/*.{bat,dll,exe,sh} mv $out/COPYING $out/LICENSE* $out/docs - for i in $out/bin/*; do + for i in $out/bin/jruby{,.bash}; do wrapProgram $i \ --set JAVA_HOME ${jre} done |