2020-11-02 16:39:40 -08:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-06-12 03:35:06 -07:00
|
|
|
|
2020-11-02 16:39:40 -08:00
|
|
|
buildGoModule rec {
|
2020-06-12 03:35:06 -07:00
|
|
|
pname = "terraform-ls";
|
2021-02-06 13:27:36 -08:00
|
|
|
version = "0.13.0";
|
2020-06-12 03:35:06 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-06 13:27:36 -08:00
|
|
|
sha256 = "sha256-0WbUJYNRBKixRFl+YM1uSEltQneB6FYPFHNVVhmdseA=";
|
2020-06-12 03:35:06 -07:00
|
|
|
};
|
2021-02-06 13:27:36 -08:00
|
|
|
vendorSha256 = "sha256-WYTn2QoI1Z3L4Wxjrq0YT++X9vMA1Wm3zgl08CYiU1Y=";
|
2020-06-12 03:35:06 -07:00
|
|
|
|
2020-11-02 16:39:40 -08:00
|
|
|
# tests fail in sandbox mode because of trying to download stuff from releases.hashicorp.com
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-12 03:35:06 -07:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terraform Language Server (official)";
|
|
|
|
homepage = "https://github.com/hashicorp/terraform-ls";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ mbaillie ];
|
|
|
|
};
|
|
|
|
}
|