biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / embedded / arduino / arduino-language-server / default.nix
bloba1d330e4b9a7faef11b5dcd67c3b93ca0efd8d54
1 { lib
2 , stdenv
3 , buildGoModule
4 , fetchFromGitHub
5 }:
7 buildGoModule rec {
8   pname = "arduino-language-server";
9   version = "0.7.6";
11   src = fetchFromGitHub {
12     owner = "arduino";
13     repo = "arduino-language-server";
14     rev = "refs/tags/${version}";
15     hash = "sha256-PmPGhbB1HqxZRK+f28SdZNh4HhE0oseYsdJuEAAk90I=";
16   };
18   subPackages = [ "." ];
20   vendorHash = "sha256-tS6OmH757VDdViPHJAJAftQu+Y1YozE7gXkt5anDlT0=";
22   doCheck = false;
24   ldflags = [
25     "-s"
26     "-w"
27     "-X github.com/arduino/arduino-language-server/version.versionString=${version}"
28     "-X github.com/arduino/arduino-language-server/version.commit=unknown"
29   ] ++ lib.optionals stdenv.isLinux [
30     "-extldflags '-static'"
31   ];
33   meta = with lib; {
34     description = "An Arduino Language Server based on Clangd to Arduino code autocompletion";
35     mainProgram = "arduino-language-server";
36     homepage = "https://github.com/arduino/arduino-language-server";
37     changelog = "https://github.com/arduino/arduino-language-server/releases/tag/${version}";
38     license = licenses.asl20;
39     maintainers = with maintainers; [ BattleCh1cken ];
40   };