helm-ls: init at 0.0.3
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, testers
|
||||
, helm-ls
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "helm-ls";
|
||||
version = "0.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mrjosh";
|
||||
repo = "helm-ls";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-MiDbV+mfr1wcc0e0iwFPL8WniWKbPnr4zb79qniT2Kc=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-EqZlmOoQtC3Iuf0LG2PL0K2pluGqbyA6132lzgF4+ic=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.Version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/helm-ls $out/bin/helm_ls
|
||||
installShellCompletion --cmd roxctl \
|
||||
--bash <($out/bin/helm_ls completion bash) \
|
||||
--fish <($out/bin/helm_ls completion fish) \
|
||||
--zsh <($out/bin/helm_ls completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = helm-ls;
|
||||
command = "helm_ls version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Language server for Helm";
|
||||
changelog = "https://github.com/mrjosh/helm-ls/releases/tag/v${version}";
|
||||
homepage = "https://github.com/mrjosh/helm-ls";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ stehessel ];
|
||||
mainProgram = "helm_ls";
|
||||
};
|
||||
}
|
||||
@@ -17319,6 +17319,8 @@ with pkgs;
|
||||
|
||||
gopls = callPackage ../development/tools/language-servers/gopls { };
|
||||
|
||||
helm-ls = callPackage ../development/tools/language-servers/helm-ls { };
|
||||
|
||||
jdt-language-server = callPackage ../development/tools/language-servers/jdt-language-server { };
|
||||
|
||||
jsonnet-language-server = callPackage ../development/tools/language-servers/jsonnet-language-server { };
|
||||
|
||||
Reference in New Issue
Block a user