2020-02-26 01:23:38 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-03-10 22:28:02 +00:00
|
|
|
|
2020-02-26 01:23:38 +00:00
|
|
|
buildGoModule rec {
|
2019-08-20 13:54:18 +01:00
|
|
|
pname = "vale";
|
2020-02-26 01:23:38 +00:00
|
|
|
version = "2.2.2";
|
2018-03-10 22:28:02 +00:00
|
|
|
|
2019-02-24 01:25:21 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2018-03-10 22:28:02 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-04-27 04:20:30 +01:00
|
|
|
owner = "errata-ai";
|
2018-03-10 22:28:02 +00:00
|
|
|
repo = "vale";
|
2018-11-25 20:57:23 +00:00
|
|
|
rev = "v${version}";
|
2020-02-26 01:23:38 +00:00
|
|
|
sha256 = "11pgszm9cb65liczpnq04l1rx0v68jgmkzrw7ax5kln5hgnrh4kb";
|
2018-03-10 22:28:02 +00:00
|
|
|
};
|
|
|
|
|
2020-02-26 01:23:38 +00:00
|
|
|
deleteVendor = true;
|
|
|
|
|
|
|
|
vendorSha256 = "150pvy94vfjvn74d63az917szixw1nhl60y1adixg8xqpcjnv9hj";
|
|
|
|
|
2019-09-21 10:20:00 +01:00
|
|
|
goPackagePath = "github.com/errata-ai/vale";
|
2019-08-20 13:54:18 +01:00
|
|
|
|
2020-02-18 23:00:00 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
|
2018-03-10 22:28:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-02-18 23:00:00 +00:00
|
|
|
homepage = "https://errata-ai.gitbook.io/vale/";
|
2019-01-18 12:05:24 +00:00
|
|
|
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
|
2018-03-10 22:28:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|