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";
|
2021-05-20 05:20:00 +01:00
|
|
|
version = "0.0.12";
|
2019-07-22 10:20:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "juliosueiras";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-20 05:20:00 +01:00
|
|
|
sha256 = "111350jbq0dp0qhk48j12hrlisd1fwzqpcv357igrbqf6ki7r78q";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|