1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/by-name/sv/svelte-language-server/package.nix
2024-11-24 21:02:00 +00:00

39 lines
926 B
Nix

{
lib,
buildNpmPackage,
fetchurl,
}:
let
version = "0.17.7";
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-UghjUS16hYxF37xn40B2GhFUxjnR6OfS2HRDACmEDjg=";
};
npmDepsHash = "sha256-HZUuu+qqwV1U6nDWzd4vCdko3iqtWn+3XI4vDmiPb4I=";
postPatch = ''
ln -s ${./package-lock.json} package-lock.json
'';
dontNpmBuild = true;
npmFlags = [ "--legacy-peer-deps" ];
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 = [ ];
};
}