2023-01-14 09:14:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2022-10-10 15:05:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "arduino-language-server";
|
2024-02-07 05:35:08 +00:00
|
|
|
version = "0.7.6";
|
2022-10-10 15:05:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arduino";
|
|
|
|
repo = "arduino-language-server";
|
2023-01-14 09:14:38 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 05:35:08 +00:00
|
|
|
hash = "sha256-PmPGhbB1HqxZRK+f28SdZNh4HhE0oseYsdJuEAAk90I=";
|
2022-10-10 15:05:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2023-08-23 00:59:53 +00:00
|
|
|
vendorHash = "sha256-tS6OmH757VDdViPHJAJAftQu+Y1YozE7gXkt5anDlT0=";
|
2022-10-10 15:05:37 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/arduino/arduino-language-server/version.versionString=${version}"
|
|
|
|
"-X github.com/arduino/arduino-language-server/version.commit=unknown"
|
2023-01-14 09:14:38 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
|
|
"-extldflags '-static'"
|
|
|
|
];
|
2022-10-10 15:05:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Arduino Language Server based on Clangd to Arduino code autocompletion";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "arduino-language-server";
|
2023-01-14 09:14:38 +00:00
|
|
|
homepage = "https://github.com/arduino/arduino-language-server";
|
2023-01-14 10:27:37 +00:00
|
|
|
changelog = "https://github.com/arduino/arduino-language-server/releases/tag/${version}";
|
2022-10-10 15:05:37 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ BattleCh1cken ];
|
|
|
|
};
|
|
|
|
}
|