{ lib, fetchFromGitHub, buildGhidraExtension, ghidra, ant, }: buildGhidraExtension (finalAttrs: { pname = "wasm"; version = "2.4.0"; src = fetchFromGitHub { owner = "nneonneo"; repo = "ghidra-wasm-plugin"; rev = "v${finalAttrs.version}"; hash = "sha256-2JNenzUac/OpjQ+fN1MkP8E2KIT1Ifn+C/18buSpqrE="; }; nativeBuildInputs = [ ant ]; configurePhase = '' runHook preConfigure # this doesn't really compile, it compresses sinc into sla pushd data ant -f build.xml -Dghidra.install.dir=${ghidra}/lib/ghidra sleighCompile popd runHook postConfigure ''; meta = { description = "Ghidra Wasm plugin with disassembly and decompilation support"; homepage = "https://github.com/nneonneo/ghidra-wasm-plugin"; downloadPage = "https://github.com/nneonneo/ghidra-wasm-plugin/releases/tag/v${finalAttrs.version}"; changelog = "https://github.com/nneonneo/ghidra-wasm-plugin/releases/tag/v${finalAttrs.version}"; license = lib.licenses.gpl3; maintainers = [ lib.maintainers.BonusPlay ]; broken = true; # Until updated to support 12.1.2 }; })