Skip to content

Commit

Permalink
minio: support building on darwin
Browse files Browse the repository at this point in the history
Modified build command and flags to allow successful build on Darwin
systems. Based on flags in GitHub issue from minio project [0]

[0]: minio/minio#10188 (comment)
  • Loading branch information
afontaine committed Sep 3, 2020
1 parent 9fd106a commit 5e1cb57
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/servers/minio/default.nix
Expand Up @@ -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; {
Expand Down

0 comments on commit 5e1cb57

Please sign in to comment.