2023-03-15 16:39:30 +00:00
|
|
|
{ lib, stdenv, fetchzip, makeWrapper, jdk11, nixosTests }:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nifi";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.26.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://apache/nifi/${version}/nifi-${version}-bin.zip";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-V/XrggYDeitsDmdvwnXK5QIBGDDBmK4mToz1RphkbSk=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2023-03-15 16:39:30 +00:00
|
|
|
buildInputs = [ jdk11 ];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2023-08-10 07:59:29 +00:00
|
|
|
cp -r ../$sourceRoot $out
|
2022-04-15 01:41:22 +00:00
|
|
|
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 \
|
2023-03-15 16:39:30 +00:00
|
|
|
--replace "#export JAVA_HOME=/usr/java/jdk1.8.0/" "export JAVA_HOME=${jdk11}"
|
2022-04-15 01:41:22 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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" ];
|
2023-08-22 20:05:09 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|