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 \