2024-11-15 01:23:45 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildNpmPackage,
|
|
|
|
fetchurl,
|
2024-05-13 04:57:48 +01:00
|
|
|
}:
|
|
|
|
let
|
2024-11-24 21:02:00 +00:00
|
|
|
version = "0.17.7";
|
2024-11-15 01:23:45 +00:00
|
|
|
in
|
|
|
|
buildNpmPackage {
|
2024-05-13 04:57:48 +01:00
|
|
|
pname = "svelte-language-server";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://registry.npmjs.org/svelte-language-server/-/svelte-language-server-${version}.tgz";
|
2024-11-24 21:02:00 +00:00
|
|
|
hash = "sha256-UghjUS16hYxF37xn40B2GhFUxjnR6OfS2HRDACmEDjg=";
|
2024-05-13 04:57:48 +01:00
|
|
|
};
|
|
|
|
|
2024-11-24 21:02:00 +00:00
|
|
|
npmDepsHash = "sha256-HZUuu+qqwV1U6nDWzd4vCdko3iqtWn+3XI4vDmiPb4I=";
|
2024-05-13 04:57:48 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
ln -s ${./package-lock.json} package-lock.json
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
2024-11-15 01:23:45 +00:00
|
|
|
npmFlags = [ "--legacy-peer-deps" ];
|
|
|
|
|
2024-05-13 04:57:48 +01:00
|
|
|
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";
|
2024-07-28 15:44:11 +01:00
|
|
|
maintainers = [ ];
|
2024-05-13 04:57:48 +01:00
|
|
|
};
|
|
|
|
}
|