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
This commit is contained in:
José Luis Lafuente 2022-01-20 12:13:18 +01:00
parent 3a8f26c2c1
commit b214be3d3c
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A

View file

@ -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 ]}
'';
};