mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, makeWrapper, hadoop, jre, bash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pig";
|
|
version = "0.17.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/pig/${pname}-${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1wwpg0w47f49rnivn2d26vrxgyfl9gpqx3vmzbl5lhx6x5l3fqbd";
|
|
|
|
};
|
|
|
|
nativeBuildInputs = [ 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 : "${lib.makeBinPath [ jre bash ]}" \
|
|
--set JAVA_HOME "${jre}" --set HADOOP_PREFIX "${hadoop}"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://pig.apache.org/";
|
|
description = "High-level language for Apache Hadoop";
|
|
mainProgram = "pig";
|
|
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 = [ ];
|
|
};
|
|
}
|