NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.74k stars 13.86k forks source link

CUDA: nvvp requires Java 8 #268528

Open pta2002 opened 10 months ago

pta2002 commented 10 months ago

Describe the bug

According to the NVVP docs, nvvp requires a Java 8 environment by default. Right now, just starting nvvp from cudaPackages.cuda_nvvp won't work, as it's not included with the derivation

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix shell nixpgs#cudaPackages.cuda_nvvp --impure
  2. nvvp

Expected behavior

NVVP starts normally.

Additional context

If I add openjdk8 to the environment (e.g. nix shell nixpkgs#cudaPackages.cuda_nvvp nixpkgs#openjdk8) it starts, but then crashes with an SWT error, saying it can't load the SWT library (though it's trying to load from my HOME, for some reason)

Notify maintainers

@NixOS/cuda-maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.61, NixOS, 23.11 (Tapir), 23.11.20231104.85f1ba3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
pta2002 commented 10 months ago

For the SWT issues, #30826 might be of help here