2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "jsonnet-language-server";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.12.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grafana";
|
|
|
|
repo = "jsonnet-language-server";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-Z7ovjDt7MoV0/YRDOkidTs6O4vwKAVZyioeaNaehZLQ=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = "sha256-dOs+CasHQt9kcjQENG2rJfTimmkGzayJyGuyE6u8Pz4=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
ldflags = [
|
2022-12-17 10:02:37 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X 'main.version=${version}'"
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Language Server Protocol server for Jsonnet";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://github.com/grafana/jsonnet-language-server";
|
|
|
|
changelog = "https://github.com/grafana/jsonnet-language-server/releases/tag/v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ hardselius ];
|
|
|
|
};
|
|
|
|
}
|