From 80cd61dd415c30e42f881b9eb35ba9b875f89daa Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Fri, 10 Mar 2023 14:45:21 +0100 Subject: [PATCH] hotspot: Fix Rust demangling support Hotspot supports demangling Rust symbols using rustc-demangle. This library is loaded at run-time since version 1.4.0. Tell the wrapper to make it available, so that the demangling actually works. --- pkgs/development/tools/analysis/hotspot/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/analysis/hotspot/default.nix b/pkgs/development/tools/analysis/hotspot/default.nix index 5c0a96e5d8e0..bbf91ec28fb4 100644 --- a/pkgs/development/tools/analysis/hotspot/default.nix +++ b/pkgs/development/tools/analysis/hotspot/default.nix @@ -62,6 +62,10 @@ mkDerivation rec { mkdir -p 3rdparty/{perfparser,PrefixTickLabels}/.git ''; + qtWrapperArgs = [ + "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ rustc-demangle ]}" + ]; + meta = with lib; { description = "A GUI for Linux perf"; longDescription = ''