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 , go-bindata
, libvirt , libvirt
, vmnet , vmnet
, xpc
, libobjc
, Foundation
, IOKit
}: }:
buildGoModule rec { buildGoModule rec {
@ -27,7 +31,7 @@ buildGoModule rec {
nativeBuildInputs = [ pkgconfig go-bindata makeWrapper ]; nativeBuildInputs = [ pkgconfig go-bindata makeWrapper ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ libvirt ] buildInputs = stdenv.lib.optionals stdenv.isLinux [ libvirt ]
++ stdenv.lib.optionals stdenv.isDarwin [ vmnet ]; ++ stdenv.lib.optionals stdenv.isDarwin [ vmnet xpc libobjc IOKit Foundation ];
preBuild = '' preBuild = ''
go-bindata -nomemcopy -o pkg/minikube/assets/assets.go -pkg assets deploy/addons/... 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 { }; minidjvu = callPackage ../applications/graphics/minidjvu { };
minikube = callPackage ../applications/networking/cluster/minikube { 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 { }; minishift = callPackage ../applications/networking/cluster/minishift { };