From 9232a335ef19af4926739335c0617c0f64d751f7 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Thu, 22 Aug 2019 18:26:51 +0900 Subject: [PATCH 1/2] docker-machine-kvm2: update for changes to minikube In "minikube: 1.0.1 -> 1.2.0" [1], the package changed from buildGoPackage to buildGoModule. This package, docker-machine-kvm2, is built from the same sources and must follow the same packaging. [1] a12efe947f90ec816d5a9b5a03922a8eefd476bd --- .../networking/cluster/docker-machine/kvm2.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/docker-machine/kvm2.nix b/pkgs/applications/networking/cluster/docker-machine/kvm2.nix index d8fa1a04507a..b8b9fa035d18 100644 --- a/pkgs/applications/networking/cluster/docker-machine/kvm2.nix +++ b/pkgs/applications/networking/cluster/docker-machine/kvm2.nix @@ -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; { From 90776e1de5b0d61793569ee4d4f5b15c3eca2346 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Thu, 22 Aug 2019 18:29:12 +0900 Subject: [PATCH 2/2] minikube: restore plugins These were dropped in a12efe947f90ec816d5a9b5a03922a8eefd476bd --- pkgs/applications/networking/cluster/minikube/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/cluster/minikube/default.nix b/pkgs/applications/networking/cluster/minikube/default.nix index 8c85370728f5..5637e486ef11 100644 --- a/pkgs/applications/networking/cluster/minikube/default.nix +++ b/pkgs/applications/networking/cluster/minikube/default.nix @@ -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/