nixpkgs-suyu/pkgs/tools/text/vale/default.nix

33 lines
803 B
Nix
Raw Normal View History

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