From be41524227994c0d03bb7d1e2303cae9b2858368 Mon Sep 17 00:00:00 2001 From: Pavel Anpin Date: Mon, 2 Dec 2024 12:46:02 -0300 Subject: [PATCH] typescript: override missing nodejs-16_x --- modules/kernels/typescript/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/kernels/typescript/default.nix b/modules/kernels/typescript/default.nix index 9eadf7bf..7c148745 100644 --- a/modules/kernels/typescript/default.nix +++ b/modules/kernels/typescript/default.nix @@ -33,9 +33,10 @@ pkgs' = import self.inputs.nixpkgs-stable.outPath { inherit system; - config.permittedInsecurePackages = [ - # "nodejs-14.21.3" - # "openssl-1.1.1w" + + overlays = [ + # https://github.com/nix-community/npmlock2nix/issues/194 + (final: prev: {nodejs-16_x = prev.nodePackages.nodejs;}) ]; }; _npmlock2nix = pkgs'.callPackage npmlock2nix {}; @@ -48,7 +49,7 @@ }; tslab = _npmlock2nix.v2.build { - nodejs = pkgs'.nodejs; + nodejs = pkgs'.nodejs-18_x; src = tslabSrc; node_modules_attrs.packageLockJson = ./package-lock.json; buildInputs = [pkgs.makeWrapper];