From 8fa77989d10c8823a2f9511dc2349a20a089daa4 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Wed, 10 Jul 2024 20:52:52 -0300 Subject: [PATCH] dotnet-sdk_7: mark as insecure due to support ending --- pkgs/development/compilers/dotnet/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/dotnet/default.nix b/pkgs/development/compilers/dotnet/default.nix index 2bbd36f57ea84..d0a63a5d37706 100644 --- a/pkgs/development/compilers/dotnet/default.nix +++ b/pkgs/development/compilers/dotnet/default.nix @@ -16,7 +16,15 @@ let ## Files in versions/ are generated automatically by update.sh ## dotnet_6_0 = import ./versions/6.0.nix buildAttrs; - dotnet_7_0 = import ./versions/7.0.nix buildAttrs; + dotnet_7_0 = lib.mapAttrs + (n: v: if lib.isDerivation v then v.overrideAttrs (old: { + meta = old.meta // { + knownVulnerabilities = [ + ".NET 7 is unsupported since 2024-05-14 (https://endoflife.date/dotnet)" + ]; + }; + }) else v) + (import ./versions/7.0.nix buildAttrs); dotnet_8_0 = import ./versions/8.0.nix buildAttrs; dotnet_9_0 = import ./versions/9.0.nix buildAttrs;