tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
docker-machine-xhyve: init darwin support
Periklis Tsirakidis
8 years ago
73c91529
0f0ffa70
+51
3 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
cluster
docker-machine
xhyve-deps.nix
xhyve.nix
top-level
all-packages.nix
+21
pkgs/applications/networking/cluster/docker-machine/xhyve-deps.nix
···
1
1
+
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
2
2
+
[
3
3
+
{
4
4
+
goPackagePath = "github.com/docker/machine";
5
5
+
fetch = {
6
6
+
type = "git";
7
7
+
url = "https://github.com/docker/machine";
8
8
+
rev = "5b274558ea6ca822c06dd407a4e774a0105c3f60";
9
9
+
sha256 = "1wdq9h4bx7awgclh969gvmcnl9jvgv7ldfklnclh5iv47mi7q22d";
10
10
+
};
11
11
+
}
12
12
+
{
13
13
+
goPackagePath = "github.com/zchee/libhyperkit";
14
14
+
fetch = {
15
15
+
type = "git";
16
16
+
url = "https://github.com/zchee/libhyperkit";
17
17
+
rev = "1a19a7693fac32b46ec6cdd22da6fbec974447fc";
18
18
+
sha256 = "119f5gcl24znwnmi837jk667asd3lirx32jldpd4mbyb3sm9nz24";
19
19
+
};
20
20
+
}
21
21
+
]
+27
pkgs/applications/networking/cluster/docker-machine/xhyve.nix
···
1
1
+
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, Hypervisor, vmnet }:
2
2
+
3
3
+
buildGoPackage rec {
4
4
+
name = "docker-machine-xhyve-${version}";
5
5
+
version = "0.3.3";
6
6
+
7
7
+
goPackagePath = "github.com/zchee/docker-machine-driver-xhyve";
8
8
+
goDeps = ./xhyve-deps.nix;
9
9
+
10
10
+
src = fetchFromGitHub {
11
11
+
rev = "v${version}";
12
12
+
owner = "zchee";
13
13
+
repo = "docker-machine-driver-xhyve";
14
14
+
sha256 = "0rj6pyqp4yv4j28bglqjs95rip5i77vv8mrkmqv1rxrsl3i8aqqy";
15
15
+
};
16
16
+
17
17
+
nativeBuildInputs = [ pkgconfig ];
18
18
+
buildInputs = [ Hypervisor vmnet ];
19
19
+
20
20
+
meta = with stdenv.lib; {
21
21
+
homepage = https://github.com/zchee/docker-machine-driver-xhyve;
22
22
+
description = "Xhyve driver for docker-machine.";
23
23
+
license = licenses.bsd3;
24
24
+
maintainers = with maintainers; [ periklis ];
25
25
+
platforms = platforms.darwin;
26
26
+
};
27
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
14253
+
docker-machine-xhyve = callPackage ../applications/networking/cluster/docker-machine/xhyve.nix {
14254
14254
+
inherit (darwin.apple_sdk.frameworks) Hypervisor vmnet;
14255
14255
+
};
14253
14256
14254
14257
docker-distribution = callPackage ../applications/virtualization/docker-distribution { };
14255
14258