depot/third_party/nixpkgs/pkgs/by-name/sv/svelte-language-server/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
904 B
Nix

{ lib
, buildNpmPackage
, fetchurl
}:
let
version = "0.16.10";
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-Int5mc147BUqpOGT2T3oNRbLNjioEaEifOH3wF1vJL4=";
};
npmDepsHash = "sha256-/JjMrbDyoHUvGJxqmkxjxCkWURJa8sXUZryQRGTdRMY=";
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; [ ];
};
}