nixpkgs/pkgs/applications/networking/cluster/minikube/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2019-08-13 18:02:34 +00:00
, buildGoModule
, fetchFromGitHub
2020-04-28 08:27:52 +00:00
, installShellFiles
, pkg-config
, which
2019-08-13 18:02:34 +00:00
, libvirt
, vmnet
, makeWrapper
2018-06-06 21:38:05 +00:00
}:
2019-08-13 18:02:34 +00:00
buildGoModule rec {
2020-04-28 08:27:52 +00:00
pname = "minikube";
2022-11-06 03:08:40 +00:00
version = "1.28.0";
2020-04-28 08:27:52 +00:00
2022-11-06 03:08:40 +00:00
vendorSha256 = "sha256-CyIpzwSYHbv96UoQ/SZXOl6v3xn3pvT39ZO+RpVHU5I=";
doCheck = false;
src = fetchFromGitHub {
2020-04-28 08:27:52 +00:00
owner = "kubernetes";
repo = "minikube";
rev = "v${version}";
2022-11-06 03:08:40 +00:00
sha256 = "sha256-Gn/RXZedID0sh5qTcBNg7GeLtI1JZYKXEWg2RZGXlDw=";
2016-12-06 01:23:59 +00:00
};
nativeBuildInputs = [ installShellFiles pkg-config which makeWrapper ];
2017-03-05 03:23:44 +00:00
2020-04-28 08:27:52 +00:00
buildInputs = if stdenv.isDarwin then [ vmnet ] else if stdenv.isLinux then [ libvirt ] else null;
2020-04-28 08:27:52 +00:00
buildPhase = ''
2020-07-12 09:20:00 +00:00
make COMMIT=${src.rev}
'';
2020-04-28 08:27:52 +00:00
installPhase = ''
install out/minikube -Dt $out/bin
wrapProgram $out/bin/minikube --set MINIKUBE_WANTUPDATENOTIFICATION false
2020-04-28 08:27:52 +00:00
export HOME=$PWD
2019-08-13 18:02:34 +00:00
2020-07-12 09:20:00 +00:00
for shell in bash zsh fish; do
2020-04-28 08:27:52 +00:00
$out/bin/minikube completion $shell > minikube.$shell
installShellCompletion minikube.$shell
done
'';
meta = with lib; {
2020-04-28 08:27:52 +00:00
homepage = "https://minikube.sigs.k8s.io";
2016-12-06 01:23:59 +00:00
description = "A tool that makes it easy to run Kubernetes locally";
2020-04-28 08:27:52 +00:00
license = licenses.asl20;
2020-10-10 00:34:52 +00:00
maintainers = with maintainers; [ ebzzry copumpkin vdemeester atkinschang Chili-Man ];
2020-04-28 08:27:52 +00:00
platforms = platforms.unix;
2016-12-06 01:23:59 +00:00
};
}