2021-01-19 20:20:00 -08:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-03-10 14:28:02 -08:00
|
|
|
|
2020-02-25 17:23:38 -08:00
|
|
|
buildGoModule rec {
|
2019-08-20 05:54:18 -07:00
|
|
|
pname = "vale";
|
2021-01-19 20:20:00 -08:00
|
|
|
version = "2.8.1";
|
2018-03-10 14:28:02 -08:00
|
|
|
|
2021-01-19 20:20:00 -08:00
|
|
|
subPackages = [ "cmd/vale" ];
|
2020-08-07 18:35:33 -07:00
|
|
|
outputs = [ "out" "data" ];
|
2019-02-23 17:25:21 -08:00
|
|
|
|
2018-03-10 14:28:02 -08:00
|
|
|
src = fetchFromGitHub {
|
2018-04-26 20:20:30 -07:00
|
|
|
owner = "errata-ai";
|
2018-03-10 14:28:02 -08:00
|
|
|
repo = "vale";
|
2018-11-25 12:57:23 -08:00
|
|
|
rev = "v${version}";
|
2021-01-19 20:20:00 -08:00
|
|
|
sha256 = "0xvsg5j0nv6p6wskxg4gz79di6p495c78xbwl3xmh0wyk7g78lkx";
|
2018-03-10 14:28:02 -08:00
|
|
|
};
|
|
|
|
|
2020-08-07 18:35:33 -07:00
|
|
|
vendorSha256 = null;
|
2020-02-25 17:23:38 -08:00
|
|
|
|
2020-02-25 17:33:33 -08:00
|
|
|
postInstall = ''
|
2020-02-25 18:33:10 -08:00
|
|
|
mkdir -p $data/share/vale
|
|
|
|
cp -r styles $data/share/vale
|
2020-02-25 17:33:33 -08:00
|
|
|
'';
|
2019-08-20 05:54:18 -07:00
|
|
|
|
2020-02-18 15:00:00 -08:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-02-18 15:00:00 -08:00
|
|
|
homepage = "https://errata-ai.gitbook.io/vale/";
|
2019-01-18 04:05:24 -08:00
|
|
|
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
|
2018-03-10 14:28:02 -08:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|