diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/cluster/minikube')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/cluster/minikube/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/cluster/minikube/default.nix b/nixpkgs/pkgs/applications/networking/cluster/minikube/default.nix new file mode 100644 index 000000000000..ac7a301fe06d --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/cluster/minikube/default.nix @@ -0,0 +1,56 @@ +{ lib +, stdenv +, buildGoModule +, fetchFromGitHub +, go-bindata +, installShellFiles +, pkg-config +, which +, libvirt +, vmnet +}: + +buildGoModule rec { + pname = "minikube"; + version = "1.21.0"; + + vendorSha256 = "sha256-3G9QO5OMnMkMCsGIze/E9bvx6fvlXtOqiv8lGTkLN3s="; + + doCheck = false; + + src = fetchFromGitHub { + owner = "kubernetes"; + repo = "minikube"; + rev = "v${version}"; + sha256 = "sha256-PbCwGPJZvnJCIVK7FYa1gI4aO4sIeh8iQtYOHAQBaZE="; + }; + + nativeBuildInputs = [ go-bindata installShellFiles pkg-config which ]; + + buildInputs = if stdenv.isDarwin then [ vmnet ] else if stdenv.isLinux then [ libvirt ] else null; + + buildPhase = '' + make COMMIT=${src.rev} + ''; + + installPhase = '' + install out/minikube -Dt $out/bin + + export HOME=$PWD + export MINIKUBE_WANTUPDATENOTIFICATION=false + export MINIKUBE_WANTKUBECTLDOWNLOADMSG=false + + for shell in bash zsh fish; do + $out/bin/minikube completion $shell > minikube.$shell + installShellCompletion minikube.$shell + done + ''; + + meta = with lib; { + homepage = "https://minikube.sigs.k8s.io"; + description = "A tool that makes it easy to run Kubernetes locally"; + license = licenses.asl20; + maintainers = with maintainers; [ ebzzry copumpkin vdemeester atkinschang Chili-Man ]; + platforms = platforms.unix; + }; +} |