mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
36 lines
842 B
Nix
36 lines
842 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vale";
|
|
version = "2.23.0";
|
|
|
|
subPackages = [ "cmd/vale" ];
|
|
outputs = [ "out" "data" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "errata-ai";
|
|
repo = "vale";
|
|
rev = "v${version}";
|
|
hash = "sha256-HvdopsSI5CZOAA+C+FJGc7WhrA2qt43cAHe9HoxO91o=";
|
|
};
|
|
|
|
vendorHash = "sha256-aH8KWvTXRlWVR/RdYlGjpZ4bOncQfLap1PVKxEnaz6A=";
|
|
|
|
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; {
|
|
homepage = "https://vale.sh/";
|
|
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|