mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
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 New Issue
Block a user