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