Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vale: install documentation and example styles #81085

Merged
merged 3 commits into from Aug 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 15 additions & 4 deletions pkgs/tools/text/vale/default.nix
@@ -1,19 +1,30 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub }:

buildGoPackage rec {
buildGoModule rec {
marsam marked this conversation as resolved.
Show resolved Hide resolved
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}" ];

Expand Down