darwin.dtrace: get rid of darling
This commit is contained in:
parent
f38eca6a7d
commit
a02917d9da
1 changed files with 4 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
{ appleDerivation, xcbuildHook, CoreSymbolication, apple_sdk
|
||||
, xnu, bison, flex, darling, stdenv, fixDarwinDylibNames }:
|
||||
, xnu, bison, flex, stdenv, fixDarwinDylibNames }:
|
||||
|
||||
appleDerivation {
|
||||
nativeBuildInputs = [ xcbuildHook flex bison fixDarwinDylibNames ];
|
||||
buildInputs = [ CoreSymbolication apple_sdk.frameworks.CoreSymbolication darling xnu ];
|
||||
buildInputs = [ CoreSymbolication apple_sdk.frameworks.CoreSymbolication xnu ];
|
||||
# -fcommon: workaround build failure on -fno-common toolchains:
|
||||
# duplicate symbol '_kCSRegionMachHeaderName' in: libproc.o dt_module_apple.o
|
||||
env.NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration -fcommon";
|
||||
|
@ -21,6 +21,8 @@ appleDerivation {
|
|||
--replace /usr/bin/ld ${stdenv.cc.bintools.bintools}/bin/ld \
|
||||
--replace /usr/lib/dtrace/dt_cpp.h $out/include/dt_cpp.h \
|
||||
--replace /usr/lib/dtrace $out/lib/dtrace
|
||||
substituteInPlace libproc/libproc.c \
|
||||
--replace "#include <sandbox/rootless.h>" ""
|
||||
'';
|
||||
|
||||
# hack to handle xcbuild's broken lex handling
|
||||
|
|
Loading…
Reference in a new issue