-
-
Save cpcloud/2092031b23f69cdf4f3b2a92a8f932ee to your computer and use it in GitHub Desktop.
Add the nixos nvidia driver location and remove ldconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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