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] a12efe947f
This commit is contained in:
Andrew Childs 2019-08-22 18:26:51 +09:00
parent 8b6b9533ef
commit 9232a335ef

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