mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
aeb3a34a91
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.
31 lines
777 B
Nix
31 lines
777 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vale";
|
|
version = "2.2.2";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "errata-ai";
|
|
repo = "vale";
|
|
rev = "v${version}";
|
|
sha256 = "11pgszm9cb65liczpnq04l1rx0v68jgmkzrw7ax5kln5hgnrh4kb";
|
|
};
|
|
|
|
deleteVendor = true;
|
|
|
|
vendorSha256 = "150pvy94vfjvn74d63az917szixw1nhl60y1adixg8xqpcjnv9hj";
|
|
|
|
goPackagePath = "github.com/errata-ai/vale";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://errata-ai.gitbook.io/vale/";
|
|
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|