Merge pull request #86514 from marsam/git-lfs-manpages

git-lfs: install man pages
This commit is contained in:
Mario Rodas 2020-05-02 08:45:11 -05:00 committed by GitHub
commit a15aec0052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,14 +11,26 @@ 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/";
license = [ licenses.mit ];
maintainers = [ maintainers.twey ];
maintainers = [ maintainers.twey maintainers.marsam ];
};
}