2019-09-21 09:34:00 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-03 11:37:23 +00:00
|
|
|
|
2019-09-21 09:34:00 +00:00
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "git-lfs";
|
2019-09-10 20:54:37 +00:00
|
|
|
version = "2.8.0";
|
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";
|
2019-09-10 20:54:37 +00:00
|
|
|
sha256 = "17x9q4g1acf51bxr9lfmd2ym7w740n4ghdi0ncmma77kwabw9d3x";
|
2016-06-03 11:37:23 +00:00
|
|
|
};
|
|
|
|
|
2019-09-21 09:34:00 +00:00
|
|
|
goPackagePath = "github.com/git-lfs/git-lfs";
|
2019-09-10 20:54:37 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2016-06-03 11:37:23 +00:00
|
|
|
preBuild = ''
|
2019-09-21 09:34:00 +00:00
|
|
|
cd go/src/${goPackagePath}
|
2017-04-18 17:53:51 +00:00
|
|
|
go generate ./commands
|
2016-06-03 11:37:23 +00:00
|
|
|
'';
|
2017-04-18 17:53:51 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Git extension for versioning large files";
|
|
|
|
homepage = https://git-lfs.github.com/;
|
|
|
|
license = [ licenses.mit ];
|
|
|
|
maintainers = [ maintainers.twey ];
|
|
|
|
};
|
2016-06-03 11:37:23 +00:00
|
|
|
}
|