2015-04-28 17:56:29 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, hadoop, jre, bash }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2018-03-09 16:32:49 +00:00
|
|
|
name = "pig-0.16.0";
|
2015-04-28 17:56:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/pig/${name}/${name}.tar.gz";
|
2018-03-09 16:32:49 +00:00
|
|
|
sha256 = "0p79grz5islnq195lv7pqdxb5l3v4y0k0w63602827qs70zpr508";
|
2015-04-28 17:56:29 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mv * $out
|
|
|
|
|
|
|
|
# no need for the windows batch script
|
|
|
|
rm $out/bin/pig.cmd $out/bin/pig.py
|
|
|
|
|
|
|
|
for n in $out/{bin,sbin}"/"*; do
|
|
|
|
wrapProgram $n \
|
2016-08-22 23:06:51 +01:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ jre bash ]}" \
|
2015-04-28 17:56:29 +01:00
|
|
|
--set JAVA_HOME "${jre}" --set HADOOP_PREFIX "${hadoop}"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://pig.apache.org/;
|
2015-04-28 17:56:29 +01:00
|
|
|
description = "High-level language for Apache Hadoop";
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Apache Pig is a platform for analyzing large data sets that consists of a
|
|
|
|
high-level language for expressing data analysis programs, coupled with
|
|
|
|
infrastructure for evaluating these programs. The salient property of Pig
|
|
|
|
programs is that their structure is amenable to substantial parallelization,
|
|
|
|
which in turns enables them to handle very large data sets.
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.skeidel ];
|
|
|
|
};
|
|
|
|
}
|