nixpkgs/pkgs/applications/version-management/git-lfs/default.nix
zimbatm a5a1d45636 git-lfs: 1.2.0 -> 2016-06-07
Fixes import issues after go1.5+
2016-06-09 16:11:33 +02:00

31 lines
703 B
Nix

{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "git-lfs-${version}";
# NOTE: use versions after 1.2.1
version = "2016-06-07";
rev = "12fe249f2eebb56608a825fdb4a68c00f090bc91";
goPackagePath = "github.com/github/git-lfs";
src = fetchFromGitHub {
inherit rev;
owner = "github";
repo = "git-lfs";
sha256 = "0cj7xbgvj706r1cyxqlcwfvy5zg2d19al04d441sxa6spr6xa4v6";
};
# 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}
'';
}