mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
{rizinPlugins,cutterPlugins}.rz-ghidra: init at 0.6.0
This commit is contained in:
parent
92615041a2
commit
005275fa37
@ -40,7 +40,12 @@ let cutter = mkDerivation rec {
|
||||
'';
|
||||
|
||||
passthru = rec {
|
||||
inherit (rizin) plugins;
|
||||
plugins = rizin.plugins // {
|
||||
rz-ghidra = rizin.plugins.rz-ghidra.override {
|
||||
inherit cutter qtbase qtsvg;
|
||||
enableCutterPlugin = true;
|
||||
};
|
||||
};
|
||||
withPlugins = filter: pkgs.callPackage ./wrapper.nix {
|
||||
unwrapped = cutter;
|
||||
inherit rizin;
|
||||
|
@ -109,6 +109,10 @@ let rizin = stdenv.mkDerivation rec {
|
||||
jsdec = pkgs.callPackage ./jsdec.nix {
|
||||
inherit rizin openssl;
|
||||
};
|
||||
rz-ghidra = pkgs.libsForQt5.callPackage ./rz-ghidra.nix {
|
||||
inherit rizin openssl;
|
||||
enableCutterPlugin = false;
|
||||
};
|
||||
# sigdb isn't a real plugin, but it's separated from the main rizin
|
||||
# derivation so that only those who need it will download it
|
||||
sigdb = pkgs.callPackage ./sigdb.nix { };
|
||||
|
62
pkgs/development/tools/analysis/rizin/rz-ghidra.nix
Normal file
62
pkgs/development/tools/analysis/rizin/rz-ghidra.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
# buildInputs
|
||||
, rizin
|
||||
, openssl
|
||||
, pugixml
|
||||
# optional buildInputs
|
||||
, enableCutterPlugin ? true
|
||||
, cutter
|
||||
, qtbase
|
||||
, qtsvg
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rz-ghidra";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rizinorg";
|
||||
repo = "rz-ghidra";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-tQAurouRr6fP1tbIkfd0a9UfeYcwiU1BpjOTcooXkT0=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/rizinorg/rz-ghidra/pull/327/commits/eba20e2c743ed3dfc5d1be090a5018f7267baa49.patch";
|
||||
hash = "sha256-aoXFClXZBcOnHl+6lLYrnui7sRb3cRJQhQfNDLxHtcs=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [
|
||||
openssl
|
||||
pugixml
|
||||
rizin
|
||||
] ++ lib.optionals enableCutterPlugin [
|
||||
cutter
|
||||
qtbase
|
||||
qtsvg
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_SYSTEM_PUGIXML=ON"
|
||||
] ++ lib.optionals enableCutterPlugin [
|
||||
"-DBUILD_CUTTER_PLUGIN=ON"
|
||||
"-DCUTTER_INSTALL_PLUGDIR=share/rizin/cutter/plugins/native"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Deep ghidra decompiler and sleigh disassembler integration for rizin";
|
||||
homepage = src.meta.homepage;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ chayleaf ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user