Skip to content

Commit

Permalink
Merge pull request #250287 from dotlambda/javascript-typescript-langs…
Browse files Browse the repository at this point in the history
…erver-buildNpmPackage

javascript-typescript-langserver: use buildNpmPackage
  • Loading branch information
dywedir authored Aug 20, 2023
2 parents b35b6f5 + 2f2d11e commit 9eaddb5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 88 deletions.
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ mapAliases {
gtop = pkgs.gtop; # added 2023-07-31
hueadm = pkgs.hueadm; # added 2023-07-31
indium = throw "indium was removed because it was broken"; # added 2023-08-19
inherit (pkgs) javascript-typescript-langserver; # added 2023-08-19
karma = pkgs.karma-runner; # added 2023-07-29
manta = pkgs.node-manta; # Added 2023-05-06
markdownlint-cli = pkgs.markdownlint-cli; # added 2023-07-29
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
, "intelephense"
, "ionic"
, "jake"
, "javascript-typescript-langserver"
, "joplin"
, "js-beautify"
, "js-yaml"
Expand Down
87 changes: 0 additions & 87 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
pname = "javascript-typescript-langserver";
version = "2.11.3";

src = fetchFromGitHub {
owner = "sourcegraph";
repo = "javascript-typescript-langserver";
rev = "v${version}";
hash = "sha256-vd7Hj0jPFgK0u3CBlMfOFERmW+w9CnKIY9nvs48KqsI=";
};

npmDepsHash = "sha256-nHGTi1aH9YY01dzBeNyUEUEswrdjZPWaoycDVZZmIAA=";

meta = {
description = "JavaScript and TypeScript code intelligence through the Language Server Protocol";
homepage = "https://github.com/sourcegraph/javascript-typescript-langserver";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dywedir ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18359,6 +18359,8 @@ with pkgs;

helm-ls = callPackage ../development/tools/language-servers/helm-ls { };

javascript-typescript-langserver = callPackage ../development/tools/language-servers/javascript-typescript-langserver { };

jdt-language-server = callPackage ../development/tools/language-servers/jdt-language-server { };

jsonnet-language-server = callPackage ../development/tools/language-servers/jsonnet-language-server { };
Expand Down

0 comments on commit 9eaddb5

Please sign in to comment.