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