depot/third_party/nixpkgs/pkgs/by-name/vu/vue-language-server/package.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

34 lines
864 B
Nix

{
lib,
buildNpmPackage,
fetchurl,
}:
buildNpmPackage rec {
pname = "vue-language-server";
version = "2.0.21";
src = fetchurl {
url = "https://registry.npmjs.org/@vue/language-server/-/language-server-${version}.tgz";
hash = "sha256-FTsLvSZr+03o8h/udMfcUGBK41/xkrNeMUuOliataH8=";
};
npmDepsHash = "sha256-wYrLN42If6gAjRok0tAdVvVoDmv5oK/vvPoT3BxtgdA=";
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";
};
}