20 vendorHash = "sha256-gw5Ol7Gp26KyIaiMvwik8FJpABpMT86vpFnZnAJ6hhs=";
24 src = fetchFromGitHub {
28 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"
39 lib.optionalString (withQemu && stdenv.hostPlatform.isLinux) ''
41 pkg/minikube/registry/drvs/qemu2/qemu2.go \
42 --replace "/usr/share/OVMF/OVMF_CODE.fd" "${OVMF.firmware}" \
43 --replace "/usr/share/AAVMF/AAVMF_CODE.fd" "${OVMF.firmware}"
47 nativeBuildInputs = [ installShellFiles pkg-config which makeWrapper ];
49 buildInputs = if stdenv.hostPlatform.isDarwin then [ vmnet ] else if stdenv.hostPlatform.isLinux then [ libvirt ] else null;
52 make COMMIT=${src.rev}
56 install out/minikube -Dt $out/bin
58 wrapProgram $out/bin/minikube --set MINIKUBE_WANTUPDATENOTIFICATION false
61 for shell in bash zsh fish; do
62 $out/bin/minikube completion $shell > minikube.$shell
63 installShellCompletion minikube.$shell
68 homepage = "https://minikube.sigs.k8s.io";
69 description = "Tool that makes it easy to run Kubernetes locally";
70 mainProgram = "minikube";
71 license = licenses.asl20;
72 maintainers = with maintainers; [ ebzzry copumpkin vdemeester atkinschang Chili-Man ];