docker-machine-kvm2: use makefile

This commit is contained in:
zowoq 2020-04-28 18:27:51 +10:00
parent 3d396266ae
commit 170bf218c6

View File

@ -1,22 +1,23 @@
{ lib, buildGoModule, minikube }:
buildGoModule rec {
inherit (minikube) version src nativeBuildInputs buildInputs goPackagePath preBuild;
inherit (minikube) version src nativeBuildInputs buildInputs modSha256 commit;
pname = "docker-machine-kvm2";
subPackages = [ "cmd/drivers/kvm" ];
modSha256 = minikube.go-modules.outputHash;
buildPhase = ''
make docker-machine-driver-kvm2 COMMIT=${commit}
'';
postInstall = ''
mv $out/bin/kvm $out/bin/docker-machine-driver-kvm2
installPhase = ''
install out/docker-machine-driver-kvm2 -Dt $out/bin
'';
meta = with lib; {
homepage = "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md";
homepage = "https://minikube.sigs.k8s.io/docs/drivers/kvm2";
description = "KVM2 driver for docker-machine.";
license = licenses.asl20;
maintainers = with maintainers; [ tadfisher atkinschang ];
platforms = platforms.unix;
platforms = platforms.linux;
};
}