Skip to content

Commit

Permalink
minio-client: 2020-04-25T00-43-23Z -> 2020-08-08T02-33-58Z
Browse files Browse the repository at this point in the history
  • Loading branch information
bachp authored and alyssais committed Aug 16, 2020
1 parent 577ad48 commit b887d5b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/tools/networking/minio-client/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit b887d5b

Please sign in to comment.