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

27 lines
681 B
Nix
Raw Normal View History

2019-09-21 02:20:00 -07:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
2018-03-10 14:28:02 -08:00
2019-09-21 02:20:00 -07:00
buildGoPackage rec {
2019-08-20 05:54:18 -07:00
pname = "vale";
version = "2.0.0";
2018-03-10 14:28:02 -08:00
2019-02-23 17:25:21 -08:00
subPackages = [ "." ];
2018-03-10 14:28:02 -08:00
src = fetchFromGitHub {
2018-04-26 20:20:30 -07:00
owner = "errata-ai";
2018-03-10 14:28:02 -08:00
repo = "vale";
2018-11-25 12:57:23 -08:00
rev = "v${version}";
sha256 = "068973ayd883kzkxl60lpammf3icjz090nw07kfccvhcf24x07bh";
2018-03-10 14:28:02 -08:00
};
2019-09-21 02:20:00 -07:00
goPackagePath = "github.com/errata-ai/vale";
2019-08-20 05:54:18 -07:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2018-03-10 14:28:02 -08:00
meta = with stdenv.lib; {
homepage = "https://errata-ai.gitbook.io/vale/";
2019-01-18 04:05:24 -08:00
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
2018-03-10 14:28:02 -08:00
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}