arduino-language-server: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-14 10:14:38 +01:00 committed by GitHub
parent 7de34eb220
commit e38b57f07f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,8 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "arduino-language-server";
@ -7,7 +11,7 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "arduino";
repo = "arduino-language-server";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-A5JcHdcSrRC1BxoJsPtLKBq1fu58SvwHm9hbgu8Uy5k=";
};
@ -22,11 +26,14 @@ buildGoModule rec {
"-w"
"-X github.com/arduino/arduino-language-server/version.versionString=${version}"
"-X github.com/arduino/arduino-language-server/version.commit=unknown"
] ++ lib.optionals stdenv.isLinux [ "-extldflags '-static'" ];
] ++ lib.optionals stdenv.isLinux [
"-extldflags '-static'"
];
meta = with lib; {
inherit (src.meta) homepage;
description = "An Arduino Language Server based on Clangd to Arduino code autocompletion";
homepage = "https://github.com/arduino/arduino-language-server";
changelog = "https://github.com/arduino/arduino-language-server/releases/tag/${version}":
license = licenses.asl20;
maintainers = with maintainers; [ BattleCh1cken ];
};