ghidra: 10.1.2 -> 10.2
This commit is contained in:
parent
b17dcdfb87
commit
0ea6f4c974
@ -6,7 +6,7 @@
|
|||||||
, gradle
|
, gradle
|
||||||
, perl
|
, perl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, openjdk11
|
, openjdk17
|
||||||
, unzip
|
, unzip
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
@ -19,13 +19,13 @@
|
|||||||
let
|
let
|
||||||
pkg_path = "$out/lib/ghidra";
|
pkg_path = "$out/lib/ghidra";
|
||||||
pname = "ghidra";
|
pname = "ghidra";
|
||||||
version = "10.1.2";
|
version = "10.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NationalSecurityAgency";
|
owner = "NationalSecurityAgency";
|
||||||
repo = "Ghidra";
|
repo = "Ghidra";
|
||||||
rev = "Ghidra_${version}_build";
|
rev = "Ghidra_${version}_build";
|
||||||
sha256 = "sha256-gnSIXje0hUpAculNXAyiS7Twc5XWitMgYp7svyZQxzE=";
|
sha256 = "sha256-b6xUSAZgyvpJFiG3/kl2s1vpq9n1etnoa7AJLF3NdZY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
@ -90,10 +90,10 @@ HERE
|
|||||||
export GRADLE_USER_HOME="$HOME/.gradle"
|
export GRADLE_USER_HOME="$HOME/.gradle"
|
||||||
|
|
||||||
# First, fetch the static dependencies.
|
# First, fetch the static dependencies.
|
||||||
gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk11} -I gradle/support/fetchDependencies.gradle init
|
gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk17} -I gradle/support/fetchDependencies.gradle init
|
||||||
|
|
||||||
# Then, fetch the maven dependencies.
|
# Then, fetch the maven dependencies.
|
||||||
gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk11} resolveDependencies
|
gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk17} resolveDependencies
|
||||||
'';
|
'';
|
||||||
# perl code mavenizes pathes (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar)
|
# perl code mavenizes pathes (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar)
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -104,7 +104,7 @@ HERE
|
|||||||
'';
|
'';
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = "sha256-UHV7Z2HaVTOCY5U0zjUtkchJicrXMBfYBHvL8AA7NTg=";
|
outputHash = "sha256-Z4RS3IzDP8V3SrrwOuX/hTlX7fs3woIhR8GPK/tFAzs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
@ -128,7 +128,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
sed -i "s#mavenLocal()#mavenLocal(); maven { url '${deps}/maven' }#g" build.gradle
|
sed -i "s#mavenLocal()#mavenLocal(); maven { url '${deps}/maven' }#g" build.gradle
|
||||||
|
|
||||||
gradle --offline --no-daemon --info -Dorg.gradle.java.home=${openjdk11} buildGhidra
|
gradle --offline --no-daemon --info -Dorg.gradle.java.home=${openjdk17} buildGhidra
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -156,7 +156,7 @@ in stdenv.mkDerivation rec {
|
|||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
ln -s "${pkg_path}/ghidraRun" "$out/bin/ghidra"
|
ln -s "${pkg_path}/ghidraRun" "$out/bin/ghidra"
|
||||||
wrapProgram "${pkg_path}/support/launch.sh" \
|
wrapProgram "${pkg_path}/support/launch.sh" \
|
||||||
--prefix PATH : ${lib.makeBinPath [ openjdk11 ]}
|
--prefix PATH : ${lib.makeBinPath [ openjdk17 ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user