2020-02-18 09:20:00 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2019-07-22 10:20:00 +01:00
|
|
|
|
2020-02-18 09:20:00 +00:00
|
|
|
buildGoPackage rec {
|
2019-07-22 10:20:00 +01:00
|
|
|
pname = "terraform-lsp";
|
2020-02-18 09:20:00 +00:00
|
|
|
version = "0.0.10";
|
2019-07-22 10:20:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "juliosueiras";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-02-18 09:20:00 +00:00
|
|
|
sha256 = "1j69j1pkd0q6bds1c6pcaars5hl3hk93q2p31mymkzmy640k8zfn";
|
2019-07-22 10:20:00 +01:00
|
|
|
};
|
|
|
|
|
2020-02-18 09:20:00 +00:00
|
|
|
goPackagePath = "github.com/juliosueiras/terraform-lsp";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitCommit=${src.rev}" ];
|
2019-07-22 10:20:00 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Language Server Protocol for Terraform";
|
|
|
|
homepage = "https://github.com/juliosueiras/terraform-lsp";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|