From b214be3d3c9157c07d59953978a25a12c7ae96e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Lafuente?= Date: Thu, 20 Jan 2022 12:13:18 +0100 Subject: [PATCH] nodePackages.typescript-language-server: typescript dependecy as fallback Make possible to use a different typescript version. If there is already a typescript binary on your PATH, probably you want to use that. This way it's possible to use a different typescript version (with nix shell, direnv, npm, ...), but still have a fallback version, so the lsp server doesn't fail to start Related to #73119 --- pkgs/development/node-packages/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/node-packages/default.nix b/pkgs/development/node-packages/default.nix index 7944e47a140eb..33700cbb99d67 100644 --- a/pkgs/development/node-packages/default.nix +++ b/pkgs/development/node-packages/default.nix @@ -393,7 +393,7 @@ let nativeBuildInputs = [ pkgs.makeWrapper ]; postInstall = '' wrapProgram "$out/bin/typescript-language-server" \ - --prefix PATH : ${pkgs.lib.makeBinPath [ self.typescript ]} + --suffix PATH : ${pkgs.lib.makeBinPath [ self.typescript ]} ''; };