nixpkgs-suyu/pkgs/applications/version-management/git-lfs/default.nix

30 lines
634 B
Nix
Raw Normal View History

{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2016-06-03 13:37:23 +02:00
buildGoPackage rec {
name = "git-lfs-${version}";
version = "1.2.0";
rev = "v${version}";
goPackagePath = "github.com/github/git-lfs";
src = fetchFromGitHub {
2016-06-03 13:37:23 +02:00
inherit rev;
owner = "github";
repo = "git-lfs";
2016-06-03 13:37:23 +02:00
sha256 = "0z8giavcvfpzmhnxxsqvsgabjfq5gpka8jy4qvadf60yibxds9fp";
};
# 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}
'';
}