summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-09-17 13:26:38 -0400
committerGitHub <noreply@github.com>2019-09-17 13:26:38 -0400
commit2fe6173cc6dafc5fc0efe2a7f0b0e11abb8e965c (patch)
treeb4c7be131d0366f1a862b0c25003a333bafa1371
parent47dc30c10c16ac9a266707c29222942fc6da0128 (diff)
parent9630cb4b8dbeaa11a94f2a88a529e9ff1666f304 (diff)
Merge pull request #68455 from rvolosatovs/update/git-lfs
git-lfs: 2.7.2 -> 2.8.0, ensure go 1.13 compatibility
-rw-r--r--pkgs/applications/version-management/git-lfs/default.nix30
1 files changed, 18 insertions, 12 deletions
diff --git a/pkgs/applications/version-management/git-lfs/default.nix b/pkgs/applications/version-management/git-lfs/default.nix
index d9b5e1704976..261ae3317f2e 100644
--- a/pkgs/applications/version-management/git-lfs/default.nix
+++ b/pkgs/applications/version-management/git-lfs/default.nix
@@ -1,26 +1,32 @@
-{ stdenv, buildGoPackage, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
-buildGoPackage rec {
+buildGoModule rec {
pname = "git-lfs";
- version = "2.7.2";
-
- goPackagePath = "github.com/git-lfs/git-lfs";
+ version = "2.8.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "git-lfs";
repo = "git-lfs";
- sha256 = "1nf40rbdz901vsahg5cm09pznpina6wimmxl0lmh8pn0mi51yzvc";
+ sha256 = "17x9q4g1acf51bxr9lfmd2ym7w740n4ghdi0ncmma77kwabw9d3x";
};
+ modSha256 = "1rjscc52rh8kxa64canw3baljllp1c639nsn89hs5b86c8v1jav7";
+
+ patches = [
+ (fetchpatch {
+ # Build fails on v2.8.0 with go 1.13 due to invalid dependency version:
+ # go: github.com/git-lfs/go-ntlm@v0.0.0-20190307203151-c5056e7fa066: invalid pseudo-version: does not match version-control timestamp (2019-04-01T17:57:52Z)
+ # TODO: Remove once https://github.com/git-lfs/git-lfs/commit/cd83f4224ce02398bdbf8b05830d92220d9b8e01 lands in a release.
+ url = "https://github.com/git-lfs/git-lfs/commit/cd83f4224ce02398bdbf8b05830d92220d9b8e01.patch";
+ sha256 = "17nmnlkknglqhzrky5caskbscrjp7kp9b5mfqznh1jx2hbxzlpbj";
+ })
+ ];
+
+ subPackages = [ "." ];
+
preBuild = ''
- pushd go/src/github.com/git-lfs/git-lfs
go generate ./commands
- popd
- '';
-
- postInstall = ''
- rm -v $bin/bin/{man,script,cmd}
'';
meta = with stdenv.lib; {