2012-01-18 21:32:20 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2009-06-26 18:52:58 +02:00
|
|
|
stdenv.mkDerivation {
|
2012-01-18 21:32:20 +01:00
|
|
|
name = "jruby-1.6.5.1";
|
2009-06-26 18:52:58 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-01-18 21:32:20 +01:00
|
|
|
url = http://jruby.org.s3.amazonaws.com/downloads/1.6.5.1/jruby-bin-1.6.5.1.tar.gz;
|
|
|
|
sha256 = "1j0iv1q950lyir9vqfgg2533f1q28jaz7vnxqswsaix1mjhm29qd";
|
2009-06-26 18:52:58 +02:00
|
|
|
};
|
|
|
|
|
2012-01-18 21:32:20 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 22:31:51 +01:00
|
|
|
mkdir -pv $out
|
2012-01-18 21:32:20 +01:00
|
|
|
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
|
|
|
|
'';
|
2009-06-26 18:52:58 +02:00
|
|
|
|
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Ruby interpreter written in Java";
|
2012-01-18 21:32:20 +01:00
|
|
|
homepage = http://jruby.org/;
|
2010-07-28 13:55:54 +02:00
|
|
|
license = "CPL-1.0 GPL-2 LGPL-2.1"; # one of those
|
2009-06-26 18:52:58 +02:00
|
|
|
};
|
|
|
|
}
|