nixpkgs/pkgs/servers/web-apps/nifi/default.nix
Thomas Gerbet b0caf7e507
nifi: 1.21.0 -> 1.22.0 (#239554)
* nifi: 1.21.0 -> 1.22.0

Fixes CVE-2023-34468 and CVE-2023-34212.
Advisories: https://nifi.apache.org/security.html#1.22.0

Release notes:
https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version1.22.0

* Update pkgs/servers/web-apps/nifi/default.nix

---------

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2023-06-27 18:27:39 +02:00

46 lines
1.3 KiB
Nix

{ lib, stdenv, fetchzip, makeWrapper, jdk11, nixosTests }:
stdenv.mkDerivation rec {
pname = "nifi";
version = "1.22.0";
src = fetchzip {
url = "mirror://apache/nifi/${version}/nifi-${version}-bin.zip";
hash = "sha256-IzTGsD6nL7UrXuHrJc8Dt1C6r137UjT/V4vES2m/8cg=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk11 ];
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=${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" ];
maintainers = with maintainers; [ izorkin ];
};
}