mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
34 lines
814 B
Nix
34 lines
814 B
Nix
{ lib
|
|
, stdenv
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "jsonnet-language-server";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grafana";
|
|
repo = "jsonnet-language-server";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jmeXX4l0A6bVRt9eJI6wDzjOcjPC0/uElT/2YwhWoqw=";
|
|
};
|
|
|
|
vendorHash = "sha256-lC3GAOJ/XVzn+9kk4PnW/7UwqjiXP7DqYmqauwOqQ+k=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X 'main.version=${version}'"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Language Server Protocol server for Jsonnet";
|
|
homepage = "https://github.com/grafana/jsonnet-language-server";
|
|
changelog = "https://github.com/grafana/jsonnet-language-server/releases/tag/v${version}";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ hardselius ];
|
|
};
|
|
}
|