nixpkgs/pkgs/development/interpreters/jruby/default.nix
Susan Potter 2968707101 jruby: 1.7.12 -> 1.7.20.1
Security release which only updates Rubygems to version 2.4.8. Rubygems 2.4.8
addresses CVE-2015-1855 to resolve some problems with wildcard matching of
hostnames.

See following entry for more information:
http://jruby.org/2015/06/10/jruby-1-7-20-1.html
2015-06-23 11:58:29 -05:00

32 lines
740 B
Nix

{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "jruby-${version}";
version = "1.7.20.1";
src = fetchurl {
url = "http://jruby.org.s3.amazonaws.com/downloads/${version}/jruby-bin-${version}.tar.gz";
sha1 = "6a6e701a3a5769ec5d53a78660521c37da36e41f";
};
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -pv $out
mv * $out
rm $out/bin/*.{bat,dll,exe,sh}
mv $out/COPYING $out/LICENSE* $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.org/;
license = with stdenv.lib.licenses; [ cpl10 gpl2 lgpl21 ];
};
}