10 , enableCutterPlugin ? true
17 stdenv.mkDerivation (finalAttrs: {
21 src = fetchFromGitHub {
24 rev = "v${finalAttrs.version}";
25 hash = "sha256-W9VcKrDAh7GNRbE4eyWbtHlsYLmrjBBgVvWNyMUhlDk=";
26 fetchSubmodules = true;
29 nativeBuildInputs = [ cmake ];
34 ] ++ lib.optionals enableCutterPlugin [
41 dontWrapQtApps = true;
44 "-DUSE_SYSTEM_PUGIXML=ON"
45 ] ++ lib.optionals enableCutterPlugin [
46 "-DBUILD_CUTTER_PLUGIN=ON"
47 "-DCUTTER_INSTALL_PLUGDIR=share/rizin/cutter/plugins/native"
51 # errors out with undefined symbols from Cutter
52 broken = enableCutterPlugin && stdenv.isDarwin;
53 description = "Deep ghidra decompiler and sleigh disassembler integration for rizin";
54 homepage = finalAttrs.src.meta.homepage;
55 changelog = "${finalAttrs.src.meta.homepage}/releases/tag/${finalAttrs.src.rev}";
56 license = licenses.lgpl3;
57 maintainers = with maintainers; [ chayleaf ];
58 inherit (rizin.meta) platforms;