2021-01-20 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-03-10 22:28:02 +00:00
|
|
|
|
2020-02-26 01:23:38 +00:00
|
|
|
buildGoModule rec {
|
2019-08-20 12:54:18 +00:00
|
|
|
pname = "vale";
|
2022-02-08 04:20:12 +00:00
|
|
|
version = "2.15.0";
|
2018-03-10 22:28:02 +00:00
|
|
|
|
2021-01-20 04:20:00 +00:00
|
|
|
subPackages = [ "cmd/vale" ];
|
2020-08-08 01:35:33 +00:00
|
|
|
outputs = [ "out" "data" ];
|
2019-02-24 01:25:21 +00:00
|
|
|
|
2018-03-10 22:28:02 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-10-16 06:56:04 +00:00
|
|
|
owner = "errata-ai";
|
|
|
|
repo = "vale";
|
|
|
|
rev = "v${version}";
|
2022-02-08 04:20:12 +00:00
|
|
|
sha256 = "sha256-HWekPMrQYTizyiRu9QSztZfZXsDmybXYarj6alGWJag=";
|
2018-03-10 22:28:02 +00:00
|
|
|
};
|
|
|
|
|
2022-02-08 04:20:12 +00:00
|
|
|
vendorSha256 = "sha256-2vYe943HHybOLcP8nDJe7RimMRIJdND2UPwtwB2mttE=";
|
2020-02-26 01:23:38 +00:00
|
|
|
|
2020-02-26 01:33:33 +00:00
|
|
|
postInstall = ''
|
2020-02-26 02:33:10 +00:00
|
|
|
mkdir -p $data/share/vale
|
|
|
|
cp -r styles $data/share/vale
|
2020-02-26 01:33:33 +00:00
|
|
|
'';
|
2019-08-20 12:54:18 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-02-18 23:00:00 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://docs.errata.ai/vale/about";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|