cudatoolkit: fix builds for 10.*

libnvrtc.so is not found in the same location in all versions of
cudatoolkit.
This commit is contained in:
Elliot Cameron 2023-07-11 17:59:32 -04:00
parent 85888a1298
commit 65497764e8

View File

@ -177,7 +177,9 @@ backendStdenv.mkDerivation rec {
"libcom_err.so.2"
];
preFixup = ''
preFixup = if lib.versionOlder version "11" then ''
patchelf $out/targets/*/lib/libnvrtc.so --add-needed libnvrtc-builtins.so
'' else ''
patchelf $out/lib64/libnvrtc.so --add-needed libnvrtc-builtins.so
'';