Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
makeWrapper,
|
|
jdk11,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nifi";
|
|
version = "1.28.1";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://apache/nifi/${version}/nifi-${version}-bin.zip";
|
|
hash = "sha256-YFQIV2/B+8/fBmrWPs7Q3FkqaIxBqNBP0BIkIm4M7Zo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ jdk11 ];
|
|
|
|
installPhase = ''
|
|
cp -r ../$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-fail "/bin/sh" "${stdenv.shell}"
|
|
substituteInPlace $out/bin/nifi-env.sh \
|
|
--replace-fail "#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" ];
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
maintainers = with maintainers; [ izorkin ];
|
|
};
|
|
}
|