diff options
author | Edward Tjörnhammar <ed@cflags.cc> | 2015-04-29 20:17:35 +0200 |
---|---|---|
committer | Edward Tjörnhammar <ed@cflags.cc> | 2015-04-29 20:17:35 +0200 |
commit | 06cf9a961371180f88529bdae3e784bc41b39f89 (patch) | |
tree | 2e73995961f1a20d7bea3d52fd01cd4f09f588db /pkgs | |
parent | ff88f4bcda606d9a47f807b773749280998e64ac (diff) | |
parent | 456da7fededf36efc592795b9106150f2033dd47 (diff) | |
download | nixlib-06cf9a961371180f88529bdae3e784bc41b39f89.tar nixlib-06cf9a961371180f88529bdae3e784bc41b39f89.tar.gz nixlib-06cf9a961371180f88529bdae3e784bc41b39f89.tar.bz2 nixlib-06cf9a961371180f88529bdae3e784bc41b39f89.tar.lz nixlib-06cf9a961371180f88529bdae3e784bc41b39f89.tar.xz nixlib-06cf9a961371180f88529bdae3e784bc41b39f89.tar.zst nixlib-06cf9a961371180f88529bdae3e784bc41b39f89.zip |
Merge pull request #7617 from svenkeidel/pig
pig: added package
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/cluster/pig/default.nix | 45 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/pig/default.nix b/pkgs/applications/networking/cluster/pig/default.nix new file mode 100644 index 000000000000..a5666fc8f321 --- /dev/null +++ b/pkgs/applications/networking/cluster/pig/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 07a230a5fee5..332811bcafe0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11545,6 +11545,8 @@ let pcmanfm = callPackage ../applications/misc/pcmanfm { }; + pig = callPackage ../applications/networking/cluster/pig { }; + shotcut = callPackage ../applications/video/shotcut { mlt = mlt-qt5; }; smplayer = callPackage ../applications/video/smplayer { }; |