2016-12-20 15:02:14 +03:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2015-07-05 17:03:01 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-12-20 15:02:14 +03:00
|
|
|
name = "xhyve-${version}";
|
|
|
|
version = "0.2.0";
|
2015-07-05 17:03:01 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-12-20 15:02:14 +03:00
|
|
|
url = "https://github.com/mist64/xhyve/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0g1vknnh88kxc8aaqv3j9wqhq45mm9xxxbn1vcrypj3kk9991hrj";
|
2015-07-05 17:03:01 +03:00
|
|
|
};
|
|
|
|
|
2015-09-17 14:27:12 +03:00
|
|
|
# Don't use git to determine version
|
2016-12-20 15:02:14 +03:00
|
|
|
buildFlags = ''
|
|
|
|
CFLAGS=-DVERSION=\"${version}\"
|
2015-09-17 14:27:12 +03:00
|
|
|
'';
|
2015-07-05 17:03:01 +03: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 16:32:50 +03:00
|
|
|
maintainers = [ lib.maintainers.lnl7 ];
|
2015-07-05 17:03:01 +03:00
|
|
|
platforms = lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|