terraform-ls: 0.7.0 -> 0.10.0, switch to buildGoModule

This commit is contained in:
Andrey Kuznetsov 2020-11-03 03:39:40 +03:00
parent 2247d824fe
commit 401ab9f095
No known key found for this signature in database
GPG key ID: A3748A3281F25743

View file

@ -1,18 +1,22 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
buildGoModule rec {
pname = "terraform-ls";
version = "0.7.0";
version = "0.11.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = pname;
rev = "v${version}";
sha256 = "1afdd1zs242nh1cync5ip1fbah34wc3gbsx3hwwiisc8yziwiq18";
sha256 = "XOKaNpYR31lKpA33+7WU2KYjgEx4g6gpp3IAjWtb3Zk=";
};
vendorSha256 = "8NdeCD558r0tV+ZR4MvLl5CzeNj8cUGtqwvJ2ZhS7mI=";
goPackagePath = "github.com/hashicorp/terraform-ls";
# tests fail in sandbox mode because of trying to download stuff from releases.hashicorp.com
doCheck = false;
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with lib; {