default.nix 462 B

123456789101112131415161718192021
  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/typescript-language-server" "$out/bin"
  12. ln -s "$out/lib/node_modules/.bin/vscode-eslint-language-server" "$out/bin"
  13. '';
  14. npmDepsHash = "sha256-57BAfwiT03gzxS8+d3uOjFSZTVKCQpihEHzvbQIiAEI=";
  15. }