git-lfs1: use subPackages

This commit is contained in:
zowoq 2020-04-27 20:06:45 +10:00
parent cef17fb6ee
commit 16b418177c

View file

@ -4,7 +4,7 @@ buildGoPackage rec {
pname = "git-lfs";
version = "1.5.6";
rev = "0d02fb7d9a1c599bbf8c55e146e2845a908e04e0";
goPackagePath = "github.com/git-lfs/git-lfs";
src = fetchFromGitHub {
@ -14,8 +14,7 @@ buildGoPackage rec {
sha256 = "0wddry1lqjccf4522fvhx6grx8h57xsz17lkaf5aybnrgw677w3d";
};
# Tests fail with 'lfstest-gitserver.go:46: main redeclared in this block'
excludedPackages = [ "test" ];
subPackages = [ "." ];
preBuild = ''
pushd go/src/github.com/git-lfs/git-lfs
@ -23,9 +22,6 @@ buildGoPackage rec {
popd
'';
postInstall = ''
rm -v $bin/bin/{man,script}
'';
meta = with stdenv.lib; {
description = "Git extension for versioning large files";
homepage = "https://git-lfs.github.com/";