summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/docker-machine
diff options
context:
space:
mode:
authorPeriklis Tsirakidis <periklis.tsirakidis@holidaycheck.com>2017-11-20 20:06:29 +0100
committerPeriklis Tsirakidis <periklis.tsirakidis@holidaycheck.com>2017-11-20 20:07:00 +0100
commit73c915296f8f358a4dab6d97c01225c9d2ed77b8 (patch)
tree7221878972eda8e151af43267ecc71c36b340949 /pkgs/applications/networking/cluster/docker-machine
parent0f0ffa70a0221a9b19fcb95d53aa86475069087f (diff)
downloadnixpkgs-73c915296f8f358a4dab6d97c01225c9d2ed77b8.tar
nixpkgs-73c915296f8f358a4dab6d97c01225c9d2ed77b8.tar.gz
nixpkgs-73c915296f8f358a4dab6d97c01225c9d2ed77b8.tar.bz2
nixpkgs-73c915296f8f358a4dab6d97c01225c9d2ed77b8.tar.lz
nixpkgs-73c915296f8f358a4dab6d97c01225c9d2ed77b8.tar.xz
nixpkgs-73c915296f8f358a4dab6d97c01225c9d2ed77b8.tar.zst
nixpkgs-73c915296f8f358a4dab6d97c01225c9d2ed77b8.zip
docker-machine-xhyve: init darwin support
Diffstat (limited to 'pkgs/applications/networking/cluster/docker-machine')
-rw-r--r--pkgs/applications/networking/cluster/docker-machine/xhyve-deps.nix21
-rw-r--r--pkgs/applications/networking/cluster/docker-machine/xhyve.nix27
2 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/docker-machine/xhyve-deps.nix b/pkgs/applications/networking/cluster/docker-machine/xhyve-deps.nix
new file mode 100644
index 00000000000..99cb7b98f5c
--- /dev/null
+++ b/pkgs/applications/networking/cluster/docker-machine/xhyve-deps.nix
@@ -0,0 +1,21 @@
+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
+[
+  {
+    goPackagePath = "github.com/docker/machine";
+    fetch = {
+      type = "git";
+      url = "https://github.com/docker/machine";
+      rev = "5b274558ea6ca822c06dd407a4e774a0105c3f60";
+      sha256 = "1wdq9h4bx7awgclh969gvmcnl9jvgv7ldfklnclh5iv47mi7q22d";
+    };
+  }
+  {
+    goPackagePath = "github.com/zchee/libhyperkit";
+    fetch = {
+      type = "git";
+      url = "https://github.com/zchee/libhyperkit";
+      rev = "1a19a7693fac32b46ec6cdd22da6fbec974447fc";
+      sha256 = "119f5gcl24znwnmi837jk667asd3lirx32jldpd4mbyb3sm9nz24";
+    };
+  }
+]
diff --git a/pkgs/applications/networking/cluster/docker-machine/xhyve.nix b/pkgs/applications/networking/cluster/docker-machine/xhyve.nix
new file mode 100644
index 00000000000..6b0440eb84a
--- /dev/null
+++ b/pkgs/applications/networking/cluster/docker-machine/xhyve.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, Hypervisor, vmnet }:
+
+buildGoPackage rec {
+  name = "docker-machine-xhyve-${version}";
+  version = "0.3.3";
+
+  goPackagePath = "github.com/zchee/docker-machine-driver-xhyve";
+  goDeps = ./xhyve-deps.nix;
+
+  src = fetchFromGitHub {
+    rev    = "v${version}";
+    owner  = "zchee";
+    repo   = "docker-machine-driver-xhyve";
+    sha256 = "0rj6pyqp4yv4j28bglqjs95rip5i77vv8mrkmqv1rxrsl3i8aqqy";
+  };
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ Hypervisor vmnet ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/zchee/docker-machine-driver-xhyve;
+    description = "Xhyve driver for docker-machine.";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ periklis ];
+    platforms = platforms.darwin;
+  };
+}