From b32277dad0539f2a71e4eb0d6906be83d7114829 Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Sun, 19 Nov 2017 16:08:08 +0100 Subject: [PATCH] minikube: Add vmnet as buildInput on darwin This should fix https://github.com/NixOS/nixpkgs/issues/30133. --- pkgs/applications/networking/cluster/minikube/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/minikube/default.nix b/pkgs/applications/networking/cluster/minikube/default.nix index 00ee3a3771eb4..5dbe3506a2344 100644 --- a/pkgs/applications/networking/cluster/minikube/default.nix +++ b/pkgs/applications/networking/cluster/minikube/default.nix @@ -1,4 +1,5 @@ { stdenv, buildGoPackage, fetchFromGitHub, fetchurl, go-bindata, kubernetes, libvirt, qemu, docker-machine-kvm, + vmnet, gpgme, makeWrapper }: let @@ -36,7 +37,8 @@ in buildGoPackage rec { # 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 - buildInputs = [ go-bindata makeWrapper kubernetes gpgme ]; + buildInputs = [ go-bindata makeWrapper kubernetes gpgme ] + ++ stdenv.lib.optionals stdenv.isDarwin [ vmnet ]; subPackages = [ "cmd/minikube" ]; preBuild = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 64c99d792749c..17ef622b3b6d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15661,7 +15661,9 @@ with pkgs; 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 { };