From 84830c66e6f4d105c55b261eb21cf98e05237caa Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 16 Sep 2025 15:57:04 +0200 Subject: [PATCH] Fix hidden dependencies for AMDuProfSys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It tries to dlopen libcrypt.so.1 and libstdc++.so.6, so we make sure they are available by adding them to the runpath. Reviewed-by: Aleix Boné --- pkgs/amd-uprof/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/amd-uprof/default.nix b/pkgs/amd-uprof/default.nix index 7d2fd86..f412ad2 100644 --- a/pkgs/amd-uprof/default.nix +++ b/pkgs/amd-uprof/default.nix @@ -16,6 +16,7 @@ , libGLU , dbus , rocmPackages +, libxcrypt-legacy }: let @@ -52,6 +53,7 @@ in glib libGL libGLU + libxcrypt-legacy xorg.libX11 xorg.libXext xorg.libXi @@ -74,6 +76,7 @@ in tar -x -v -C $out --strip-components=1 -f $src rm $out/bin/AMDPowerProfilerDriverSource.tar.gz patchelf --replace-needed libroctracer64.so.1 libroctracer64.so $out/bin/ProfileAgents/x64/libAMDGpuAgent.so + patchelf --add-needed libcrypt.so.1 --add-needed libstdc++.so.6 $out/bin/AMDuProfSys set +x ''; }