minio-client: 2020-04-25T00-43-23Z -> 2020-08-08T02-33-58Z

This commit is contained in:
Pascal Bach 2020-08-10 22:25:41 +02:00 committed by Alyssa Ross
parent 577ad48f83
commit b887d5b74b

View File

@ -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";