mirror of
https://github.com/nix-community/linuxkit-nix.git
synced 2024-11-26 03:29:23 +03:00
hyperkit: commit 06c3cf7ec -> 0.20180403
This commit is contained in:
parent
88b2fe35a9
commit
a070a2bfbc
@ -1,18 +1,18 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, Hypervisor, vmnet, xpc, libobjc }:
|
{ stdenv, lib, fetchFromGitHub, Hypervisor, vmnet, xpc, libobjc }:
|
||||||
|
|
||||||
let
|
let
|
||||||
rev = "6f6edf716b893544c9e0ef3032459180560f0333";
|
# Make sure to keep those in sync
|
||||||
|
version = "0.20180403";
|
||||||
|
rev = "06c3cf7ec253534b2d81f61ee3c85c5c9aafa4ee";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "hyperkit-${version}";
|
name = "hyperkit-${version}";
|
||||||
# HyperKit release binary uses 6 characters in the version
|
|
||||||
version = lib.strings.substring 0 6 rev;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "moby";
|
owner = "moby";
|
||||||
repo = "hyperkit";
|
repo = "hyperkit";
|
||||||
inherit rev;
|
inherit rev;
|
||||||
sha256 = "1vpha4dmal3alw76xfvwj7k0qf5gsb5rz821z5j5a3silqjhihcy";
|
sha256 = "0c8fp03b65kk2lnjvg3fbcrnvxryy4f487l5l9r38r3j39aryzc2";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ Hypervisor vmnet xpc libobjc ];
|
buildInputs = [ Hypervisor vmnet xpc libobjc ];
|
||||||
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
|||||||
cp ${./dtrace.h} src/include/xhyve/dtrace.h
|
cp ${./dtrace.h} src/include/xhyve/dtrace.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "CFLAGS+=-Wno-shift-sign-overflow" ''CFLAGS+=-DVERSION=\"${version}\"'' ''CFLAGS+=-DVERSION_SHA1=\"${rev}\"'' ];
|
makeFlags = [ "CFLAGS+=-Wno-shift-sign-overflow" ''CFLAGS+=-DVERSION=\"${version}\"'' ''CFLAGS+=-DVERSION_SHA1=\"${version}\"'' ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp build/hyperkit $out/bin
|
cp build/hyperkit $out/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user