2020-06-12 12:35:06 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "terraform-ls";
|
2020-09-05 21:26:24 +02:00
|
|
|
version = "0.7.0";
|
2020-06-12 12:35:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-05 21:26:24 +02:00
|
|
|
sha256 = "1afdd1zs242nh1cync5ip1fbah34wc3gbsx3hwwiisc8yziwiq18";
|
2020-06-12 12:35:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/hashicorp/terraform-ls";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|