diff options
author | Nick Cao <nickcao@nichi.co> | 2023-06-11 05:25:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 05:25:31 -0600 |
commit | e3289fada5eaebc8ed548c5b7b8f3a8c745a0bb1 (patch) | |
tree | 39b4e8bfe68ad0e14364af123e8c9aa916c13682 /pkgs | |
parent | f34631c8ce07a4d0619d31b7c219d2d2432527fe (diff) | |
parent | c79b173db5b4a61782d0afb8a798ac15ff355301 (diff) |
Merge pull request #236122 from Kiskae/nvidia/535-optix
linuxPackages.nvidia_x11_beta: fix optix denoiser
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/os-specific/linux/nvidia-x11/builder.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/nvidia-x11/builder.sh b/pkgs/os-specific/linux/nvidia-x11/builder.sh index a2ced98b89dc..2b0f55c03879 100755 --- a/pkgs/os-specific/linux/nvidia-x11/builder.sh +++ b/pkgs/os-specific/linux/nvidia-x11/builder.sh @@ -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 |