24 stdenv.mkDerivation rec {
29 url = "https://github.com/rizinorg/rizin/releases/download/v${version}/rizin-src-v${version}.tar.xz";
30 sha256 = "sha256-Zp2Va5l4IKNuQjzzXUgqqZhJJUuWWM72hERZkS39v7g=";
34 "-Duse_sys_capstone=enabled"
35 "-Duse_sys_magic=enabled"
36 "-Duse_sys_libzip=enabled"
37 "-Duse_sys_zlib=enabled"
38 "-Duse_sys_xxhash=enabled"
39 "-Duse_sys_lz4=enabled"
40 "-Duse_sys_openssl=enabled"
41 "-Duse_sys_tree_sitter=enabled"
47 (python3.withPackages (pp: with pp; [
54 # meson's find_library seems to not use our compiler wrapper if static parameter
55 # is either true/false... We work around by also providing LIBRARY_PATH
58 for b in ${toString (map lib.getLib buildInputs)}; do
59 if [[ -d "$b/lib" ]]; then
60 LIBRARY_PATH="$b/lib''${LIBRARY_PATH:+:}$LIBRARY_PATH"
64 '' + lib.optionalString stdenv.isDarwin ''
65 substituteInPlace binrz/rizin/macos_sign.sh \
66 --replace 'codesign' '# codesign'
86 # find_installation without arguments uses Meson’s Python interpreter,
87 # which does not have any extra modules.
88 # https://github.com/mesonbuild/meson/pull/9904
89 substituteInPlace meson.build \
90 --replace "import('python').find_installation()" "find_program('python3')"
94 description = "UNIX-like reverse engineering framework and command-line toolset.";
95 homepage = "https://rizin.re/";
96 license = lib.licenses.gpl3Plus;
97 maintainers = with lib.maintainers; [ raskin makefu mic92 ];
98 platforms = with lib.platforms; unix;