2021-01-14 02:00:00 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, ronn, installShellFiles }:
|
2016-06-03 11:37:23 +00:00
|
|
|
|
2020-05-01 09:20:00 +00:00
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "git-lfs";
|
2021-10-28 04:20:00 +00:00
|
|
|
version = "3.0.2";
|
2016-06-03 11:37:23 +00:00
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2017-10-22 12:12:19 +00:00
|
|
|
rev = "v${version}";
|
2017-04-18 17:53:51 +00:00
|
|
|
owner = "git-lfs";
|
2016-06-06 10:26:56 +00:00
|
|
|
repo = "git-lfs";
|
2021-10-28 04:20:00 +00:00
|
|
|
sha256 = "0k2pzbhd95xixh5aqdwf5pafilg85wl46d04xbb4lx6k3gkfv0f3";
|
2016-06-03 11:37:23 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 09:20:00 +00:00
|
|
|
goPackagePath = "github.com/git-lfs/git-lfs";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ronn installShellFiles ];
|
|
|
|
|
2021-08-26 03:31:57 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X ${goPackagePath}/config.Vendor=${version}" "-X ${goPackagePath}/config.GitCommit=${src.rev}" ];
|
2019-09-10 20:54:37 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2020-05-01 09:20:00 +00:00
|
|
|
postBuild = ''
|
|
|
|
make -C go/src/${goPackagePath} man
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-05-02 16:24:15 +00:00
|
|
|
installManPage go/src/${goPackagePath}/man/*.{1,5}
|
2020-05-01 09:20:00 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-18 17:53:51 +00:00
|
|
|
description = "Git extension for versioning large files";
|
2020-04-02 06:31:32 +00:00
|
|
|
homepage = "https://git-lfs.github.com/";
|
2021-10-23 03:16:50 +00:00
|
|
|
changelog = "https://github.com/git-lfs/git-lfs/raw/v${version}/CHANGELOG.md";
|
2017-04-18 17:53:51 +00:00
|
|
|
license = [ licenses.mit ];
|
2020-05-01 09:20:00 +00:00
|
|
|
maintainers = [ maintainers.twey maintainers.marsam ];
|
2017-04-18 17:53:51 +00:00
|
|
|
};
|
2016-06-03 11:37:23 +00:00
|
|
|
}
|