2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "arduino-language-server";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.5";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arduino";
|
|
|
|
repo = "arduino-language-server";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-RBoDT/KnbQHeuE5WpoL4QWu3gojiNdsi+/NEY2e/sHs=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-tS6OmH757VDdViPHJAJAftQu+Y1YozE7gXkt5anDlT0=";
|
2022-10-21 18:38:19 +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-20 10:41:00 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
"-extldflags '-static'"
|
|
|
|
];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An Arduino Language Server based on Clangd to Arduino code autocompletion";
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://github.com/arduino/arduino-language-server";
|
|
|
|
changelog = "https://github.com/arduino/arduino-language-server/releases/tag/${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ BattleCh1cken ];
|
|
|
|
};
|
|
|
|
}
|