1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/interpreters/jruby/default.nix

33 lines
759 B
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, jre }:
2014-04-22 18:00:09 +01:00
stdenv.mkDerivation rec {
name = "jruby-${version}";
2016-02-11 23:31:41 +00:00
version = "9.0.5.0";
src = fetchurl {
2016-02-11 23:31:41 +00:00
url = "https://s3.amazonaws.com/jruby.org/downloads/${version}/jruby-bin-${version}.tar.gz";
sha256 = "1wysymqzc7591743f2ycgwpm232y6i050izn72lck44nhnyr5wwy";
};
buildInputs = [ makeWrapper ];
installPhase = ''
2016-02-11 23:31:41 +00:00
mkdir -pv $out/docs
mv * $out
rm $out/bin/*.{bat,dll,exe,sh}
2014-04-22 18:00:09 +01:00
mv $out/COPYING $out/LICENSE* $out/docs
for i in $out/bin/*; do
wrapProgram $i \
--set JAVA_HOME ${jre}
done
'';
2014-04-22 18:00:09 +01:00
meta = {
description = "Ruby interpreter written in Java";
homepage = http://jruby.org/;
license = with stdenv.lib.licenses; [ cpl10 gpl2 lgpl21 ];
};
}