nifi: init at 1.16.0

This commit is contained in:
Izorkin 2021-10-30 20:02:13 +03:00
parent a47e82e785
commit 83c9b74834
No known key found for this signature in database
GPG key ID: 1436C1B3F3679F09
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib, stdenv, fetchurl, makeWrapper, jre8 }:
stdenv.mkDerivation rec {
pname = "nifi";
version = "1.16.0";
src = fetchurl {
url = "https://dlcdn.apache.org/nifi/${version}/nifi-${version}-bin.tar.gz";
sha256 = "sha256-BE990mVSocO+UuMa9kULJcbXbqiX8oquZQTQKSRPe4g=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre8 ];
installPhase = ''
mv ../$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=${jre8}"
'';
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" ];
maintainers = with maintainers; [ izorkin ];
};
}

View file

@ -8283,6 +8283,8 @@ with pkgs;
ngrok-1 = callPackage ../tools/networking/ngrok-1 { };
nifi = callPackage ../servers/web-apps/nifi { };
nitter = callPackage ../servers/nitter { };
noice = callPackage ../applications/misc/noice { };