mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 07:31:19 +00:00
minikube: Add withVfkit parameter
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
libvirt,
|
||||
withQemu ? false,
|
||||
qemu,
|
||||
withVfkit ? false,
|
||||
vfkit,
|
||||
makeWrapper,
|
||||
writableTmpDirAsHomeHook,
|
||||
OVMF,
|
||||
@@ -74,7 +76,9 @@ buildGoModule (finalAttrs: {
|
||||
wrapProgram $out/bin/minikube --set MINIKUBE_WANTUPDATENOTIFICATION false \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath (
|
||||
lib.optionals withQemu [ qemu ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libvirt ]
|
||||
lib.optionals withQemu [ qemu ]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ libvirt ]
|
||||
++ lib.optionals (withVfkit && stdenv.hostPlatform.isDarwin) [ vfkit ]
|
||||
)
|
||||
} \
|
||||
${lib.optionalString stdenv.hostPlatform.isLinux "--prefix LD_LIBRARY_PATH : ${
|
||||
|
||||
Reference in New Issue
Block a user