Merge pull request #123218 from 06kellyjac/minio

minio: 2021-05-11T23-27-41Z -> 2021-05-16T05-32-34Z
This commit is contained in:
Pascal Bach 2021-05-16 13:50:48 +02:00 committed by GitHub
commit 8b9dc09744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,42 +15,35 @@ let
in
buildGoModule rec {
pname = "minio";
version = "2021-05-11T23-27-41Z";
version = "2021-05-16T05-32-34Z";
src = fetchFromGitHub {
owner = "minio";
repo = "minio";
rev = "RELEASE.${version}";
sha256 = "0yljq4lm9maz73ha9m38ljv977999p57rfkzybgzbjjrijgszm2b";
sha256 = "sha256-+zanqJMYNg/1c20cMm+bqVsW8VquucxEK5NiFAqOmS0=";
};
vendorSha256 = "1dm8nbg86zvxakc7h4dafqb035sc5x6viz8p409l22l695qrp6bi";
vendorSha256 = "sha256-5aDD68nugFyWsySLEj7LXAdtFXFKWnqfz+5zF5wC2qw=";
doCheck = false;
subPackages = [ "." ];
postPatch = ''
sed -i "s/Version.*/Version = \"${versionToTimestamp 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
'';
postConfigure = ''
export CGO_ENABLED=0
'';
buildFlagsArray = [
"-tags=kqueue"
];
preBuild = let t = "github.com/minio/minio/cmd"; in
''
export CGO_ENABLED=0
buildFlagsArray+=("-tags" "kqueue" "-ldflags" "-s -w -X ${t}.Version=${versionToTimestamp version} -X ${t}.ReleaseTag=RELEASE.${version} -X ${t}.CommitID=${src.rev}")
'';
passthru.tests.minio = nixosTests.minio;
meta = with lib; {
homepage = "https://www.minio.io/";
description = "An S3-compatible object storage server";
changelog = "https://github.com/minio/minio/releases/tag/RELEASE.${version}";
maintainers = with maintainers; [ eelco bachp ];
platforms = platforms.unix;
license = licenses.asl20;
license = licenses.agpl3Plus;
};
}