21 vendorHash = "sha256-gw5Ol7Gp26KyIaiMvwik8FJpABpMT86vpFnZnAJ6hhs=";
25 src = fetchFromGitHub {
29 sha256 = "sha256-Z7x3MOQUF3a19X4SSiIUfSJ3xl3482eKH700m/9pqcU=";
32 (lib.optionalString (withQemu && stdenv.hostPlatform.isDarwin) ''
34 pkg/minikube/registry/drvs/qemu2/qemu2.go \
35 --replace "/usr/local/opt/qemu/share/qemu" "${qemu}/share/qemu" \
36 --replace "/opt/homebrew/opt/qemu/share/qemu" "${qemu}/share/qemu"
38 + (lib.optionalString (withQemu && stdenv.hostPlatform.isLinux) ''
40 pkg/minikube/registry/drvs/qemu2/qemu2.go \
41 --replace "/usr/share/OVMF/OVMF_CODE.fd" "${OVMF.firmware}" \
42 --replace "/usr/share/AAVMF/AAVMF_CODE.fd" "${OVMF.firmware}"
53 if stdenv.hostPlatform.isDarwin then
55 else if stdenv.hostPlatform.isLinux then
61 make COMMIT=${src.rev}
65 install out/minikube -Dt $out/bin
67 wrapProgram $out/bin/minikube --set MINIKUBE_WANTUPDATENOTIFICATION false
70 for shell in bash zsh fish; do
71 $out/bin/minikube completion $shell > minikube.$shell
72 installShellCompletion minikube.$shell
77 homepage = "https://minikube.sigs.k8s.io";
78 description = "Tool that makes it easy to run Kubernetes locally";
79 mainProgram = "minikube";
80 license = licenses.asl20;
81 maintainers = with maintainers; [