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-05-12 08:18:11 -07:00
|
|
|
version = "0.16.2";
|
2020-06-12 03:35:06 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-12 08:18:11 -07:00
|
|
|
sha256 = "sha256-5+h1fyTCp1jUZeKRCeDhfqAA11SMyR5nw2Y2x6JyIwY=";
|
2020-06-12 03:35:06 -07:00
|
|
|
};
|
2021-05-12 08:18:11 -07:00
|
|
|
vendorSha256 = "sha256-m5ddUwuTX0mSihkoGIMQKidptwUL8Bao5HgHJBWX0os=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|