linuxPackages.nvidia_x11_beta: fix optix denoiser

OptiX tries loading `$ORIGIN/nvoptix.bin` before
`/usr/share/nvidia/nvoptix.bin`.

Additionally OptiX isn't supported for 32-bit.
This commit is contained in:
Kiskae 2023-06-05 19:49:17 +02:00
parent 05ba2c2a01
commit c79b173db5

View file

@ -124,12 +124,14 @@ installPhase() {
if [ -e nvngx.dll ] && [ -e _nvngx.dll ]; then
install -Dm644 -t $i/lib/nvidia/wine/ nvngx.dll _nvngx.dll
fi
if [ -e nvoptix.bin ]; then
install -Dm444 -t $i/share/nvidia/ nvoptix.bin
fi
done
# OptiX tries loading `$ORIGIN/nvoptix.bin` first
if [ -e nvoptix.bin ]; then
install -Dm444 -t $out/lib/ nvoptix.bin
fi
if [ -n "$bin" ]; then
# Install the X drivers.
mkdir -p $bin/lib/xorg/modules