2023-02-24 00:28:52 +03:00
|
|
|
{ lib, stdenv, fetchzip, makeWrapper, jdk11, nixosTests }:
|
2021-10-30 20:02:13 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nifi";
|
2023-12-01 13:33:34 +03:00
|
|
|
version = "1.24.0";
|
2021-10-30 20:02:13 +03:00
|
|
|
|
2023-02-24 00:28:52 +03:00
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://apache/nifi/${version}/nifi-${version}-bin.zip";
|
2023-12-01 13:33:34 +03:00
|
|
|
hash = "sha256-8S06E8RiH/EnfAa60eRzjmHmzMn+3UZbykJpvFFXEho=";
|
2021-10-30 20:02:13 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2023-02-24 00:28:52 +03:00
|
|
|
buildInputs = [ jdk11 ];
|
2021-10-30 20:02:13 +03:00
|
|
|
|
|
|
|
installPhase = ''
|
2023-08-05 19:25:23 +03:00
|
|
|
cp -r ../$sourceRoot $out
|
2021-10-30 20:02:13 +03: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-02-24 00:28:52 +03:00
|
|
|
--replace "#export JAVA_HOME=/usr/java/jdk1.8.0/" "export JAVA_HOME=${jdk11}"
|
2021-10-30 20:02:13 +03:00
|
|
|
'';
|
|
|
|
|
2022-04-10 20:41:30 +03:00
|
|
|
passthru = {
|
|
|
|
tests.nifi = nixosTests.nifi;
|
|
|
|
};
|
|
|
|
|
2021-10-30 20:02:13 +03:00
|
|
|
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-12 13:38:35 +03:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-10-30 20:02:13 +03:00
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|