From e912b8e1167b7aac4d01929a5eafeb4f2401e358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 25 Jan 2021 16:18:22 +0100 Subject: [PATCH] flink_1_5: drop It suffers from CVE-2020-17518. --- .../networking/cluster/flink/default.nix | 25 ++++--------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 1 - 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/pkgs/applications/networking/cluster/flink/default.nix b/pkgs/applications/networking/cluster/flink/default.nix index d8b156bed88e..2efbfb2f7223 100644 --- a/pkgs/applications/networking/cluster/flink/default.nix +++ b/pkgs/applications/networking/cluster/flink/default.nix @@ -1,27 +1,12 @@ -{ lib, stdenv, fetchurl, makeWrapper, jre -, version ? "1.6" }: - -let - versionMap = { - "1.5" = { - flinkVersion = "1.5.5"; - sha256 = "18wqcqi3gyqd40nspih99gq7ylfs20b35f4dcrspffagwkfp2l4z"; - }; - "1.6" = { - flinkVersion = "1.11.1"; - sha256 = "0338bg2sb427c1rrf2cmsz63sz0yk6gclpli2lskq0mpx72wxpl0"; - }; - }; -in - -with versionMap.${version}; +{ lib, stdenv, fetchurl, makeWrapper, jre }: stdenv.mkDerivation rec { - name = "flink-${flinkVersion}"; + pname = "flink"; + version = "1.11.1"; src = fetchurl { - url = "mirror://apache/flink/${name}/${name}-bin-scala_2.11.tgz"; - inherit sha256; + url = "mirror://apache/flink/${pname}-${version}/${pname}-${version}-bin-scala_2.11.tgz"; + sha256 = "0338bg2sb427c1rrf2cmsz63sz0yk6gclpli2lskq0mpx72wxpl0"; }; nativeBuildInputs = [ makeWrapper ]; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 1b37bd3a97c5..2ce4245ba30f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -168,6 +168,7 @@ mapAliases ({ firestr = throw "firestr has been removed."; # added 2019-12-08 fish-foreign-env = throw "fish-foreign-env has been replaced with fishPlugins.foreign-env"; # added 2020-12-29, modified 2021-01-10 flameGraph = flamegraph; # added 2018-04-25 + flink_1_5 = throw "flink_1_5 was removed, use flink instead"; # added 2021-01-25 flvtool2 = throw "flvtool2 has been removed."; # added 2020-11-03 foldingathome = fahclient; # added 2020-09-03 font-awesome-ttf = font-awesome; # 2018-02-25 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0d24da0ca8b..6e9a421b86a5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21782,7 +21782,6 @@ in fldigi = callPackage ../applications/radio/fldigi { }; flink = callPackage ../applications/networking/cluster/flink { }; - flink_1_5 = flink.override { version = "1.5"; }; fllog = callPackage ../applications/radio/fllog { };