Skip to content

Instantly share code, notes, and snippets.

@cpcloud
Created October 16, 2020 22:23
Show Gist options
  • Save cpcloud/2092031b23f69cdf4f3b2a92a8f932ee to your computer and use it in GitHub Desktop.
Save cpcloud/2092031b23f69cdf4f3b2a92a8f932ee to your computer and use it in GitHub Desktop.
Add the nixos nvidia driver location and remove ldconfig
diff --git a/patch.sh b/patch.sh
index 8e572f5..1336cc0 100755
--- a/patch.sh
+++ b/patch.sh
@@ -252,6 +252,7 @@ patch_common () {
'/usr/lib/x86_64-linux-gnu/nvidia/current/'
'/usr/lib64'
"/usr/lib/nvidia-${driver_version%%.*}"
+ "/run/opengl-driver/lib"
)
dir_found=''
@@ -297,7 +298,6 @@ patch () {
sed "$patch" "$backup_path/$object.$driver_version" > \
"${PATCH_OUTPUT_DIR-$driver_dir}/$object.$driver_version"
sha1sum "${PATCH_OUTPUT_DIR-$driver_dir}/$object.$driver_version"
- ldconfig
echo "Patched!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment