diff options
author | Tad Fisher <tadfisher@gmail.com> | 2018-06-05 14:06:56 -0700 |
---|---|---|
committer | Tad Fisher <tadfisher@gmail.com> | 2018-06-05 14:06:56 -0700 |
commit | 0ef083c020f05ae317caede78ad8862fb863a54e (patch) | |
tree | ec3b9a5d3e926a57c34b8e8fcdc92b700f71fde6 /pkgs/applications/networking/cluster/docker-machine | |
parent | 5467f0ed7add4713f7a3802ef2a2865adeb0e08c (diff) | |
download | nixpkgs-0ef083c020f05ae317caede78ad8862fb863a54e.tar nixpkgs-0ef083c020f05ae317caede78ad8862fb863a54e.tar.gz nixpkgs-0ef083c020f05ae317caede78ad8862fb863a54e.tar.bz2 nixpkgs-0ef083c020f05ae317caede78ad8862fb863a54e.tar.lz nixpkgs-0ef083c020f05ae317caede78ad8862fb863a54e.tar.xz nixpkgs-0ef083c020f05ae317caede78ad8862fb863a54e.tar.zst nixpkgs-0ef083c020f05ae317caede78ad8862fb863a54e.zip |
docker-machine-kvm2: init at 0.27.0
Diffstat (limited to 'pkgs/applications/networking/cluster/docker-machine')
-rw-r--r-- | pkgs/applications/networking/cluster/docker-machine/kvm2.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/docker-machine/kvm2.nix b/pkgs/applications/networking/cluster/docker-machine/kvm2.nix new file mode 100644 index 00000000000..fd067936efd --- /dev/null +++ b/pkgs/applications/networking/cluster/docker-machine/kvm2.nix @@ -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; + }; +} |