vale: install styles provided by upstream

This commit is contained in:
Dmitry Bogatov 2020-02-25 21:33:10 -05:00 committed by Mario Rodas
parent 589fb6b374
commit 90a4f2d9ba
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -5,7 +5,7 @@ buildGoModule rec {
version = "2.2.2";
subPackages = [ "." ];
outputs = ["out" "doc"];
outputs = ["out" "doc" "data"];
src = fetchFromGitHub {
owner = "errata-ai";
@ -21,7 +21,9 @@ buildGoModule rec {
goPackagePath = "github.com/errata-ai/vale";
postInstall = ''
mkdir -p $doc/share/doc/vale
mkdir -p $data/share/vale
cp -r docs/* $doc/share/doc/vale
cp -r styles $data/share/vale
'';
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];