mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
ctags-lsp: init at 0.6.1 (#377695)
This commit is contained in:
commit
cfd19cdc54
1 changed files with 57 additions and 0 deletions
57
pkgs/by-name/ct/ctags-lsp/package.nix
Normal file
57
pkgs/by-name/ct/ctags-lsp/package.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
jujutsu,
|
||||
lib,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
universal-ctags,
|
||||
versionCheckHook,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "ctags-lsp";
|
||||
version = "0.6.1";
|
||||
vendorHash = null;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "netmute";
|
||||
repo = "ctags-lsp";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-wSccfhVp1PDn/gj46r8BNskEuBuRIx1wydYAW1PV4cg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/ctags-lsp \
|
||||
--suffix PATH : ${
|
||||
lib.makeBinPath [
|
||||
universal-ctags
|
||||
git
|
||||
jujutsu
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/netmute/ctags-lsp/releases/tag/v${version}";
|
||||
description = "LSP implementation using universal-ctags as backend";
|
||||
homepage = "https://github.com/netmute/ctags-lsp";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "ctags-lsp";
|
||||
maintainers = with lib.maintainers; [ voronind ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue