Merge pull request #81085 from KAction/wip/pkg/vale

vale: install documentation and example styles
This commit is contained in:
Mario Rodas 2020-08-02 12:44:31 -05:00 committed by GitHub
commit e8966b097f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,30 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
buildGoModule rec {
pname = "vale";
version = "2.0.0";
version = "2.2.2";
subPackages = [ "." ];
outputs = ["out" "doc" "data"];
src = fetchFromGitHub {
owner = "errata-ai";
repo = "vale";
rev = "v${version}";
sha256 = "068973ayd883kzkxl60lpammf3icjz090nw07kfccvhcf24x07bh";
sha256 = "11pgszm9cb65liczpnq04l1rx0v68jgmkzrw7ax5kln5hgnrh4kb";
};
deleteVendor = true;
vendorSha256 = "150pvy94vfjvn74d63az917szixw1nhl60y1adixg8xqpcjnv9hj";
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}" ];