vale: install documentation into $doc output

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

View file

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