chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / vi / vim-language-server / package.nix
blob3d60dd1ca5fbe79a2c49d290b553735e5cbe7a39
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchYarnDeps
5 , yarnConfigHook
6 , yarnBuildHook
7 , nodejs
8 , npmHooks
9 }:
11 stdenv.mkDerivation (finalAttrs: {
12   pname = "vim-language-server";
13   version = "2.3.1";
15   src = fetchFromGitHub {
16     owner = "iamcco";
17     repo = "vim-language-server";
18     rev = "v${finalAttrs.version}";
19     hash = "sha256-NfBKNCTvCMIJrSiTlCG+LtVoMBMdCc3rzpDb9Vp2CGM=";
20   };
22   offlineCache = fetchYarnDeps {
23     yarnLock = finalAttrs.src + "/yarn.lock";
24     hash = "sha256-mo8urQaWIHu33+r0Y7mL9mJ/aSe/5CihuIetTeDHEUQ=";
25   };
27   nativeBuildInputs = [
28     yarnConfigHook
29     yarnBuildHook
30     # Needed for executing package.json scripts
31     nodejs
32     npmHooks.npmInstallHook
33   ];
34   # https://stackoverflow.com/a/69699772/4935114
35   preBuild = ''
36     export NODE_OPTIONS=--openssl-legacy-provider
37   '';
39   meta = with lib; {
40     description = "VImScript language server, LSP for vim script";
41     homepage = "https://github.com/iamcco/vim-language-server";
42     license = licenses.mit;
43     maintainers = with maintainers; [ doronbehar ];
44     mainProgram = "vim-language-server";
45   };