2017-04-18 17:53:51 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-03 11:37:23 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "git-lfs-${version}";
|
2017-08-05 12:22:18 +00:00
|
|
|
version = "2.2.1";
|
|
|
|
rev = "621d1f821f73efcedc829dda43fd9c1fcf07c6ab";
|
2017-04-18 17:53:51 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/git-lfs/git-lfs";
|
2016-06-03 11:37:23 +00:00
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-06-03 11:37:23 +00:00
|
|
|
inherit rev;
|
2017-04-18 17:53:51 +00:00
|
|
|
owner = "git-lfs";
|
2016-06-06 10:26:56 +00:00
|
|
|
repo = "git-lfs";
|
2017-08-05 12:22:18 +00:00
|
|
|
sha256 = "00wc4gjs4yy2qld1m4yar37jkw9fdi2h8xp25hy2y80cnyiafn7s";
|
2016-06-03 11:37:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
2017-04-18 17:53:51 +00:00
|
|
|
pushd go/src/github.com/git-lfs/git-lfs
|
|
|
|
go generate ./commands
|
2016-06-03 11:37:23 +00:00
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2017-04-18 17:53:51 +00:00
|
|
|
rm -v $bin/bin/{man,script,genmakefile}
|
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
|
|
|
}
|