about summary refs log tree commit diff
path: root/pkgs/development/tools/analysis
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2024-04-06 21:29:15 -0500
committerGitHub <noreply@github.com>2024-04-06 21:29:15 -0500
commit516855b5bfebb82d91b6b1433882f165c72c337f (patch)
tree7a6d0c5a2174123304343f4fdfc31b6ec3bda2d9 /pkgs/development/tools/analysis
parentc9f6b6e818630432278c8442a42624ee78ddbff6 (diff)
parente2ae00c7d554a7fe33bbee366da5150db229444f (diff)
Merge pull request #302111 from 7c6f434c/radare2-darwin
radare2: fix on Darwin after update in #301660 (thanks @reckenrode)
Diffstat (limited to 'pkgs/development/tools/analysis')
-rw-r--r--pkgs/development/tools/analysis/radare2/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/radare2/default.nix b/pkgs/development/tools/analysis/radare2/default.nix
index e2852ccaa6d54..61ac7bbfe4640 100644
--- a/pkgs/development/tools/analysis/radare2/default.nix
+++ b/pkgs/development/tools/analysis/radare2/default.nix
@@ -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 ];