diff --git a/pkgs/development/tools/analysis/rizin/default.nix b/pkgs/development/tools/analysis/rizin/default.nix index 35e6374b623d..2d6eeb289d6f 100644 --- a/pkgs/development/tools/analysis/rizin/default.nix +++ b/pkgs/development/tools/analysis/rizin/default.nix @@ -24,6 +24,7 @@ capstone, tree-sitter, zstd, + binutils, }: let @@ -107,6 +108,7 @@ let xxHash xz zstd + binutils ]; postPatch = '' @@ -115,6 +117,11 @@ let # https://github.com/mesonbuild/meson/pull/9904 substituteInPlace meson.build \ --replace "import('python').find_installation()" "find_program('python3')" + + substituteInPlace \ + librz/arch/p/asm/asm_x86_as.c \ + librz/arch/p/asm/asm_ppc_as.c \ + --replace '"as"' '"${binutils}/bin/as"' ''; passthru = rec {