forked from mirrors/nixpkgs
commit
c7bf1b8a0e
|
@ -403,6 +403,7 @@
|
|||
mbakke = "Marius Bakke <mbakke@fastmail.com>";
|
||||
mbbx6spp = "Susan Potter <me@susanpotter.net>";
|
||||
mbe = "Brandon Edens <brandonedens@gmail.com>";
|
||||
mbode = "Maximilian Bode <maxbode@gmail.com>";
|
||||
mboes = "Mathieu Boespflug <mboes@tweag.net>";
|
||||
mbrgm = "Marius Bergmann <marius@yeai.de>";
|
||||
mcmtroffaes = "Matthias C. M. Troffaes <matthias.troffaes@gmail.com>";
|
||||
|
|
51
pkgs/applications/networking/cluster/flink/default.nix
Normal file
51
pkgs/applications/networking/cluster/flink/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ stdenv, fetchurl, makeWrapper, jre
|
||||
, version ? "1.3" }:
|
||||
|
||||
let
|
||||
versionMap = {
|
||||
"1.3" = {
|
||||
flinkVersion = "1.3.2";
|
||||
scalaVersion = "2.11";
|
||||
sha256 = "0mf4qz0963bflzidgslvwpdlvj9za9sj20dfybplw9lhd4sf52rp";
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
with versionMap.${version};
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "flink-${flinkVersion}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/flink/${name}/${name}-bin-hadoop27-scala_${scalaVersion}.tgz";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildInputs = [ jre ];
|
||||
|
||||
installPhase = ''
|
||||
rm bin/*.bat
|
||||
|
||||
mkdir -p $out/bin $out/opt/flink
|
||||
mv * $out/opt/flink/
|
||||
makeWrapper $out/opt/flink/bin/flink $out/bin/flink \
|
||||
--prefix PATH : ${jre}/bin
|
||||
|
||||
cat <<EOF >> $out/opt/flink/conf/flink-conf.yaml
|
||||
env.java.home: ${jre}"
|
||||
env.log.dir: /tmp/flink-logs
|
||||
EOF
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A distributed stream processing framework";
|
||||
homepage = https://flink.apache.org;
|
||||
downloadPage = https://flink.apache.org/downloads.html;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ mbode ];
|
||||
repositories.git = git://git.apache.org/flink.git;
|
||||
};
|
||||
}
|
|
@ -14680,6 +14680,9 @@ with pkgs;
|
|||
|
||||
fldigi = callPackage ../applications/audio/fldigi { };
|
||||
|
||||
flink = flink_1_3;
|
||||
flink_1_3 = callPackage ../applications/networking/cluster/flink { version = "1.3"; };
|
||||
|
||||
fluidsynth = callPackage ../applications/audio/fluidsynth {
|
||||
inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue