docker-machine-xhyve: support lib9p shared file system
The lib9p library for host-guest file sharing in xhyve needs to be built separately.
This commit is contained in:
parent
475bf6d2a5
commit
08ecf22b03
2 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, Hypervisor, vmnet }:
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, cctools, Hypervisor, vmnet }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "docker-machine-xhyve";
|
||||
|
@ -6,6 +6,13 @@ buildGoPackage rec {
|
|||
|
||||
goPackagePath = "github.com/zchee/docker-machine-driver-xhyve";
|
||||
|
||||
preBuild = ''
|
||||
make -C go/src/${goPackagePath} CC=${stdenv.cc}/bin/cc LIBTOOL=${cctools}/bin/libtool GIT_CMD=: lib9p
|
||||
export CGO_CFLAGS=-I$(pwd)/go/src/${goPackagePath}/vendor/github.com/jceel/lib9p
|
||||
export CGO_LDFLAGS=$(pwd)/go/src/${goPackagePath}/vendor/build/lib9p/lib9p.a
|
||||
'';
|
||||
buildFlags = "--tags lib9p";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "machine-drivers";
|
||||
|
|
|
@ -18373,6 +18373,7 @@ in
|
|||
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;
|
||||
inherit (darwin) cctools;
|
||||
};
|
||||
|
||||
docker-distribution = callPackage ../applications/virtualization/docker/distribution.nix { };
|
||||
|
|
Loading…
Reference in a new issue