diff options
author | Nick Novitski <nick@expo.io> | 2018-05-07 19:38:29 -0700 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2018-05-28 00:30:00 +0200 |
commit | a797bd6bdab7f7f9b9c1ec7efbd7264d1d7aa24c (patch) | |
tree | 070f180b87cc7926efe14404d08d1253d1c347aa /pkgs/applications/networking/cluster/minikube/default.nix | |
parent | 4e31cf18496b6ebb6adfeb20afc4573c1ec5f2b7 (diff) |
minikube: build hyperkit driver on darwin
Diffstat (limited to 'pkgs/applications/networking/cluster/minikube/default.nix')
-rw-r--r-- | pkgs/applications/networking/cluster/minikube/default.nix | 8 |
1 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 e9dddecc1603e..97bcb1bd1b4da 100644 --- a/pkgs/applications/networking/cluster/minikube/default.nix +++ b/pkgs/applications/networking/cluster/minikube/default.nix @@ -18,7 +18,7 @@ in buildGoPackage rec { }; buildInputs = [ go-bindata makeWrapper gpgme ] ++ stdenv.lib.optional hostPlatform.isDarwin vmnet; - subPackages = [ "cmd/minikube" ]; + subPackages = [ "cmd/minikube" ] ++ stdenv.lib.optional hostPlatform.isDarwin "cmd/drivers/hyperkit"; preBuild = '' pushd go/src/${goPackagePath} >/dev/null @@ -46,7 +46,11 @@ in buildGoPackage rec { MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTKUBECTLDOWNLOADMSG=false HOME=$PWD $bin/bin/minikube completion zsh > $bin/share/zsh/site-functions/_minikube ''; - postFixup = "wrapProgram $bin/bin/${pname} --prefix PATH : ${stdenv.lib.makeBinPath binPath}"; + postFixup = '' + wrapProgram $bin/bin/${pname} --prefix PATH : $bin/bin:${stdenv.lib.makeBinPath binPath} + '' + stdenv.lib.optionalString hostPlatform.isDarwin '' + mv $bin/bin/hyperkit $bin/bin/docker-machine-driver-hyperkit + ''; meta = with stdenv.lib; { homepage = https://github.com/kubernetes/minikube; |