Commit 05071d58 authored by John Chadwick's avatar John Chadwick
Browse files

ghidra-extensions.ret-sync: fix for ghidra 11.2

parent 55367b38
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{
  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
  '';