rocm-thunk: fix paths in pkg-config file

This commit is contained in:
Alexander Shpilkin 2022-05-18 21:40:25 +03:00 committed by Artturin
parent d5f218a228
commit 2e07f8a7bf

View File

@ -26,6 +26,13 @@ stdenv.mkDerivation rec {
buildInputs = [ libdrm numactl ];
# https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/issues/75
postPatch = ''
substituteInPlace libhsakmt.pc.in \
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
'';
postInstall = ''
cp -r $src/include $out
'';