27 lines
748 B
Nix
27 lines
748 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "terraform-ls";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "w9PLKLFjKehtub1LbVX9TbvKkj/S1t0MwZIZurF2x18=";
|
|
};
|
|
vendorSha256 = "J8ovcUeQsb58Bq/EM9mvYqtuDY1bXTEVCC9/AH+UttU=";
|
|
|
|
# tests fail in sandbox mode because of trying to download stuff from releases.hashicorp.com
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|