nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "c3-lsp";
9 version = "0.4.0";
10
11 src = fetchFromGitHub {
12 owner = "pherrymason";
13 repo = "c3-lsp";
14 rev = "v${version}";
15 hash = "sha256-MScpFh4J4jVJI5WtW4tfNB18YDpxs+ass1HmXyOO5VM=";
16 };
17
18 sourceRoot = "${src.name}/server";
19
20 vendorHash = "sha256-eT+Qirl0R1+di3JvXxggGK/nK9+nqw+8QEur+ldJXSc=";
21
22 postInstall = ''
23 mv $out/bin/lsp $out/bin/c3-lsp
24 '';
25
26 meta = {
27 description = "Language Server for C3 Language";
28 homepage = "https://github.com/pherrymason/c3-lsp";
29 changelog = "https://github.com/pherrymason/c3-lsp/blob/${src.rev}/changelog.md";
30 license = lib.licenses.gpl3Only;
31 maintainers = with lib.maintainers; [ arthsmn ];
32 mainProgram = "c3-lsp";
33 platforms = lib.platforms.all;
34 };
35}