3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/vale/default.nix

33 lines
807 B
Nix
Raw Normal View History

2021-01-20 04:20:00 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-03-10 22:28:02 +00:00
buildGoModule rec {
2019-08-20 13:54:18 +01:00
pname = "vale";
2021-08-22 18:44:32 +01:00
version = "2.10.5";
2018-03-10 22:28:02 +00:00
2021-01-20 04:20:00 +00:00
subPackages = [ "cmd/vale" ];
outputs = [ "out" "data" ];
2019-02-24 01:25:21 +00:00
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}";
2021-08-22 18:44:32 +01:00
sha256 = "sha256-SxNM63MCtsBmjzFbO/leCQwWWew5nN8wTUdmzHkx7dQ=";
2018-03-10 22:28:02 +00:00
};
2021-08-22 18:44:32 +01:00
vendorSha256 = "sha256-3rCrRA9OKG2/wUlVvkG9lynJZOYFVqMkUZpGpW89KZc=";
postInstall = ''
mkdir -p $data/share/vale
cp -r styles $data/share/vale
'';
2019-08-20 13:54:18 +01:00
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
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 ];
};
}