forked from mirrors/nixpkgs
35 lines
795 B
Nix
35 lines
795 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vale";
|
|
version = "2.6.4";
|
|
|
|
subPackages = [ "." ];
|
|
outputs = [ "out" "data" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "errata-ai";
|
|
repo = "vale";
|
|
rev = "v${version}";
|
|
sha256 = "192w98ghfldxamkx717wqa4v3lsr2imlf8xd6ygjpgx78b5zvvcx";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mkdir -p $data/share/vale
|
|
cp -r styles $data/share/vale
|
|
'';
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://errata-ai.gitbook.io/vale/";
|
|
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|