Nixpkgs: Minikube 0.22.1 (and greater?) doesn't build on Darwin due to hyperkit

Created on 5 Oct 2017  Â·  9Comments  Â·  Source: NixOS/nixpkgs

Issue description

As the title says, building minikube from source fails on High Sierra (OSX 10.13) due to not being able to find the vmnet/vmnet.h header

You'll get output such as

# k8s.io/minikube/vendor/github.com/zchee/go-vmnet
go/src/k8s.io/minikube/vendor/github.com/zchee/go-vmnet/vmnet.go:9:10: fatal error: 'vmnet/vmnet.h' file not found
#include <vmnet/vmnet.h>
         ^~~~~~~~~~~~~~~
1 error generated.
...
ld: warning: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation, ignoring unexpected dylib file
...
builder for ‘/nix/store/7xwsx17gcabbm8zsi60b03smknjfg4j2-minikube-0.22.2.drv’ failed with exit code 1
error: build of ‘/nix/store/7xwsx17gcabbm8zsi60b03smknjfg4j2-minikube-0.22.2.drv’ failed

### Steps to reproduce

Build minikube 0.22.2


## Technical details
  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
  • Nix version: (run nix-env --version)
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
  • Sandboxing enabled: (run grep build-use-sandbox /etc/nix/nix.conf)
darwin

Most helpful comment

yep, works for meâ„¢

All 9 comments

Those headers aren't supposed to be impure so this is weird, but I guess they're semi-impure so that could explain it.

I probably won't have time to take a look for a bit, but it seems like as long as Hydra's builders stay on pre-10.13 this shouldn't cause most users too many issues unless they're on a revision that Hydra hasn't built yet.

i am currently working on an experiment to package zchee/docker-machine-driver-xhyve and run in the same issue on 10.12.6. Maybe i can fix this issue.

You shouldn't need that driver anymore in the latest minikube, since they pulled xhyve support into the main codebase

i am experimenting to use the driver as an independent alternative to run my docker-daemon and get rid of docker-for-mac. e.g. Setting up Docker on macOS

Ah okay 😄

Just ran into this issue on OSX 10.12.6.

Looks correct, I'll check quickly

yep, works for meâ„¢

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ob7 picture ob7  Â·  3Comments

edolstra picture edolstra  Â·  3Comments

ghost picture ghost  Â·  3Comments

teto picture teto  Â·  3Comments

matthiasbeyer picture matthiasbeyer  Â·  3Comments