Merge pull request #67242 from thefloweringash/minikube-plugins
minikube: restore kvm2 plugin
This commit is contained in:
commit
8d31c947f5
@ -1,6 +1,6 @@
|
||||
{ stdenv, buildGoPackage, libvirt, pkgconfig, minikube }:
|
||||
{ stdenv, buildGoModule, libvirt, pkgconfig, minikube }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "docker-machine-kvm2";
|
||||
name = "${pname}-${version}";
|
||||
version = minikube.version;
|
||||
@ -10,6 +10,8 @@ buildGoPackage rec {
|
||||
|
||||
src = minikube.src;
|
||||
|
||||
modSha256 = minikube.go-modules.outputHash;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ libvirt ];
|
||||
|
||||
@ -18,7 +20,7 @@ buildGoPackage rec {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mv $bin/bin/kvm $bin/bin/docker-machine-driver-kvm2
|
||||
mv $out/bin/kvm $out/bin/docker-machine-driver-kvm2
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
@ -49,6 +49,7 @@ in buildGoModule rec {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/${pname} --prefix PATH : $out/bin:${stdenv.lib.makeBinPath binPath}
|
||||
mkdir -p $out/share/bash-completion/completions/
|
||||
MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTKUBECTLDOWNLOADMSG=false HOME=$PWD $out/bin/minikube completion bash > $out/share/bash-completion/completions/minikube
|
||||
mkdir -p $out/share/zsh/site-functions/
|
||||
|
Loading…
Reference in New Issue
Block a user