nixpkgs/pkgs/tools/text/vale/default.nix
Dmitry Bogatov aeb3a34a91
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.
2020-02-25 20:23:38 -05:00

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 ];
};
}