diff --git a/pkgs/development/tools/misc/terraform-lsp/default.nix b/pkgs/development/tools/misc/terraform-lsp/default.nix index d55367e70658..1f35f7696232 100644 --- a/pkgs/development/tools/misc/terraform-lsp/default.nix +++ b/pkgs/development/tools/misc/terraform-lsp/default.nix @@ -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 ]; }; }