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
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alvr/xtask/src/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub fn build_ffmpeg_linux(nvenc_flag: bool, deps_path: &Path) {
];

let env_vars = format!(
"PKG_CONFIG_PATH='{}'",
"PKG_CONFIG_PATH=$PKG_CONFIG_PATH:'{}'",
header_build_dir.join("lib/pkgconfig").display()
);
let flags_combined = flags.join(" ");
Expand Down
19 changes: 19 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell.override { stdenv = pkgs.cudaPackages.backendStdenv; } {
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [
Comment on lines +3 to +4
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

pkgs.cudaPackages.cuda_nvcc
pkgs.cudaPackages.cuda_cudart
pkgs.cudaPackages.libnpp

pkgs.nasm

pkgs.vulkan-headers
pkgs.libva
pkgs.libdrm
];

shellHook = ''
unset AS
'';
}
Loading