Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

The-personified-devil
Copy link
Collaborator

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.

Copy link
Collaborator

@Vixea Vixea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea looks cool

Copy link
Member

@ckiee ckiee left a 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 (:

Comment on lines +3 to +4
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [
Copy link
Member

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

@skryvel skryvel mentioned this pull request Sep 14, 2024
@failboat78
Copy link
Collaborator

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 openssl-sys v0.9.102
error: failed to run custom build command for alsa-sys v0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants