mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
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:
parent
8b6b9533ef
commit
9232a335ef
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user