2015-07-05 16:03:01 +02:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xhyve-${version}";
|
2015-09-17 13:27:12 +02:00
|
|
|
version = "0.2.0";
|
2015-07-05 16:03:01 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mist64/xhyve/archive/v${version}.tar.gz";
|
2015-09-17 13:27:12 +02:00
|
|
|
sha256 = "0g1vknnh88kxc8aaqv3j9wqhq45mm9xxxbn1vcrypj3kk9991hrj";
|
2015-07-05 16:03:01 +02:00
|
|
|
};
|
|
|
|
|
2015-09-17 13:27:12 +02:00
|
|
|
# Don't use git to determine version
|
|
|
|
buildFlags = ''
|
|
|
|
CFLAGS=-DVERSION=\"${version}\"
|
|
|
|
'';
|
2015-07-05 16:03:01 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp build/xhyve $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Lightweight Virtualization on OS X Based on bhyve";
|
|
|
|
homepage = "https://github.com/mist64/xhyve";
|
2015-09-17 15:32:50 +02:00
|
|
|
maintainers = [ lib.maintainers.lnl7 ];
|
2015-07-05 16:03:01 +02:00
|
|
|
platforms = lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|