about summary refs log tree commit diff
path: root/pkgs/tools/networking/minio-client
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2020-08-10 22:25:41 +0200
committerAlyssa Ross <hi@alyssa.is>2020-08-16 13:13:28 +0000
commitb887d5b74bab9c9276a5ca44fa23795d0462f754 (patch)
tree30322c00500e8e93e55ea7ed649c3cd4ab49ef3f /pkgs/tools/networking/minio-client
parent577ad48f83b40a7bc7150c735e5da20844ddbac0 (diff)
minio-client: 2020-04-25T00-43-23Z -> 2020-08-08T02-33-58Z
Diffstat (limited to 'pkgs/tools/networking/minio-client')
-rw-r--r--pkgs/tools/networking/minio-client/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/tools/networking/minio-client/default.nix b/pkgs/tools/networking/minio-client/default.nix
index 20b7c9d3f8b2c..505ecc4c2224c 100644
--- a/pkgs/tools/networking/minio-client/default.nix
+++ b/pkgs/tools/networking/minio-client/default.nix
@@ -2,22 +2,26 @@
 
 buildGoModule rec {
   pname = "minio-client";
-  version = "2020-04-25T00-43-23Z";
+  version = "2020-08-08T02-33-58Z";
 
   src = fetchFromGitHub {
     owner = "minio";
     repo = "mc";
     rev = "RELEASE.${version}";
-    sha256 = "0ff2fyr3787zp0lpgbph064am33py2wzjikzmxd3zwp3y0dic770";
+    sha256 = "15bkl3q0jidrwy04l0cdmha43r9wlxmlqkhmwz98b57rjrq6grql";
   };
 
-  vendorSha256 = "0nfcxz47v5gl0wih59xarhz82nd8wy61c3ijvg2v08ipk29zivcc";
+  vendorSha256 = "1fsx8zl2qkyf1gx3s6giccd86xawx9d1h4jdnyn1m36clsq9jkpc";
 
   doCheck = false;
 
   subPackages = [ "." ];
 
-  buildFlagsArray = [ "-ldflags=-s -w -X github.com/minio/mc/cmd.Version=${version}" ];
+  patchPhase = ''
+    sed -i "s/Version.*/Version = \"${version}\"/g" cmd/build-constants.go
+    sed -i "s/ReleaseTag.*/ReleaseTag = \"RELEASE.${version}\"/g" cmd/build-constants.go
+    sed -i "s/CommitID.*/CommitID = \"${src.rev}\"/g" cmd/build-constants.go
+  '';
 
   meta = with stdenv.lib; {
     homepage = "https://github.com/minio/mc";