From 686ac5bf4d0990121a665c930dba44ad15d015b0 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 15 Jul 2022 10:38:48 +0800 Subject: [PATCH] linuxPackages.nvidia_x11: fix build of versions without nvngx.dll --- pkgs/os-specific/linux/nvidia-x11/builder.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/builder.sh b/pkgs/os-specific/linux/nvidia-x11/builder.sh index 9d6916be58c0..a7746194570c 100755 --- a/pkgs/os-specific/linux/nvidia-x11/builder.sh +++ b/pkgs/os-specific/linux/nvidia-x11/builder.sh @@ -120,8 +120,9 @@ installPhase() { fi # Install libraries needed by Proton to support DLSS - install -Dm644 -t $i/lib/nvidia/wine/ nvngx.dll _nvngx.dll - + if [ -e nvngx.dll ] && [ -e _nvngx.dll ]; then + install -Dm644 -t $i/lib/nvidia/wine/ nvngx.dll _nvngx.dll + fi done if [ -n "$bin" ]; then