Merge pull request #176616 from azahi/terraform-lsp

terraform-lsp: use buildGoModule
This commit is contained in:
Mario Rodas 2022-06-07 00:13:16 -05:00 committed by GitHub
commit 4c25d81758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,9 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoPackage rec {
buildGoModule rec {
pname = "terraform-lsp";
version = "0.0.12";
@ -11,7 +14,7 @@ buildGoPackage rec {
sha256 = "111350jbq0dp0qhk48j12hrlisd1fwzqpcv357igrbqf6ki7r78q";
};
goPackagePath = "github.com/juliosueiras/terraform-lsp";
vendorSha256 = null;
ldflags = [ "-s" "-w" "-X main.Version=${version}" "-X main.GitCommit=${src.rev}" ];
@ -19,6 +22,6 @@ buildGoPackage rec {
description = "Language Server Protocol for Terraform";
homepage = "https://github.com/juliosueiras/terraform-lsp";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
maintainers = with maintainers; [ marsam ];
};
}