2019-08-13 20:02:34 +02:00
|
|
|
{ lib, buildGoModule, minikube }:
|
2018-06-05 23:06:56 +02:00
|
|
|
|
2019-08-22 11:26:51 +02:00
|
|
|
buildGoModule rec {
|
2020-08-04 02:26:27 +02:00
|
|
|
inherit (minikube) version src nativeBuildInputs buildInputs vendorSha256 doCheck;
|
2018-06-05 23:06:56 +02:00
|
|
|
|
2019-08-13 20:02:34 +02:00
|
|
|
pname = "docker-machine-kvm2";
|
2018-06-05 23:06:56 +02:00
|
|
|
|
2020-04-30 01:39:32 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/GOARCH=$*/d' Makefile
|
|
|
|
'';
|
|
|
|
|
2020-04-28 10:27:51 +02:00
|
|
|
buildPhase = ''
|
2020-07-12 11:20:00 +02:00
|
|
|
make docker-machine-driver-kvm2 COMMIT=${src.rev}
|
2020-04-28 10:27:51 +02:00
|
|
|
'';
|
2018-06-05 23:06:56 +02:00
|
|
|
|
2020-04-28 10:27:51 +02:00
|
|
|
installPhase = ''
|
|
|
|
install out/docker-machine-driver-kvm2 -Dt $out/bin
|
2018-06-05 23:06:56 +02:00
|
|
|
'';
|
|
|
|
|
2019-08-13 20:02:34 +02:00
|
|
|
meta = with lib; {
|
2020-04-28 10:27:51 +02:00
|
|
|
homepage = "https://minikube.sigs.k8s.io/docs/drivers/kvm2";
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "KVM2 driver for docker-machine";
|
2018-06-05 23:06:56 +02:00
|
|
|
license = licenses.asl20;
|
2019-08-13 20:02:34 +02:00
|
|
|
maintainers = with maintainers; [ tadfisher atkinschang ];
|
2020-04-28 10:27:51 +02:00
|
|
|
platforms = platforms.linux;
|
2018-06-05 23:06:56 +02:00
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|