mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
apache pig: new package
This commit is contained in:
parent
f5e7190572
commit
456da7fede
45
pkgs/applications/networking/cluster/pig/default.nix
Normal file
45
pkgs/applications/networking/cluster/pig/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenv, fetchurl, makeWrapper, hadoop, jre, bash }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
name = "pig-0.14.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://apache/pig/${name}/${name}.tar.gz";
|
||||||
|
sha256 = "183in34cj93ny3lhqyq76g9pjqgw1qlwakk5v6x847vrlkfndska";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
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 \
|
||||||
|
--prefix PATH : "${jre}/bin:${bash}/bin" \
|
||||||
|
--set JAVA_HOME "${jre}" --set HADOOP_PREFIX "${hadoop}"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "http://pig.apache.org/";
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -11524,6 +11524,8 @@ let
|
|||||||
|
|
||||||
pcmanfm = callPackage ../applications/misc/pcmanfm { };
|
pcmanfm = callPackage ../applications/misc/pcmanfm { };
|
||||||
|
|
||||||
|
pig = callPackage ../applications/networking/cluster/pig { };
|
||||||
|
|
||||||
shotcut = callPackage ../applications/video/shotcut { mlt = mlt-qt5; };
|
shotcut = callPackage ../applications/video/shotcut { mlt = mlt-qt5; };
|
||||||
|
|
||||||
smplayer = callPackage ../applications/video/smplayer { };
|
smplayer = callPackage ../applications/video/smplayer { };
|
||||||
|
Loading…
Reference in New Issue
Block a user