-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvidia-x11: Make vulkan library path absolute for >= 435. #69820
Conversation
Should be something like 031b069, since |
It's fine the way it is, the sed is piped to a different file, the original is unchanged. The result is correct, I've checked. |
I'm not sure what you pointed me to, which PR is this from? |
I'm guessing that PR also fixes this issue, though in a slightly different way. Should I refactor this PR to do the same thing? Or just merge that one? |
It's fine whichever one, I'll rebase if needed. Though this one does look nicer. |
Ok then let's go with the PR as is. Actually I don't like the one you linked because the result of the first sed is also reused in the second iteration, which is non-obvious. |
Sorry wait I need to fix up the first case so it writes to .fixed, I didn't notice this. |
The original file contains just a library name, which does not work when LD_LIBRARY_PATH does not contain /run/opengl-driver/lib, as is the case in unstable NixOS. Fixes NixOS#69264
4da8f8f
to
0314211
Compare
Refactored such that it never writes to |
Tested, thanks! |
The original file contains just a library name, which does not work when LD_LIBRARY_PATH does not contain /run/opengl-driver/lib, as is the case in unstable NixOS.
Fixes #69264
Motivation for this change
The PR #68024 did not realize that the path is supposed to be absolute, as already indicated in a comment. Due to this it still did not fix Vulkan for nixos-unstable, where
LD_LIBRARY_PATH
is normally not set to/run/opengl-driver/lib
.Things done
Tested that vulkaninfo now works when it did not before, both 64- and 32-bit version.
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @FRidh @abbradar