From 751e159d5eff37d002ae99b6eb168e0643d435e4 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Sun, 9 Feb 2025 21:22:04 +0100 Subject: [PATCH] ida-pro: 9.0.0.240925 -> 9.0.0.241217 --- packages/ida-pro.nix | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/ida-pro.nix b/packages/ida-pro.nix index c5ff29a..357c9f9 100644 --- a/packages/ida-pro.nix +++ b/packages/ida-pro.nix @@ -9,7 +9,7 @@ let in pkgs.stdenv.mkDerivation rec { pname = "ida-pro"; - version = "9.0.0.240925"; + version = "9.0.0.241217"; src = runfile; @@ -66,7 +66,7 @@ pkgs.stdenv.mkDerivation rec { xorg.xcbutilrenderutil xorg.xcbutilwm zlib - curl + curl.out pythonForIDA ]; buildInputs = runtimeDependencies; @@ -76,16 +76,28 @@ pkgs.stdenv.mkDerivation rec { installPhase = '' runHook preInstall - mkdir -p $out/bin $out/lib $out/opt + function print_debug_info() { + if [ -f installbuilder_installer.log ]; then + cat installbuilder_installer.log + else + echo "No debug information available." + fi + } + + trap print_debug_info EXIT + + mkdir -p $out/bin $out/lib $out/opt/.local/share/applications # IDA depends on quite some things extracted by the runfile, so first extract everything # into $out/opt, then remove the unnecessary files and directories. - IDADIR=$out/opt + IDADIR="$out/opt" + # IDA doesn't always honor `--prefix`, so we need to hack and set $HOME here. + HOME="$out/opt" # Invoke the installer with the dynamic loader directly, avoiding the need # to copy it to fix permissions and patch the executable. $(cat $NIX_CC/nix-support/dynamic-linker) $src \ - --mode unattended --prefix $IDADIR + --mode unattended --debuglevel 4 --prefix $IDADIR # Link the exported libraries to the output. for lib in $IDADIR/libida*; do