mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge pull request #41498 from tadfisher/docker-machine-kvm2
docker-machine-kvm2: init at 0.27.0
This commit is contained in:
commit
ddd400baee
36
pkgs/applications/networking/cluster/docker-machine/kvm2.nix
Normal file
36
pkgs/applications/networking/cluster/docker-machine/kvm2.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, libvirt, pkgconfig }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "docker-machine-kvm2";
|
||||
name = "${pname}-${version}";
|
||||
version = "0.27.0";
|
||||
|
||||
goPackagePath = "k8s.io/minikube";
|
||||
subPackages = [ "cmd/drivers/kvm" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubernetes";
|
||||
repo = "minikube";
|
||||
rev = "v${version}";
|
||||
sha256 = "00gj8x5p0vxwy0y0g5nnddmq049h7zxvhb73lb4gii5mghr9mkws";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ libvirt ];
|
||||
|
||||
preBuild = ''
|
||||
export buildFlagsArray=(-ldflags="-X k8s.io/minikube/pkg/drivers/kvm/version.VERSION=v${version}")
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mv $bin/bin/kvm $bin/bin/docker-machine-driver-kvm2
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/kubernetes/minikube/blob/master/docs/drivers.md;
|
||||
description = "KVM2 driver for docker-machine.";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ tadfisher ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
@ -15370,6 +15370,7 @@ with pkgs;
|
||||
|
||||
docker-machine = callPackage ../applications/networking/cluster/docker-machine { };
|
||||
docker-machine-kvm = callPackage ../applications/networking/cluster/docker-machine/kvm.nix { };
|
||||
docker-machine-kvm2 = callPackage ../applications/networking/cluster/docker-machine/kvm2.nix { };
|
||||
docker-machine-xhyve = callPackage ../applications/networking/cluster/docker-machine/xhyve.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Hypervisor vmnet;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user