ghidra-bin: 10.4 -> 11.2.1, add aarch64 (#354359)

This commit is contained in:
Jörg Thalheim 2024-11-08 11:25:37 +01:00 committed by GitHub
commit 20b4d001cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;