8 pname = "ansible-language-server";
11 src = fetchFromGitHub {
14 rev = "refs/tags/v${version}";
15 hash = "sha256-e6cOWoryOxWnl8q62rlGmSgwLVnoxLMwNFoGlUZw2bQ=";
18 npmDepsHash = "sha256-Lzwj0/2fxa44DJBsgDPa43AbRxggqh881X/DFnlNLig=";
19 npmBuildScript = "compile";
21 # We remove/ignore the prepare and prepack scripts because they run the
22 # build script, and therefore are redundant.
24 # Additionally, the prepack script runs npm ci in addition to the
25 # build script. Directly before npm pack is run, we make npm unaware
26 # of the dependency cache, causing the npm ci invocation to fail,
27 # wiping out node_modules, which causes a mysterious error stating that tsc isn't installed.
29 sed -i '/"prepare"/d' package.json
30 sed -i '/"prepack"/d' package.json
33 npmPackFlags = [ "--ignore-scripts" ];
34 passthru.updateScript = nix-update-script { };
37 changelog = "https://github.com/ansible/ansible-language-server/releases/tag/v${version}";
38 description = "Ansible Language Server";
39 mainProgram = "ansible-language-server";
40 homepage = "https://github.com/ansible/ansible-language-server";
41 license = licenses.mit;
42 maintainers = with maintainers; [ hexa ];