commit
7c37665831
@ -1,12 +1,12 @@
|
||||
{ stdenv, fetchurl, makeWrapper, jre
|
||||
, version ? "1.4" }:
|
||||
, version ? "1.5" }:
|
||||
|
||||
let
|
||||
versionMap = {
|
||||
"1.3" = {
|
||||
flinkVersion = "1.3.2";
|
||||
flinkVersion = "1.3.3";
|
||||
scalaVersion = "2.11";
|
||||
sha256 = "0mf4qz0963bflzidgslvwpdlvj9za9sj20dfybplw9lhd4sf52rp";
|
||||
sha256 = "0gfm48k5adr14gnhqri9cd01i9dprd0nwmnnz3yrpd20nq4ap4qy";
|
||||
hadoopBundle = "-hadoop27";
|
||||
};
|
||||
"1.4" = {
|
||||
@ -15,6 +15,12 @@ let
|
||||
sha256 = "0x3cikys5brin0kx9zr69xfp8k5w6g8141yrrr26ks7gpss2x636";
|
||||
hadoopBundle = "";
|
||||
};
|
||||
"1.5" = {
|
||||
flinkVersion = "1.5.0";
|
||||
scalaVersion = "2.11";
|
||||
sha256 = "0n5023dj8ivmbhqxmb3abmfh3ahb9vmcywq5i0ll5p7xxcw2c1cv";
|
||||
hadoopBundle = "";
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
@ -24,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||
name = "flink-${flinkVersion}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/flink/${name}/${name}-bin-scala_${hadoopBundle}${scalaVersion}.tgz";
|
||||
url = "mirror://apache/flink/${name}/${name}-bin${hadoopBundle}-scala_${scalaVersion}.tgz";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user