From 3561b1dd74cc672a43c4cc9b59a2ccc196dc8d21 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 18:24:24 +0000 Subject: [PATCH] dotnet-{sdk,runtime,aspnetcore}_{6,7}: mark as EOL See . --- pkgs/development/compilers/dotnet/build-dotnet.nix | 9 +++++++++ pkgs/development/compilers/dotnet/default.nix | 10 +++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/dotnet/build-dotnet.nix b/pkgs/development/compilers/dotnet/build-dotnet.nix index 8550d71d7cb03..ede86ad04eb47 100644 --- a/pkgs/development/compilers/dotnet/build-dotnet.nix +++ b/pkgs/development/compilers/dotnet/build-dotnet.nix @@ -229,6 +229,15 @@ mkWrapper type ( binaryBytecode binaryNativeCode ]; + knownVulnerabilities = + lib.optionals + (lib.elem (lib.head (lib.splitVersion version)) [ + "6" + "7" + ]) + [ + "Dotnet SDK ${version} is EOL, please use 8.0 (LTS) or 9.0 (Current)" + ]; }; } ) diff --git a/pkgs/development/compilers/dotnet/default.nix b/pkgs/development/compilers/dotnet/default.nix index 88aaa28c8d2dd..90c474f6ae20d 100644 --- a/pkgs/development/compilers/dotnet/default.nix +++ b/pkgs/development/compilers/dotnet/default.nix @@ -72,11 +72,11 @@ makeScopeWithSplicing' { } // lib.optionalAttrs config.allowAliases { # EOL - sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 6.0 (LTS) or 7.0 (Current)"; - sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 6.0 (LTS) or 7.0 (Current)"; - sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 6.0 (LTS) or 7.0 (Current)"; - sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 6.0 (LTS) or 7.0 (Current)"; - sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 6.0 (LTS) or 7.0 (Current)"; + sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)"; + sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 8.0 (LTS) or 9.0 (Current)"; + sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)"; + sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)"; + sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)"; } // dotnet_6_0 // dotnet_7_0