2020-05-01 11:20:00 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, ronn, installShellFiles }:
|
2016-06-03 13:37:23 +02:00
|
|
|
|
2020-05-01 11:20:00 +02:00
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "git-lfs";
|
2020-12-13 05:20:00 +01:00
|
|
|
version = "2.13.1";
|
2016-06-03 13:37:23 +02:00
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2017-10-22 14:12:19 +02:00
|
|
|
rev = "v${version}";
|
2017-04-18 19:53:51 +02:00
|
|
|
owner = "git-lfs";
|
2016-06-06 12:26:56 +02:00
|
|
|
repo = "git-lfs";
|
2020-12-13 05:20:00 +01:00
|
|
|
sha256 = "0n4gi7sh6d1maqwp12fsznrky9xwkk2jrmxfwa2hnk8wb2rhvlrm";
|
2016-06-03 13:37:23 +02:00
|
|
|
};
|
|
|
|
|
2020-05-01 11:20:00 +02:00
|
|
|
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}" ];
|
2019-09-10 22:54:37 +02:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2020-05-01 11:20:00 +02:00
|
|
|
postBuild = ''
|
|
|
|
make -C go/src/${goPackagePath} man
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-05-02 18:24:15 +02:00
|
|
|
installManPage go/src/${goPackagePath}/man/*.{1,5}
|
2020-05-01 11:20:00 +02:00
|
|
|
'';
|
|
|
|
|
2017-04-18 19:53:51 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Git extension for versioning large files";
|
2020-04-02 08:31:32 +02:00
|
|
|
homepage = "https://git-lfs.github.com/";
|
2020-12-13 05:20:00 +01:00
|
|
|
changelog = "https://github.com/git-lfs/git-lfs/blob/v${version}/CHANGELOG.md";
|
2017-04-18 19:53:51 +02:00
|
|
|
license = [ licenses.mit ];
|
2020-05-01 11:20:00 +02:00
|
|
|
maintainers = [ maintainers.twey maintainers.marsam ];
|
2017-04-18 19:53:51 +02:00
|
|
|
};
|
2016-06-03 13:37:23 +02:00
|
|
|
}
|