git-lfs: install man pages

This commit is contained in:
Mario Rodas 2020-05-01 04:20:00 -05:00
parent 5dbc4f7fda
commit ae04f8efae
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -1,6 +1,6 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, ronn, installShellFiles }:
buildGoModule rec {
buildGoPackage rec {
pname = "git-lfs";
version = "2.10.0";
@ -11,10 +11,22 @@ buildGoModule rec {
sha256 = "1y5ryk0iz5g5sqaw79ml6fr5kvjgzcah481pk5qmnb2ipb1xlng9";
};
modSha256 = "1rvvgyg4gqbli4pwfnmyz59gf14k7925mdqj6ykp542gwnsjgjp2";
goPackagePath = "github.com/git-lfs/git-lfs";
nativeBuildInputs = [ ronn installShellFiles ];
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/config.Vendor=${version} -X ${goPackagePath}/config.GitCommit=${src.rev}" ];
subPackages = [ "." ];
postBuild = ''
make -C go/src/${goPackagePath} man
'';
postInstall = ''
installManPage man/*.1 man/*.5
'';
meta = with stdenv.lib; {
description = "Git extension for versioning large files";
homepage = "https://git-lfs.github.com/";