1
0

default.nix 533 B

12345678910111213141516171819202122
  1. { buildNpmPackage }:
  2. buildNpmPackage {
  3. pname = "node-lsp";
  4. version = "0.0.0";
  5. src = ./.;
  6. dontNpmBuild = true;
  7. installPhase = ''
  8. mkdir -p "$out/lib"
  9. cp -r node_modules "$out/lib"
  10. mkdir -p "$out/bin"
  11. ln -s "$out/lib/node_modules/.bin/bash-language-server" "$out/bin"
  12. ln -s "$out/lib/node_modules/.bin/typescript-language-server" "$out/bin"
  13. ln -s "$out/lib/node_modules/.bin/vscode-eslint-language-server" "$out/bin"
  14. '';
  15. npmDepsHash = "sha256-8/NxYNqiyrFcEplP+PqCHvsRsnWdWDImYhMU6Mhqvqk=";
  16. }