ghidra-extensions.ret-sync: init at unstable-2024-05-29

authored by vringar and committed by Emily Trau b72d4eb3 353ccf0c

+34
+2
pkgs/tools/security/ghidra/extensions.nix
··· 9 9 10 10 machinelearning = self.callPackage ./extensions/machinelearning { inherit ghidra; }; 11 11 12 + ret-sync = self.callPackage ./extensions/ret-sync { }; 13 + 12 14 sleighdevtools = self.callPackage ./extensions/sleighdevtools { inherit ghidra; }; 13 15 14 16 })
+32
pkgs/tools/security/ghidra/extensions/ret-sync/default.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + buildGhidraExtension, 5 + ghidra, 6 + }: 7 + buildGhidraExtension { 8 + pname = "ret-sync-ghidra"; 9 + version = "0-unstable-2024-05-29"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "bootleg"; 13 + repo = "ret-sync"; 14 + rev = "0617c75746ddde7fe2bdbbf880175af8ad27553e"; 15 + hash = "sha256-+G5ccdHnFL0sHpueuIYwLRU9FhzN658CYqQCHCBwxV4="; 16 + }; 17 + 18 + preConfigure = '' 19 + cd ext_ghidra 20 + ''; 21 + preInstall = '' 22 + correct_version=$(ls dist | grep ${ghidra.version}) 23 + mv dist/$correct_version dist/safe.zip 24 + rm dist/ghidra* 25 + mv dist/safe.zip dist/$correct_version 26 + ''; 27 + meta = with lib; { 28 + description = "Reverse-Engineering Tools SYNChronization. Allows syncing between a debugging session and Ghidra"; 29 + homepage = "https://github.com/bootleg/ret-sync"; 30 + license = licenses.gpl3Only; 31 + }; 32 + }