2022-07-14 12:49:19 +00:00
|
|
|
{ stdenv, lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "jsonnet-language-server";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.10.0";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grafana";
|
|
|
|
repo = "jsonnet-language-server";
|
|
|
|
rev = "v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-RpjLIz5lfdWULTDTMDVYvTTSaQWvYbvpxvs4L5UldjM=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
vendorSha256 = "sha256-imFr4N/YmpwjVZSCBHG7cyJt4RKTn+T7VPdL8R/ba5o=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s -w -X 'main.version=${version}'"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/grafana/jsonnet-language-server";
|
|
|
|
description = "Language Server Protocol server for Jsonnet";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ hardselius ];
|
|
|
|
};
|
|
|
|
}
|