1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/git-lfs/default.nix

31 lines
698 B
Nix
Raw Normal View History

{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2016-06-03 12:37:23 +01:00
buildGoPackage rec {
name = "git-lfs-${version}";
# 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";
src = fetchFromGitHub {
2016-06-03 12:37:23 +01:00
inherit rev;
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}
'';
}