Commit Graph

6 Commits

Author SHA1 Message Date
Josef Kemetmüller
0996ac6b0e nvtop: Make independent of Nvidia driver version
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
2020-09-21 08:43:43 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Mateusz Kowalczyk
2b8ca28020 nvtop: 0.2.2 -> 1.0.0 2019-01-25 10:19:30 +09:00
WilliButz
781206217e nvtop: use version-independent libnvidia-ml.so symlink 2018-10-01 23:40:21 +02:00
WilliButz
354a477f0f nvtop: init at 0.2.2 2018-08-06 22:44:29 +02:00