mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
Merge pull request #81085 from KAction/wip/pkg/vale
vale: install documentation and example styles
This commit is contained in:
commit
e8966b097f
@ -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}" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user