25 lines
633 B
Nix
25 lines
633 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "terraform-ls";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0bb6bpdjp9yzbxvc6mz22lawn41ay0frdpgbd7zrm8nkvspc0rl7";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|