Merge pull request #204524 from mweinelt/ansible-language-server
This commit is contained in:
commit
121bab7fa7
@ -1,6 +1,5 @@
|
||||
[
|
||||
"@angular/cli"
|
||||
, "@ansible/ansible-language-server"
|
||||
, "@antfu/ni"
|
||||
, "@antora/cli"
|
||||
, "@antora/site-generator-default"
|
||||
|
14776
pkgs/development/node-packages/node-packages.nix
generated
14776
pkgs/development/node-packages/node-packages.nix
generated
File diff suppressed because it is too large
Load Diff
43
pkgs/development/tools/ansible-language-server/default.nix
Normal file
43
pkgs/development/tools/ansible-language-server/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "ansible-language-server";
|
||||
version = "1.0.2-next.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ansible";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-E4xWwqXl5n/eChJ8JM32K2gTYE/F8Y76J3Sll++48Uo=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-8FP6hF85w1Zbhiwi2V350ZWFAykAfvsXRGL8bvGk1XE=";
|
||||
npmBuildScript = "compile";
|
||||
|
||||
# We remove the prepare and prepack scripts because they run the
|
||||
# build script, and therefore are redundant.
|
||||
#
|
||||
# Additionally, the prepack script runs npm ci in addition to the
|
||||
# build script. Directly before npm pack is run, we make npm unaware
|
||||
# of the dependency cache, causing the npm ci invocation to fail,
|
||||
# wiping out node_modules, which causes a mysterious error stating that tsc isn't installed.
|
||||
postPatch = ''
|
||||
sed -i '/"prepare"/d' package.json
|
||||
sed -i '/"prepack"/d' package.json
|
||||
'';
|
||||
|
||||
passthru.updateScript = {
|
||||
attrPath = pname;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/ansible/ansible-language-server/releases/tag/v${version}";
|
||||
description = "Ansible Language Server";
|
||||
homepage = "https://github.com/ansible/ansible-language-server";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -16463,6 +16463,8 @@ with pkgs;
|
||||
|
||||
ansible-doctor = with python3.pkgs; toPythonApplication ansible-doctor;
|
||||
|
||||
ansible-language-server = callPackage ../development/tools/ansible-language-server { };
|
||||
|
||||
ansible-later = with python3.pkgs; toPythonApplication ansible-later;
|
||||
|
||||
ansible-lint = with python3.pkgs; toPythonApplication ansible-lint;
|
||||
|
Loading…
Reference in New Issue
Block a user