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