vale: 2.0.0 -> 2.2.2
Switch from buildGoPackage to buildGoModule According to documentation, buildGoPackage is designed for legacy Go packages which do not support go.mod, while "vale" do support it.
This commit is contained in:
parent
798bba8fa0
commit
aeb3a34a91
|
@ -1,8 +1,8 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "vale";
|
||||
version = "2.0.0";
|
||||
version = "2.2.2";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
|
@ -10,9 +10,13 @@ buildGoPackage rec {
|
|||
owner = "errata-ai";
|
||||
repo = "vale";
|
||||
rev = "v${version}";
|
||||
sha256 = "068973ayd883kzkxl60lpammf3icjz090nw07kfccvhcf24x07bh";
|
||||
sha256 = "11pgszm9cb65liczpnq04l1rx0v68jgmkzrw7ax5kln5hgnrh4kb";
|
||||
};
|
||||
|
||||
deleteVendor = true;
|
||||
|
||||
vendorSha256 = "150pvy94vfjvn74d63az917szixw1nhl60y1adixg8xqpcjnv9hj";
|
||||
|
||||
goPackagePath = "github.com/errata-ai/vale";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
|
|
Loading…
Reference in New Issue