2016-06-06 11:26:56 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-03 12:37:23 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "git-lfs-${version}";
|
2016-06-09 15:00:11 +01:00
|
|
|
# NOTE: use versions after 1.2.1
|
2016-08-03 21:35:44 +01:00
|
|
|
version = "1.3.1";
|
|
|
|
rev = "9c9dffb1b5baddfa06f280ef1b5fbf68ecbc90b1";
|
2016-06-03 12:37:23 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/github/git-lfs";
|
|
|
|
|
2016-06-06 11:26:56 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-03 12:37:23 +01:00
|
|
|
inherit rev;
|
2016-06-06 11:26:56 +01:00
|
|
|
owner = "github";
|
|
|
|
repo = "git-lfs";
|
2016-08-03 21:35:44 +01:00
|
|
|
sha256 = "0fg48jxh0gmd0w5yy3avascaasxk85019qayaikzfkym8bdqplb2";
|
2016-06-03 12:37:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests fail with 'lfstest-gitserver.go:46: main redeclared in this block'
|
|
|
|
excludedPackages = [ "test" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
pushd go/src/github.com/github/git-lfs
|
|
|
|
go generate ./commands
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -v $bin/bin/{man,script}
|
|
|
|
'';
|
|
|
|
}
|