minikube: fix build on darwin
This commit is contained in:
parent
074703a553
commit
4e9e877ca3
2 changed files with 8 additions and 2 deletions
|
@ -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/...
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue