radare2: fix on Darwin after update in #301660 (thanks @reckenrode)

This commit is contained in:
Michael Raskin 2024-04-06 16:12:14 +02:00
parent 352e1abee7
commit 3dc81e7578
1 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,12 @@ stdenv.mkDerivation rec {
"-Dr2_gittap=${version}"
];
# TODO: remove when upstream fixes the issue
# https://github.com/radareorg/radare2/issues/22793
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [
"-DTHREAD_CONVERT_THREAD_STATE_TO_SELF=1"
];
enableParallelBuilding = true;
depsBuildBuild = [ buildPackages.stdenv.cc ];