nixpkgs/pkgs/applications/networking/cluster/pig/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

2015-04-28 16:56:29 +00:00
{ stdenv, fetchurl, makeWrapper, hadoop, jre, bash }:
stdenv.mkDerivation rec {
name = "pig-0.17.0";
2015-04-28 16:56:29 +00:00
src = fetchurl {
url = "mirror://apache/pig/${name}/${name}.tar.gz";
sha256 = "1wwpg0w47f49rnivn2d26vrxgyfl9gpqx3vmzbl5lhx6x5l3fqbd";
2015-04-28 16:56:29 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2015-04-28 16:56:29 +00:00
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 22:06:51 +00:00
--prefix PATH : "${stdenv.lib.makeBinPath [ jre bash ]}" \
2015-04-28 16:56:29 +00:00
--set JAVA_HOME "${jre}" --set HADOOP_PREFIX "${hadoop}"
done
'';
meta = with stdenv.lib; {
homepage = https://pig.apache.org/;
2015-04-28 16:56:29 +00: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 ];
};
}