Skip to content

Commit 49e3190

Browse files
committedDec 20, 2016
Revert "xhyve: update and fix to use our Hypervisor framework"
This reverts commit f3b65f6.
1 parent 6b4a41a commit 49e3190

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed
 

‎pkgs/applications/virtualization/xhyve/default.nix

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
1-
{ stdenv, lib, fetchurl, Hypervisor, vmnet, xpc, libobjc }:
1+
{ stdenv, lib, fetchurl }:
22

33
stdenv.mkDerivation rec {
4-
name = "xhyve-${version}";
5-
version = "1f1dbe305";
4+
name = "xhyve-${version}";
5+
version = "0.2.0";
66

77
src = fetchurl {
8-
url = "https://github.com/mist64/xhyve/archive/1f1dbe3059904f885e4ab2b3328f4bb350ea5c37.tar.gz";
9-
sha256 = "0hfix8yr90szlv2yyqb2rlq5qsrxyam8kg52sly0adja0cpwfjvx";
8+
url = "https://github.com/mist64/xhyve/archive/v${version}.tar.gz";
9+
sha256 = "0g1vknnh88kxc8aaqv3j9wqhq45mm9xxxbn1vcrypj3kk9991hrj";
1010
};
1111

12-
buildInputs = [ Hypervisor vmnet xpc libobjc ];
13-
1412
# Don't use git to determine version
15-
prePatch = ''
16-
substituteInPlace Makefile \
17-
--replace 'shell git describe --abbrev=6 --dirty --always --tags' "$version"
13+
buildFlags = ''
14+
CFLAGS=-DVERSION=\"${version}\"
1815
'';
1916

20-
21-
makeFlags = [ "CFLAGS+=-Wno-shift-sign-overflow" ''CFLAGS+=-DVERSION=\"${version}\"'' ];
22-
2317
installPhase = ''
2418
mkdir -p $out/bin
2519
cp build/xhyve $out/bin

‎pkgs/top-level/all-packages.nix

+1-5
Original file line numberDiff line numberDiff line change
@@ -17657,11 +17657,7 @@ in
1765717657

1765817658
xcftools = callPackage ../tools/graphics/xcftools { };
1765917659

17660-
xhyve = callPackage ../applications/virtualization/xhyve {
17661-
inherit (darwin.apple_sdk.frameworks) Hypervisor vmnet;
17662-
inherit (darwin.apple_sdk.libs) xpc;
17663-
inherit (darwin) libobjc;
17664-
};
17660+
xhyve = callPackage ../applications/virtualization/xhyve { };
1766517661

1766617662
xinput_calibrator = callPackage ../tools/X11/xinput_calibrator { };
1766717663

2 commit comments

Comments
 (2)

bjornfor commented on Dec 20, 2016

@bjornfor
Contributor

Next time, don't forget to explain (in the commit message) why something is reverted.

LnL7 commented on Dec 20, 2016

@LnL7
MemberAuthor

This depends on the apple-sdk update, that one broke a whole bunch of stuff for darwin.
I pinged copumpkin on irc about it. 🙂

Please sign in to comment.