diff --git a/pkgs/tools/security/ghidra/default.nix b/pkgs/tools/security/ghidra/default.nix index a2e1399a2fd9..04dcaa630444 100644 --- a/pkgs/tools/security/ghidra/default.nix +++ b/pkgs/tools/security/ghidra/default.nix @@ -4,7 +4,7 @@ lib, makeWrapper, autoPatchelfHook, - openjdk17, + openjdk21, pam, makeDesktopItem, icoutils, @@ -28,12 +28,12 @@ let in stdenv.mkDerivation rec { pname = "ghidra"; - version = "10.4"; - versiondate = "20230928"; + version = "11.2.1"; + versiondate = "20241105"; src = fetchzip { url = "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${version}_build/ghidra_${version}_PUBLIC_${versiondate}.zip"; - hash = "sha256-IiAQ9OKmr8ZgqmGftuW0ITdG06fb9Lr30n2H9GArctk="; + hash = "sha256-w6FCAjF2ggFWH8eo7X8V6ZTbSptGkwRzoEMj9nGL5/M="; }; nativeBuildInputs = [ @@ -69,7 +69,7 @@ stdenv.mkDerivation rec { ln -s "${pkg_path}/support/analyzeHeadless" "$out/bin/ghidra-analyzeHeadless" wrapProgram "${pkg_path}/support/launch.sh" \ - --prefix PATH : ${lib.makeBinPath [ openjdk17 ]} + --prefix PATH : ${lib.makeBinPath [ openjdk21 ]} ''; meta = with lib; { @@ -78,7 +78,9 @@ stdenv.mkDerivation rec { homepage = "https://github.com/NationalSecurityAgency/ghidra"; platforms = [ "x86_64-linux" + "aarch64-linux" "x86_64-darwin" + "aarch64-darwin" ]; sourceProvenance = with sourceTypes; [ binaryBytecode ]; license = licenses.asl20;