nodejs_14: drop

Security support EOLed 6 months ago.
This commit is contained in:
Raito Bezarius 2023-10-30 14:43:25 +01:00
parent c7f0bbcf2c
commit 2912f7ec10
3 changed files with 2 additions and 32 deletions

View File

@ -1,26 +0,0 @@
{ callPackage, lib, overrideCC, pkgs, buildPackages, openssl, python3, enableNpm ? true }:
let
# Clang 16+ cannot build Node v14 due to -Wenum-constexpr-conversion errors.
# Use an older version of clang with the current libc++ for compatibility (e.g., with icu).
ensureCompatibleCC = packages:
if packages.stdenv.cc.isClang && lib.versionAtLeast (lib.getVersion packages.stdenv.cc.cc) "16"
then overrideCC packages.llvmPackages_15.stdenv (packages.llvmPackages_15.stdenv.cc.override {
inherit (packages.llvmPackages) libcxx;
extraPackages = [ packages.llvmPackages.libcxxabi ];
})
else packages.stdenv;
buildNodejs = callPackage ./nodejs.nix {
inherit openssl;
stdenv = ensureCompatibleCC pkgs;
buildPackages = buildPackages // { stdenv = ensureCompatibleCC buildPackages; };
python = python3;
};
in
buildNodejs {
inherit enableNpm;
version = "14.21.3";
sha256 = "sha256-RY7AkuYK1wDdzwectj1DXBXaTHuz0/mbmo5YqZ5UB14=";
patches = lib.optional pkgs.stdenv.isDarwin ./bypass-xcodebuild.diff;
}

View File

@ -623,6 +623,8 @@ mapAliases ({
nixopsUnstable = nixops_unstable; # Added 2022-03-03
nixosTest = testers.nixosTest; # Added 2022-05-05
nmap-unfree = nmap; # Added 2021-04-06
nodejs_14 = throw "nodejs_14 has been removed as it is EOL."; # Added 2023-10-30
nodejs-slim_14 = throw "nodejs-slim_14 has been removed as it is EOL."; # Added 2023-10-30
nodejs-14_x = nodejs_14; # Added 2022-11-06
nodejs-slim-14_x = nodejs-slim_14; # Added 2022-11-06
nodejs-16_x = nodejs_16; # Added 2022-11-06

View File

@ -10309,12 +10309,6 @@ with pkgs;
nodejs-slim = nodejs-slim_18;
corepack = hiPrio corepack_18;
nodejs_14 = callPackage ../development/web/nodejs/v14.nix { openssl = openssl_1_1; };
nodejs-slim_14 = callPackage ../development/web/nodejs/v14.nix {
openssl = openssl_1_1;
enableNpm = false;
};
nodejs_16 = callPackage ../development/web/nodejs/v16.nix { };
nodejs-slim_16 = callPackage ../development/web/nodejs/v16.nix { enableNpm = false; };