mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +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.4 KiB
Nix
47 lines
1.4 KiB
Nix
{ lib, stdenv, fetchzip, makeWrapper, jdk11, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nifi";
|
|
version = "1.28.0";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://apache/nifi/${version}/nifi-${version}-bin.zip";
|
|
hash = "sha256-EQqosdwNdaSUIcP3QlvzJZhDNu1JbHg08FlnZo6ogmQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ jdk11 ];
|
|
|
|
installPhase = ''
|
|
cp -r ../$sourceRoot $out
|
|
rm -f $out/bin/*bat
|
|
rm -rf $out/extensions
|
|
mkdir -p $out/share/nifi
|
|
mv $out/conf $out/share/nifi
|
|
mv $out/docs $out/share/nifi
|
|
mv $out/{LICENSE,NOTICE,README} $out/share/nifi
|
|
|
|
substituteInPlace $out/bin/nifi.sh \
|
|
--replace "/bin/sh" "${stdenv.shell}"
|
|
substituteInPlace $out/bin/nifi-env.sh \
|
|
--replace "#export JAVA_HOME=/usr/java/jdk1.8.0/" "export JAVA_HOME=${jdk11}"
|
|
'';
|
|
|
|
passthru = {
|
|
tests.nifi = nixosTests.nifi;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Easy to use, powerful, and reliable system to process and distribute data";
|
|
longDescription = ''
|
|
Apache NiFi supports powerful and scalable directed graphs of data routing,
|
|
transformation, and system mediation logic.
|
|
'';
|
|
license = licenses.asl20;
|
|
homepage = "https://nifi.apache.org";
|
|
platforms = [ "x86_64-linux" ];
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
maintainers = with maintainers; [ izorkin ];
|
|
};
|
|
}
|