minikube: fix build on Darwin

Fixes #30133
This commit is contained in:
Dan Peebles 2017-11-19 10:17:40 -05:00
parent 528bf1ba0f
commit a4d7b6ad91
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, buildGoPackage, fetchFromGitHub, fetchurl, go-bindata, kubernetes, libvirt, qemu, docker-machine-kvm, { stdenv, buildGoPackage, fetchFromGitHub, fetchurl, go-bindata, kubernetes, libvirt, qemu, docker-machine-kvm,
gpgme, makeWrapper }: gpgme, makeWrapper, hostPlatform, vmnet }:
let let
binPath = [ kubernetes ] binPath = [ kubernetes ]
@ -36,7 +36,7 @@ in buildGoPackage rec {
# kubernetes is here only to shut up a loud warning when generating the completions below. minikube checks very eagerly # kubernetes is here only to shut up a loud warning when generating the completions below. minikube checks very eagerly
# that kubectl is on the $PATH, even if it doesn't use it at all to generate the completions # that kubectl is on the $PATH, even if it doesn't use it at all to generate the completions
buildInputs = [ go-bindata makeWrapper kubernetes gpgme ]; buildInputs = [ go-bindata makeWrapper kubernetes gpgme ] ++ stdenv.lib.optional hostPlatform.isDarwin vmnet;
subPackages = [ "cmd/minikube" ]; subPackages = [ "cmd/minikube" ];
preBuild = '' preBuild = ''

View File

@ -15663,7 +15663,9 @@ with pkgs;
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;
};
minitube = callPackage ../applications/video/minitube { }; minitube = callPackage ../applications/video/minitube { };