c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
36 lines
919 B
Nix
36 lines
919 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vale";
|
|
version = "3.2.0";
|
|
|
|
subPackages = [ "cmd/vale" ];
|
|
outputs = [ "out" "data" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "errata-ai";
|
|
repo = "vale";
|
|
rev = "v${version}";
|
|
hash = "sha256-emAwoOFjB/zXkCLL8txs1OiMZ9DKm58eeenYFKctpzQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-cGWWjfkwgM1dAVKCl/Ao2ILyLyk0oPvqjLEZL0Clvyw=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $data/share/vale
|
|
cp -r testdata/styles $data/share/vale
|
|
'';
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
|
|
homepage = "https://vale.sh/";
|
|
changelog = "https://github.com/errata-ai/vale/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|