forked from mirrors/nixpkgs
0996ac6b0e
For packages relying on Nvidia drivers we don't want to hard-code the location of a particular driver version in the RPATH. Otherwise the software might fail with errors such as: > Impossible to initialize nvidia nvml : Driver/library version mismatch To fix this the usual pattern in nixpkgs is to add `/run/opengl-driver/lib` to the RPATH of these binaries. This is the global location where Nvidia libraries are available on NixOS and so this makes sure that the nvtop binary can be run with all versions of the driver. At build time however these libraries are not available at that particular location. For precisely this use case, Nvidia ships stub versions of the driver libraries with the cudatoolkit. So we just need to point CMake to that directory. Fixes: #98328 |
||
---|---|---|
.. | ||
default.nix |