Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

{rizinPlugins,cutterPlugins}.rz-ghidra: init at 0.6.0

chayleaf 005275fa 92615041

+72 -1
+6 -1
pkgs/development/tools/analysis/rizin/cutter.nix
··· 40 40 ''; 41 41 42 42 passthru = rec { 43 - inherit (rizin) plugins; 43 + plugins = rizin.plugins // { 44 + rz-ghidra = rizin.plugins.rz-ghidra.override { 45 + inherit cutter qtbase qtsvg; 46 + enableCutterPlugin = true; 47 + }; 48 + }; 44 49 withPlugins = filter: pkgs.callPackage ./wrapper.nix { 45 50 unwrapped = cutter; 46 51 inherit rizin;
+4
pkgs/development/tools/analysis/rizin/default.nix
··· 109 109 jsdec = pkgs.callPackage ./jsdec.nix { 110 110 inherit rizin openssl; 111 111 }; 112 + rz-ghidra = pkgs.libsForQt5.callPackage ./rz-ghidra.nix { 113 + inherit rizin openssl; 114 + enableCutterPlugin = false; 115 + }; 112 116 # sigdb isn't a real plugin, but it's separated from the main rizin 113 117 # derivation so that only those who need it will download it 114 118 sigdb = pkgs.callPackage ./sigdb.nix { };
+62
pkgs/development/tools/analysis/rizin/rz-ghidra.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , cmake 6 + # buildInputs 7 + , rizin 8 + , openssl 9 + , pugixml 10 + # optional buildInputs 11 + , enableCutterPlugin ? true 12 + , cutter 13 + , qtbase 14 + , qtsvg 15 + }: 16 + 17 + stdenv.mkDerivation rec { 18 + pname = "rz-ghidra"; 19 + version = "0.6.0"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "rizinorg"; 23 + repo = "rz-ghidra"; 24 + rev = "v${version}"; 25 + hash = "sha256-tQAurouRr6fP1tbIkfd0a9UfeYcwiU1BpjOTcooXkT0="; 26 + fetchSubmodules = true; 27 + }; 28 + 29 + patches = [ 30 + (fetchpatch { 31 + url = "https://github.com/rizinorg/rz-ghidra/pull/327/commits/eba20e2c743ed3dfc5d1be090a5018f7267baa49.patch"; 32 + hash = "sha256-aoXFClXZBcOnHl+6lLYrnui7sRb3cRJQhQfNDLxHtcs="; 33 + }) 34 + ]; 35 + 36 + nativeBuildInputs = [ cmake ]; 37 + buildInputs = [ 38 + openssl 39 + pugixml 40 + rizin 41 + ] ++ lib.optionals enableCutterPlugin [ 42 + cutter 43 + qtbase 44 + qtsvg 45 + ]; 46 + 47 + dontWrapQtApps = true; 48 + 49 + cmakeFlags = [ 50 + "-DUSE_SYSTEM_PUGIXML=ON" 51 + ] ++ lib.optionals enableCutterPlugin [ 52 + "-DBUILD_CUTTER_PLUGIN=ON" 53 + "-DCUTTER_INSTALL_PLUGDIR=share/rizin/cutter/plugins/native" 54 + ]; 55 + 56 + meta = with lib; { 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 ]; 61 + }; 62 + }