cudatoolkit: fix builds for 10.*
libnvrtc.so is not found in the same location in all versions of cudatoolkit.
This commit is contained in:
parent
85888a1298
commit
65497764e8
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue