depot/pkgs/by-name/c3/c3-lsp/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
819 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "c3-lsp";
version = "0.3.2";
src = fetchFromGitHub {
owner = "pherrymason";
repo = "c3-lsp";
rev = "v${version}";
hash = "sha256-HD3NE2L1ge0pf8vtrKkYh4GIZg6lSPTZGFQ+LPbDup4=";
};
sourceRoot = "${src.name}/server";
vendorHash = "sha256-y+Qs3zuvTq/KRc1ziH0R7E10et+MaQW9xOsFmSdI7PM=";
postInstall = ''
mv $out/bin/lsp $out/bin/c3-lsp
'';
meta = {
description = "Language Server for C3 Language";
homepage = "https://github.com/pherrymason/c3-lsp";
changelog = "https://github.com/pherrymason/c3-lsp/blob/${src.rev}/changelog.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ arthsmn ];
mainProgram = "c3-lsp";
platforms = lib.platforms.all;
};
}