Merge pull request #86514 from marsam/git-lfs-manpages
git-lfs: install man pages
This commit is contained in:
commit
a15aec0052
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user