nixpkgs/pkgs/applications/networking/cluster/flink/default.nix

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

41 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jre }:
2017-11-25 19:25:06 +00:00
stdenv.mkDerivation rec {
pname = "flink";
2024-08-03 02:21:48 +00:00
version = "1.20.0";
2017-11-25 19:25:06 +00:00
2017-11-29 02:21:45 +00:00
src = fetchurl {
2023-03-23 16:23:26 +00:00
url = "mirror://apache/flink/${pname}-${version}/${pname}-${version}-bin-scala_2.12.tgz";
2024-08-03 02:21:48 +00:00
sha256 = "sha256-cI/VRMz53cDUsZL+A1eXzhbeLCbx12TFWQcwXv4UCvA=";
2017-11-25 19:25:06 +00:00
};
2017-11-29 02:21:45 +00:00
nativeBuildInputs = [ makeWrapper ];
2017-11-25 19:25:06 +00:00
buildInputs = [ jre ];
installPhase = ''
rm bin/*.bat || true
2017-11-29 02:21:45 +00:00
mkdir -p $out/bin $out/opt/flink
mv * $out/opt/flink/
makeWrapper $out/opt/flink/bin/flink $out/bin/flink \
--prefix PATH : ${jre}/bin
2017-11-25 19:25:06 +00:00
2017-11-29 02:21:45 +00:00
cat <<EOF >> $out/opt/flink/conf/flink-conf.yaml
2023-10-20 16:34:17 +00:00
env.java.home: ${jre}
2017-11-25 19:25:06 +00:00
env.log.dir: /tmp/flink-logs
EOF
'';
meta = with lib; {
2017-11-29 02:21:45 +00:00
description = "Distributed stream processing framework";
mainProgram = "flink";
homepage = "https://flink.apache.org";
downloadPage = "https://flink.apache.org/downloads.html";
2017-11-29 02:21:45 +00:00
license = licenses.asl20;
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2017-11-29 02:21:45 +00:00
platforms = platforms.all;
2023-03-23 16:23:26 +00:00
maintainers = with maintainers; [ mbode autophagy ];
2017-11-25 19:25:06 +00:00
};
}