From be2632cf57c55ae70a62d2cbc0ea5014768b3e2f Mon Sep 17 00:00:00 2001 From: Mrmaxmeier Date: Sun, 18 Jan 2026 23:04:02 +0100 Subject: [PATCH] heaptrack: enable rustc-demangle Rust is switching to their own symbol mangling convention (V0) which requires dynamically loading the rustc-demangle library in heaptrack. https://blog.rust-lang.org/2025/11/20/switching-to-v0-mangling-on-nightly/ --- pkgs/by-name/he/heaptrack/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/he/heaptrack/package.nix b/pkgs/by-name/he/heaptrack/package.nix index f19cbeeaf608..45a215482ea3 100644 --- a/pkgs/by-name/he/heaptrack/package.nix +++ b/pkgs/by-name/he/heaptrack/package.nix @@ -11,6 +11,7 @@ sparsehash, zstd, kdePackages, + rustc-demangle, }: stdenv.mkDerivation { @@ -38,6 +39,7 @@ stdenv.mkDerivation { libunwind sparsehash zstd + rustc-demangle ] ++ (with kdePackages; [ qtbase @@ -53,6 +55,11 @@ stdenv.mkDerivation { elfutils ]; + postPatch = '' + substituteInPlace src/interpret/demangler.cpp \ + --replace-fail "librustc_demangle.so" "${rustc-demangle}/lib/librustc_demangle.so" + ''; + postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' makeWrapper \ $out/Applications/KDE/heaptrack_gui.app/Contents/MacOS/heaptrack_gui \