From 6f6b5e849938fe47136d401ec4c7c1a66212cf71 Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Mon, 2 Jun 2025 10:09:30 +0400 Subject: [PATCH] fix hiprt --- pkgs/rocm-modules/hiprt/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/rocm-modules/hiprt/default.nix b/pkgs/rocm-modules/hiprt/default.nix index 9abf6f7..37cd1d0 100644 --- a/pkgs/rocm-modules/hiprt/default.nix +++ b/pkgs/rocm-modules/hiprt/default.nix @@ -47,7 +47,11 @@ stdenv.mkDerivation (finalAttrs: { "-D CMAKE_INSTALL_LIBDIR=lib" "-D CMAKE_INSTALL_INCLUDEDIR=include" ]; - + postInstall = '' + mkdir -p $out/lib + ln -s "$(find $out/bin -type f -name 'libhiprt*.so' -print -quit)" $out/bin/libhiprt64.so + ln -s $out/bin/libhiprt64.so $out/lib/libhiprt64.so + ''; meta = { homepage = "https://github.com/GPUOpen-LibrariesAndSDKs/HIPRT"; description = "";