From 05071d58a87c832f6366fff6c8ec328cb28a2a66 Mon Sep 17 00:00:00 2001 From: John Chadwick Date: Fri, 27 Sep 2024 12:46:26 -0400 Subject: [PATCH] ghidra-extensions.ret-sync: fix for ghidra 11.2 --- .../security/ghidra/extensions/ret-sync/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/ghidra/extensions/ret-sync/default.nix b/pkgs/tools/security/ghidra/extensions/ret-sync/default.nix index e2ab50c119c1..e7791eb90b2b 100644 --- a/pkgs/tools/security/ghidra/extensions/ret-sync/default.nix +++ b/pkgs/tools/security/ghidra/extensions/ret-sync/default.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, + fetchpatch, buildGhidraExtension, ghidra, }: @@ -14,7 +15,16 @@ buildGhidraExtension { rev = "0617c75746ddde7fe2bdbbf880175af8ad27553e"; hash = "sha256-+G5ccdHnFL0sHpueuIYwLRU9FhzN658CYqQCHCBwxV4="; }; - + patches = [ + # This patch is needed to get the extension compiling with Ghidra 11.2. + # Once it's fixed upstream, the src can be updated and this can be removed. + (fetchpatch { + # https://github.com/bootleg/ret-sync/pull/126 + name = "ghidra-11.2-fix.patch"; + url = "https://github.com/bootleg/ret-sync/commit/d81d953c24b4369b499e90ba64c1c9f78513a008.patch"; + hash = "sha256-t/voPcBfsZtfdYnskgBAPfqMTBw1LRTT0aXyyb5qtr8="; + }) + ]; preConfigure = '' cd ext_ghidra '';