nixpkgs/pkgs/servers/web-apps/nifi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.4 KiB
Nix
Raw Normal View History

{ 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
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 ];
buildInputs = [ jdk11 ];
2021-10-30 20:02:13 +03:00
installPhase = ''
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 \
--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" ];
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2021-10-30 20:02:13 +03:00
maintainers = with maintainers; [ izorkin ];
};
}