minikube: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:17:00 -05:00
parent 074703a553
commit 4e9e877ca3
2 changed files with 8 additions and 2 deletions

View file

@ -6,6 +6,10 @@
, go-bindata
, libvirt
, vmnet
, xpc
, libobjc
, Foundation
, IOKit
}:
buildGoModule rec {
@ -27,7 +31,7 @@ buildGoModule rec {
nativeBuildInputs = [ pkgconfig go-bindata makeWrapper ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ libvirt ]
++ stdenv.lib.optionals stdenv.isDarwin [ vmnet ];
++ stdenv.lib.optionals stdenv.isDarwin [ vmnet xpc libobjc IOKit Foundation ];
preBuild = ''
go-bindata -nomemcopy -o pkg/minikube/assets/assets.go -pkg assets deploy/addons/...

View file

@ -20680,7 +20680,9 @@ in
minidjvu = callPackage ../applications/graphics/minidjvu { };
minikube = callPackage ../applications/networking/cluster/minikube {
inherit (darwin.apple_sdk.frameworks) vmnet;
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.libs) xpc;
inherit (darwin.apple_sdk.frameworks) vmnet Foundation IOKit;
};
minishift = callPackage ../applications/networking/cluster/minishift { };