mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
eb4f817aba
Diff: https://github.com/errata-ai/vale/compare/v2.28.1...v2.28.2 Changelog: https://github.com/errata-ai/vale/releases/tag/v2.28.2
37 lines
920 B
Nix
37 lines
920 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vale";
|
|
version = "2.28.2";
|
|
|
|
subPackages = [ "cmd/vale" ];
|
|
outputs = [ "out" "data" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "errata-ai";
|
|
repo = "vale";
|
|
rev = "v${version}";
|
|
hash = "sha256-T5CV7IlyZUfl3qUIUaLaisnFJ5fQ0de0KGQvuINx7TY=";
|
|
};
|
|
|
|
vendorHash = "sha256-KB1mRWDYejc38tUv316MiGfmq2riNnpEMIUpjgfSasU=";
|
|
|
|
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 ];
|
|
};
|
|
}
|