docker-machine-xhyve: init darwin support

+51
+21
pkgs/applications/networking/cluster/docker-machine/xhyve-deps.nix
··· 1 + # This file was generated by https://github.com/kamilchm/go2nix v1.2.1 2 + [ 3 + { 4 + goPackagePath = "github.com/docker/machine"; 5 + fetch = { 6 + type = "git"; 7 + url = "https://github.com/docker/machine"; 8 + rev = "5b274558ea6ca822c06dd407a4e774a0105c3f60"; 9 + sha256 = "1wdq9h4bx7awgclh969gvmcnl9jvgv7ldfklnclh5iv47mi7q22d"; 10 + }; 11 + } 12 + { 13 + goPackagePath = "github.com/zchee/libhyperkit"; 14 + fetch = { 15 + type = "git"; 16 + url = "https://github.com/zchee/libhyperkit"; 17 + rev = "1a19a7693fac32b46ec6cdd22da6fbec974447fc"; 18 + sha256 = "119f5gcl24znwnmi837jk667asd3lirx32jldpd4mbyb3sm9nz24"; 19 + }; 20 + } 21 + ]
+27
pkgs/applications/networking/cluster/docker-machine/xhyve.nix
··· 1 + { stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, Hypervisor, vmnet }: 2 + 3 + buildGoPackage rec { 4 + name = "docker-machine-xhyve-${version}"; 5 + version = "0.3.3"; 6 + 7 + goPackagePath = "github.com/zchee/docker-machine-driver-xhyve"; 8 + goDeps = ./xhyve-deps.nix; 9 + 10 + src = fetchFromGitHub { 11 + rev = "v${version}"; 12 + owner = "zchee"; 13 + repo = "docker-machine-driver-xhyve"; 14 + sha256 = "0rj6pyqp4yv4j28bglqjs95rip5i77vv8mrkmqv1rxrsl3i8aqqy"; 15 + }; 16 + 17 + nativeBuildInputs = [ pkgconfig ]; 18 + buildInputs = [ Hypervisor vmnet ]; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = https://github.com/zchee/docker-machine-driver-xhyve; 22 + description = "Xhyve driver for docker-machine."; 23 + license = licenses.bsd3; 24 + maintainers = with maintainers; [ periklis ]; 25 + platforms = platforms.darwin; 26 + }; 27 + }
+3
pkgs/top-level/all-packages.nix
··· 14250 14250 14251 14251 docker-machine = callPackage ../applications/networking/cluster/docker-machine { }; 14252 14252 docker-machine-kvm = callPackage ../applications/networking/cluster/docker-machine/kvm.nix { }; 14253 + docker-machine-xhyve = callPackage ../applications/networking/cluster/docker-machine/xhyve.nix { 14254 + inherit (darwin.apple_sdk.frameworks) Hypervisor vmnet; 14255 + }; 14253 14256 14254 14257 docker-distribution = callPackage ../applications/virtualization/docker-distribution { }; 14255 14258