1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

Merge pull request #67242 from thefloweringash/minikube-plugins

minikube: restore kvm2 plugin
This commit is contained in:
lewo 2019-08-22 20:51:46 +02:00 committed by GitHub
commit 8d31c947f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -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; {

View file

@ -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/