-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
feat: add nix-shell file for nvidia #2340
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea looks cool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
full build env would be nicer of course but this looks very reasonable (:
nativeBuildInputs = [ pkgs.pkg-config ]; | ||
buildInputs = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could with pkgs;
these to not be so verbose
I get errors when trying to build using this. The prepare-deps stage works ok - which was the part that was failing on arch. But the build-streamer step fails with errors relating to alsa and openssl. error: failed to run custom build command for |
Since nixos has fixed their packaging for alvr, we should probably base this change on that since it's already a lot more complete. Same goes for #2402. Also, a more medium-term goal is to move away from ffmpeg, since it's arguably just a mess, and to replace it with direct support for vulkan video encoding (widespread support is available from mesa 25 on). This would fully replace the intent of this pr, although I'm still interested in providing first-party integration with nix. |
Closes #2337
Easy to use + low code complexity solution to be able to build alvr with nvidia support on linux for distros that have issues with cuda. Note that this currently is only supposed to supplement an environment that already provides rust and a couple other necessary things, not present a full build environment (should this be changed?). It'll also need to be documented on the wiki and should hopefully replace some more manual and unreliable methods of installing cuda featured there.