vale: install documentation into $doc output

wip/yesman
Dmitry Bogatov 4 years ago committed by Mario Rodas
parent aeb3a34a91
commit 589fb6b374
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027
  1. 5
      pkgs/tools/text/vale/default.nix

@ -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}" ];

Loading…
Cancel
Save