mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
docker-machine-kvm2: use makefile
This commit is contained in:
parent
3d396266ae
commit
170bf218c6
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user