mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
minikube: fix build on darwin
This commit is contained in:
parent
074703a553
commit
4e9e877ca3
@ -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/...
|
||||||
|
@ -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 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user