2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2010-03-30 01:36:32 +02:00
|
|
|
|
|
|
|
# at runtime, need jdk
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-07 23:40:30 +02:00
|
|
|
name = "groovy-${version}";
|
2015-01-21 18:35:04 +01:00
|
|
|
version = "2.4.0";
|
2010-03-30 01:36:32 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-07 23:40:30 +02:00
|
|
|
url = "http://dl.bintray.com/groovy/maven/groovy-binary-${version}.zip";
|
2015-01-21 18:35:04 +01:00
|
|
|
sha256 = "1wb0rb89mvy1x64a8z9z3jmphw72vnkxaqbc0f2v35c2wv61p839";
|
2010-03-30 01:36:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2010-03-30 01:36:32 +02:00
|
|
|
rm bin/*.bat
|
|
|
|
mv * $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
phases = "unpackPhase installPhase";
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
buildInputs = [ unzip ];
|
2010-03-30 01:36:32 +02:00
|
|
|
|
2014-08-07 23:40:30 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-03-30 01:36:32 +02:00
|
|
|
description = "An agile dynamic language for the Java Platform";
|
|
|
|
homepage = http://groovy.codehaus.org/;
|
2014-08-07 23:40:30 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2010-03-30 01:36:32 +02:00
|
|
|
};
|
|
|
|
}
|