diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2012-01-19 21:31:51 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2012-01-19 21:31:51 +0000 |
commit | 84c018503859be28aded86677c9dbc54c7067e11 (patch) | |
tree | 44896c72bb5eaddc3b9ebc5e4701f40560774ff0 /pkgs/development/interpreters/jruby | |
parent | 3980444b2b918ef74ac7b9f1128f399767d06fa1 (diff) | |
parent | b94fef3cbad6b3b830f8f7c4a987c65c81c9e93d (diff) |
svn merge ^/nixpkgs/trunk, one simple conflict in jruby
svn path=/nixpkgs/branches/stdenv-updates/; revision=31721
Diffstat (limited to 'pkgs/development/interpreters/jruby')
-rw-r--r-- | pkgs/development/interpreters/jruby/default.nix | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/jruby/default.nix b/pkgs/development/interpreters/jruby/default.nix index 1e402e14e7da8..b171492d78cbf 100644 --- a/pkgs/development/interpreters/jruby/default.nix +++ b/pkgs/development/interpreters/jruby/default.nix @@ -1,18 +1,30 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, makeWrapper, jre }: stdenv.mkDerivation { - name = "jruby-1.1.6"; + name = "jruby-1.6.5.1"; src = fetchurl { - url = http://dist.codehaus.org/jruby/1.1.6RC1/jruby-bin-1.1.6RC1.tar.gz; - sha256 = "1q3cjshxk484i8gqxm682bxcrps7205nl9vlim4s6z827bjlmc4a"; + url = http://jruby.org.s3.amazonaws.com/downloads/1.6.5.1/jruby-bin-1.6.5.1.tar.gz; + sha256 = "1j0iv1q950lyir9vqfgg2533f1q28jaz7vnxqswsaix1mjhm29qd"; }; - installPhase = '' mkdir -p $out; cp -r * $out ''; + buildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -pv $out + mv * $out + rm $out/bin/*.{bat,dll,exe,sh} + mv $out/README $out/docs + + for i in $out/bin/*; do + wrapProgram $i \ + --set JAVA_HOME ${jre} + done + ''; meta = { description = "Ruby interpreter written in Java"; - homepage = http://jruby.codehaus.org/; + homepage = http://jruby.org/; license = "CPL-1.0 GPL-2 LGPL-2.1"; # one of those }; } |