Merge pull request #123218 from 06kellyjac/minio
minio: 2021-05-11T23-27-41Z -> 2021-05-16T05-32-34Z
This commit is contained in:
commit
8b9dc09744
@ -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
|
export CGO_ENABLED=0
|
||||||
sed -i "s/CommitID.*/CommitID = \"${src.rev}\"/g" cmd/build-constants.go
|
buildFlagsArray+=("-tags" "kqueue" "-ldflags" "-s -w -X ${t}.Version=${versionToTimestamp version} -X ${t}.ReleaseTag=RELEASE.${version} -X ${t}.CommitID=${src.rev}")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postConfigure = ''
|
|
||||||
export CGO_ENABLED=0
|
|
||||||
'';
|
|
||||||
|
|
||||||
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user