1{ stdenv, lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "jsonnet-language-server";
5 version = "0.10.0";
6
7 src = fetchFromGitHub {
8 owner = "grafana";
9 repo = "jsonnet-language-server";
10 rev = "v${version}";
11 sha256 = "sha256-RpjLIz5lfdWULTDTMDVYvTTSaQWvYbvpxvs4L5UldjM=";
12 };
13
14 vendorSha256 = "sha256-imFr4N/YmpwjVZSCBHG7cyJt4RKTn+T7VPdL8R/ba5o=";
15
16 ldflags = [
17 "-s -w -X 'main.version=${version}'"
18 ];
19
20 meta = with lib; {
21 homepage = "https://github.com/grafana/jsonnet-language-server";
22 description = "Language Server Protocol server for Jsonnet";
23 license = licenses.agpl3Only;
24 maintainers = with maintainers; [ hardselius ];
25 };
26}