2019-08-13 19:02:34 +01:00
|
|
|
{ lib, buildGoModule, minikube }:
|
2018-06-05 22:06:56 +01:00
|
|
|
|
2019-08-22 10:26:51 +01:00
|
|
|
buildGoModule rec {
|
2020-04-28 09:27:51 +01:00
|
|
|
inherit (minikube) version src nativeBuildInputs buildInputs modSha256 commit;
|
2018-06-05 22:06:56 +01:00
|
|
|
|
2019-08-13 19:02:34 +01:00
|
|
|
pname = "docker-machine-kvm2";
|
2018-06-05 22:06:56 +01:00
|
|
|
|
2020-04-28 09:27:51 +01:00
|
|
|
buildPhase = ''
|
|
|
|
make docker-machine-driver-kvm2 COMMIT=${commit}
|
|
|
|
'';
|
2018-06-05 22:06:56 +01:00
|
|
|
|
2020-04-28 09:27:51 +01:00
|
|
|
installPhase = ''
|
|
|
|
install out/docker-machine-driver-kvm2 -Dt $out/bin
|
2018-06-05 22:06:56 +01:00
|
|
|
'';
|
|
|
|
|
2019-08-13 19:02:34 +01:00
|
|
|
meta = with lib; {
|
2020-04-28 09:27:51 +01:00
|
|
|
homepage = "https://minikube.sigs.k8s.io/docs/drivers/kvm2";
|
2018-06-05 22:06:56 +01:00
|
|
|
description = "KVM2 driver for docker-machine.";
|
|
|
|
license = licenses.asl20;
|
2019-08-13 19:02:34 +01:00
|
|
|
maintainers = with maintainers; [ tadfisher atkinschang ];
|
2020-04-28 09:27:51 +01:00
|
|
|
platforms = platforms.linux;
|
2018-06-05 22:06:56 +01:00
|
|
|
};
|
|
|
|
}
|