2017-04-18 19:53:51 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-03 13:37:23 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "git-lfs-${version}";
|
2019-05-10 10:19:45 +02:00
|
|
|
version = "2.7.2";
|
2017-04-18 19:53:51 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/git-lfs/git-lfs";
|
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";
|
2019-05-10 10:19:45 +02:00
|
|
|
sha256 = "1nf40rbdz901vsahg5cm09pznpina6wimmxl0lmh8pn0mi51yzvc";
|
2016-06-03 13:37:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
2017-04-18 19:53:51 +02:00
|
|
|
pushd go/src/github.com/git-lfs/git-lfs
|
|
|
|
go generate ./commands
|
2016-06-03 13:37:23 +02:00
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2018-09-17 22:04:22 +02:00
|
|
|
rm -v $bin/bin/{man,script,cmd}
|
2016-06-03 13:37:23 +02:00
|
|
|
'';
|
2017-04-18 19:53:51 +02: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 13:37:23 +02:00
|
|
|
}
|