Merge pull request #123218 from 06kellyjac/minio

minio: 2021-05-11T23-27-41Z -> 2021-05-16T05-32-34Z

authored by

Pascal Bach and committed by
GitHub
8b9dc097 7a1fbc38

+10 -17
+10 -17
pkgs/servers/minio/default.nix
··· 15 15 in 16 16 buildGoModule rec { 17 17 pname = "minio"; 18 - version = "2021-05-11T23-27-41Z"; 18 + version = "2021-05-16T05-32-34Z"; 19 19 20 20 src = fetchFromGitHub { 21 21 owner = "minio"; 22 22 repo = "minio"; 23 23 rev = "RELEASE.${version}"; 24 - sha256 = "0yljq4lm9maz73ha9m38ljv977999p57rfkzybgzbjjrijgszm2b"; 24 + sha256 = "sha256-+zanqJMYNg/1c20cMm+bqVsW8VquucxEK5NiFAqOmS0="; 25 25 }; 26 26 27 - vendorSha256 = "1dm8nbg86zvxakc7h4dafqb035sc5x6viz8p409l22l695qrp6bi"; 27 + vendorSha256 = "sha256-5aDD68nugFyWsySLEj7LXAdtFXFKWnqfz+5zF5wC2qw="; 28 28 29 29 doCheck = false; 30 30 31 31 subPackages = [ "." ]; 32 32 33 - postPatch = '' 34 - sed -i "s/Version.*/Version = \"${versionToTimestamp version}\"/g" cmd/build-constants.go 35 - sed -i "s/ReleaseTag.*/ReleaseTag = \"RELEASE.${version}\"/g" cmd/build-constants.go 36 - sed -i "s/CommitID.*/CommitID = \"${src.rev}\"/g" cmd/build-constants.go 37 - ''; 38 - 39 - postConfigure = '' 40 - export CGO_ENABLED=0 41 - ''; 42 - 43 - buildFlagsArray = [ 44 - "-tags=kqueue" 45 - ]; 33 + preBuild = let t = "github.com/minio/minio/cmd"; in 34 + '' 35 + export CGO_ENABLED=0 36 + buildFlagsArray+=("-tags" "kqueue" "-ldflags" "-s -w -X ${t}.Version=${versionToTimestamp version} -X ${t}.ReleaseTag=RELEASE.${version} -X ${t}.CommitID=${src.rev}") 37 + ''; 46 38 47 39 passthru.tests.minio = nixosTests.minio; 48 40 49 41 meta = with lib; { 50 42 homepage = "https://www.minio.io/"; 51 43 description = "An S3-compatible object storage server"; 44 + changelog = "https://github.com/minio/minio/releases/tag/RELEASE.${version}"; 52 45 maintainers = with maintainers; [ eelco bachp ]; 53 46 platforms = platforms.unix; 54 - license = licenses.asl20; 47 + license = licenses.agpl3Plus; 55 48 }; 56 49 }