Merge pull request #94873 from afontaine/minio-build-on-darwin

minio: support building on darwin
This commit is contained in:
Anderson Torres 2020-09-25 00:24:53 -03:00 committed by GitHub
commit 67d2fd6e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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; {