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