nixpkgs/pkgs/servers/web-apps/nifi/default.nix
Martin Weinelt 9dce04dcfd
nifi: 1.16.0 -> 1.16.1
https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version1.16.1

Fixes Improper Restriction of XML External Entity References in Multiple
Components.

https://nifi.apache.org/security.html#CVE-2022-29265

Fixes: CVE-2022-29265
2022-04-30 13:11:02 +02:00

45 lines
1.3 KiB
Nix

{ lib, stdenv, fetchurl, makeWrapper, jre8, nixosTests }:
stdenv.mkDerivation rec {
pname = "nifi";
version = "1.16.1";
src = fetchurl {
url = "https://dlcdn.apache.org/nifi/${version}/nifi-${version}-bin.tar.gz";
sha256 = "sha256-wC+oKq8QGEKuD6B22Ny92NK0z3SBKmRoTEit3vAXJQs=";
};
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}"
'';
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" ];
maintainers = with maintainers; [ izorkin ];
};
}