diff --git a/pkgs/rocm-modules/hiprt/default.nix b/pkgs/rocm-modules/hiprt/default.nix
index 37cd1d0..cc9d756 100644
--- a/pkgs/rocm-modules/hiprt/default.nix
+++ b/pkgs/rocm-modules/hiprt/default.nix
@@ -27,34 +27,27 @@ stdenv.mkDerivation (finalAttrs: {
cmake
clr
];
- buildInputs = [
- # TODO: do we need anything here?
- ];
cmakeFlags = [
- #TODO: mostly copied from the Arch package, verify these:
"-D CMAKE_BUILD_TYPE=Release"
- "-D HIP_PATH=${clr}"
+ # "-D HIP_PATH=${clr}"
"-D BAKE_KERNEL=OFF"
"-D BAKE_COMPILED_KERNEL=OFF"
"-D BITCODE=ON"
"-D PRECOMPILE=ON"
"-D NO_UNITTEST=ON"
"-D FORCE_DISABLE_CUDA=ON"
- # Manually define CMAKE_INSTALL_
- # See: https://github.com/NixOS/nixpkgs/pull/197838
- "-D CMAKE_INSTALL_BINDIR=bin"
- "-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
+ ln -sr $out/lib/libhiprt*64.so $out/lib/libhiprt64.so
+ install -v -Dm644 ../scripts/bitcodes/hiprt*_amd_lib_linux.bc $out/lib/
'';
+
meta = {
- homepage = "https://github.com/GPUOpen-LibrariesAndSDKs/HIPRT";
- description = "";
+ homepage = "https://gpuopen.com/hiprt";
+ description = "Ray tracing library for HIP";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
mksafavi