Merge pull request #302111 from 7c6f434c/radare2-darwin

radare2: fix on Darwin after update in #301660 (thanks @reckenrode)
This commit is contained in:
Mario Rodas 2024-04-06 21:29:15 -05:00 committed by GitHub
commit 516855b5bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
"-DTHREAD_CONVERT_THREAD_STATE_TO_SELF=1"
]);
enableParallelBuilding = true;
depsBuildBuild = [ buildPackages.stdenv.cc ];