3
0
Fork 0
forked from mirrors/nixpkgs

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:
Michael Roitzsch 2019-12-10 12:00:39 +01:00
parent 475bf6d2a5
commit 08ecf22b03
2 changed files with 9 additions and 1 deletions

View file

@ -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";

View file

@ -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 { };