Merge pull request #285982 from herberteuler/fix/284736-mathematica

mathematica: minor fixes
This commit is contained in:
Felix Bühler 2024-02-04 10:14:33 +01:00 committed by GitHub
commit bfda12002a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,9 @@ let cudaEnv = symlinkJoin {
cuda_cudart cuda_nvcc libcublas libcufft libcurand libcusparse
];
postBuild = ''
ln -s ${addOpenGLRunpath.driverLink}/lib/libcuda.so $out/lib
if [ ! -e $out/lib/libcuda.so ]; then
ln -s ${addOpenGLRunpath.driverLink}/lib/libcuda.so $out/lib
fi
ln -s lib $out/lib64
'';
};
@ -119,7 +121,11 @@ in stdenv.mkDerivation {
]) ++ lib.optional cudaSupport cudaEnv;
wrapProgramFlags = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gcc-unwrapped.lib zlib ]}"
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
dbus
gcc-unwrapped.lib
zlib
]}"
"--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}"
# Fix libQt errors - #96490
"--set USE_WOLFRAM_LD_LIBRARY_PATH 1"