3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/flink/default.nix

40 lines
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";
2021-10-22 18:30:45 +01:00
version = "1.14.0";
2017-11-25 19:25:06 +00:00
2017-11-29 02:21:45 +00:00
src = fetchurl {
url = "mirror://apache/flink/${pname}-${version}/${pname}-${version}-bin-scala_2.11.tgz";
2021-10-22 18:30:45 +01:00
sha256 = "149b9ae774022acc0109dced893ca2d73430627a612be17ff12de8734464aff8";
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
2017-11-25 19:25:06 +00:00
env.java.home: ${jre}"
env.log.dir: /tmp/flink-logs
EOF
'';
meta = with lib; {
2017-11-29 02:21:45 +00:00
description = "A distributed stream processing framework";
homepage = "https://flink.apache.org";
downloadPage = "https://flink.apache.org/downloads.html";
2017-11-29 02:21:45 +00:00
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ mbode ];
repositories.git = "git://git.apache.org/flink.git";
2017-11-25 19:25:06 +00:00
};
}