minio: support building on darwin

Modified build command and flags to allow successful build on Darwin
systems. Based on flags in GitHub issue from minio project [0]

[0]: https://github.com/minio/minio/issues/10188#issuecomment-668223207
gstqt5
Andrew Fontaine 2020-08-07 11:39:45 -04:00
parent 9fd106a33c
commit 5e1cb57bf8
No known key found for this signature in database
GPG Key ID: 0EE10A962DE0BA2C
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@ buildGoModule rec {
sed -i "s/CommitID.*/CommitID = \"${src.rev}\"/g" cmd/build-constants.go
'';
postConfigure = ''
export CGO_ENABLED=0
'';
buildFlagsArray = [
"-tags=kqueue"
"-trimpath"
];
passthru.tests.minio = nixosTests.minio;
meta = with stdenv.lib; {