10 # optional buildInputs
11 , enableCutterPlugin ? true
17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
25 hash = "sha256-tQAurouRr6fP1tbIkfd0a9UfeYcwiU1BpjOTcooXkT0=";
26 fetchSubmodules = true;
31 url = "https://github.com/rizinorg/rz-ghidra/pull/327/commits/eba20e2c743ed3dfc5d1be090a5018f7267baa49.patch";
32 hash = "sha256-aoXFClXZBcOnHl+6lLYrnui7sRb3cRJQhQfNDLxHtcs=";
36 nativeBuildInputs = [ cmake ];
41 ] ++ lib.optionals enableCutterPlugin [
47 dontWrapQtApps = true;
50 "-DUSE_SYSTEM_PUGIXML=ON"
51 ] ++ lib.optionals enableCutterPlugin [
52 "-DBUILD_CUTTER_PLUGIN=ON"
53 "-DCUTTER_INSTALL_PLUGDIR=share/rizin/cutter/plugins/native"
57 description = "Deep ghidra decompiler and sleigh disassembler integration for rizin";
58 homepage = src.meta.homepage;
59 license = licenses.lgpl3;
60 maintainers = with maintainers; [ chayleaf ];