mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
39c376b6f5
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/groovy/versions
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ stdenv, fetchurl, unzip, which, makeWrapper, jdk }:
|
|
|
|
# at runtime, need jdk
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "groovy-${version}";
|
|
version = "2.5.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://dl.bintray.com/groovy/maven/apache-groovy-binary-${version}.zip";
|
|
sha256 = "16hj2v6r89s3qrgbnkinwwzv16mphb6jjw8ijgmmd9y2063nchc2";
|
|
};
|
|
|
|
buildInputs = [ unzip makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
mkdir -p $out/share/doc/groovy
|
|
rm bin/*.bat
|
|
mv {bin,conf,grooid,indy,lib} $out
|
|
mv {licenses,LICENSE,NOTICE} $out/share/doc/groovy
|
|
|
|
sed -i 's#which#${which}/bin/which#g' $out/bin/startGroovy
|
|
|
|
for p in grape java2groovy groovy{,doc,c,sh,Console}; do
|
|
wrapProgram $out/bin/$p \
|
|
--set JAVA_HOME "${jdk}" \
|
|
--prefix PATH ":" "${jdk}/bin"
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An agile dynamic language for the Java Platform";
|
|
homepage = http://groovy-lang.org/;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ pSub ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|