depot/third_party/nixpkgs/pkgs/by-name/vu/vue-language-server/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
864 B
Nix

{
lib,
buildNpmPackage,
fetchurl,
}:
buildNpmPackage rec {
pname = "vue-language-server";
version = "2.0.26";
src = fetchurl {
url = "https://registry.npmjs.org/@vue/language-server/-/language-server-${version}.tgz";
hash = "sha256-SKEc7ft0FxafU7vuN5MQY97gdLG65fMpMIhV2aGosRs=";
};
npmDepsHash = "sha256-kx3axLCVD0obVDE0RE6EM+ZnHU5mjMA+lF8H9dR0X2I=";
postPatch = ''
ln -s ${./package-lock.json} package-lock.json
'';
dontNpmBuild = true;
passthru.updateScript = ./update.sh;
meta = {
description = "Official Vue.js language server";
homepage = "https://github.com/vuejs/language-tools#readme";
changelog = "https://github.com/vuejs/language-tools/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ friedow ];
mainProgram = "vue-language-server";
};
}