about summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-lfs
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-09-21 04:34:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-09-21 04:34:00 -0500
commit9e968db302ebf3b4503a70cf202ba3aebf6d2649 (patch)
tree3be8e7e3f794f9c7501b1fe91df284669567f0a1 /pkgs/applications/version-management/git-lfs
parentd02d88febabc96c83c2cc2e825ec61f36f52d3a3 (diff)
git-lfs: use buildGoPackage
Diffstat (limited to 'pkgs/applications/version-management/git-lfs')
-rw-r--r--pkgs/applications/version-management/git-lfs/default.nix17
1 files changed, 4 insertions, 13 deletions
diff --git a/pkgs/applications/version-management/git-lfs/default.nix b/pkgs/applications/version-management/git-lfs/default.nix
index 261ae3317f2e5..f2d87fd69ddea 100644
--- a/pkgs/applications/version-management/git-lfs/default.nix
+++ b/pkgs/applications/version-management/git-lfs/default.nix
@@ -1,6 +1,6 @@
-{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
+{ stdenv, buildGoPackage, fetchFromGitHub }:
 
-buildGoModule rec {
+buildGoPackage rec {
   pname = "git-lfs";
   version = "2.8.0";
 
@@ -11,21 +11,12 @@ buildGoModule rec {
     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";
-    })
-  ];
+  goPackagePath = "github.com/git-lfs/git-lfs";
 
   subPackages = [ "." ];
 
   preBuild = ''
+    cd go/src/${goPackagePath}
     go generate ./commands
   '';