mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
28 lines
663 B
Nix
28 lines
663 B
Nix
{ lib, buildGoModule, minikube }:
|
|
|
|
buildGoModule rec {
|
|
inherit (minikube) version src nativeBuildInputs buildInputs modSha256 commit;
|
|
|
|
pname = "docker-machine-kvm2";
|
|
|
|
postPatch = ''
|
|
sed -i '/GOARCH=$*/d' Makefile
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make docker-machine-driver-kvm2 COMMIT=${commit}
|
|
'';
|
|
|
|
installPhase = ''
|
|
install out/docker-machine-driver-kvm2 -Dt $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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.linux;
|
|
};
|
|
}
|