depot/third_party/nixpkgs/pkgs/by-name/sv/svelte-language-server/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
903 B
Nix

{ lib
, buildNpmPackage
, fetchurl
}:
let
version = "0.16.9";
in buildNpmPackage {
pname = "svelte-language-server";
inherit version;
src = fetchurl {
url = "https://registry.npmjs.org/svelte-language-server/-/svelte-language-server-${version}.tgz";
hash = "sha256-RR2RzBZGCyd0hnEX4iD5pjmgtq8GzgrGZAG8Qq63EZA=";
};
npmDepsHash = "sha256-WYiWm/2gr/0kXZOYeMjVYZOg0JttghPF9jkwNnb0nQo=";
postPatch = ''
ln -s ${./package-lock.json} package-lock.json
'';
dontNpmBuild = true;
passthru.updateScript = ./update.sh;
meta = {
description = "Language server (implementing the language server protocol) for Svelte";
downloadPage = "https://www.npmjs.com/package/svelte-language-server";
homepage = "https://github.com/sveltejs/language-tools";
license = lib.licenses.mit;
mainProgram = "svelteserver";
maintainers = with lib.maintainers; [ ];
};
}