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:
parent
3a8f26c2c1
commit
b214be3d3c
|
@ -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 ]}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue