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