git-lfs: adding old 1.5.6 (supports old server protocols)

Some git-lfs servers may not be ready for 2.x clients.

+38 -1
+35
pkgs/applications/version-management/git-lfs/1.nix
··· 1 + { stdenv, lib, buildGoPackage, fetchFromGitHub }: 2 + 3 + buildGoPackage rec { 4 + name = "git-lfs-${version}"; 5 + version = "1.5.6"; 6 + rev = "0d02fb7d9a1c599bbf8c55e146e2845a908e04e0"; 7 + 8 + goPackagePath = "github.com/git-lfs/git-lfs"; 9 + 10 + src = fetchFromGitHub { 11 + inherit rev; 12 + owner = "git-lfs"; 13 + repo = "git-lfs"; 14 + sha256 = "0wddry1lqjccf4522fvhx6grx8h57xsz17lkaf5aybnrgw677w3d"; 15 + }; 16 + 17 + # Tests fail with 'lfstest-gitserver.go:46: main redeclared in this block' 18 + excludedPackages = [ "test" ]; 19 + 20 + preBuild = '' 21 + pushd go/src/github.com/git-lfs/git-lfs 22 + go generate ./commands 23 + popd 24 + ''; 25 + 26 + postInstall = '' 27 + rm -v $bin/bin/{man,script} 28 + ''; 29 + meta = with stdenv.lib; { 30 + description = "Git extension for versioning large files"; 31 + homepage = https://git-lfs.github.com/; 32 + license = [ licenses.mit ]; 33 + maintainers = [ maintainers.twey ]; 34 + }; 35 + }
+3 -1
pkgs/top-level/all-packages.nix
··· 2134 2134 2135 2135 git-crecord = callPackage ../applications/version-management/git-crecord { }; 2136 2136 2137 - git-lfs = callPackage ../applications/version-management/git-lfs { }; 2137 + git-lfs = lowPrio (callPackage ../applications/version-management/git-lfs { }); 2138 + 2139 + git-lfs1 = callPackage ../applications/version-management/git-lfs/1.nix { }; 2138 2140 2139 2141 git-ftp = callPackage ../development/tools/git-ftp { }; 2140 2142