linuxPackages.nvidia_x11 doesn't use pname, instead it setsname = "nvidia-x11-${version}${nameSuffix}";.
However, we only setpname and version in our overrideAttrs, which doesn't change the original name.
Do we need to keep the same name structure with linuxPackages.nvidia_x11?
If so, the fix for nvidiaLibsOnly is simple. But it's not simple to fix nvidiaDrivers, since it contains nameSuffix, which is defined by nameSuffix = optionalString (!libsOnly) "-${kernel.version}";.
linuxPackages.nvidia_x11
doesn't usepname
, instead it setsname = "nvidia-x11-${version}${nameSuffix}";
.However, we only set
pname
andversion
in ouroverrideAttrs
, which doesn't change the originalname
.Do we need to keep the same name structure with
linuxPackages.nvidia_x11
? If so, the fix fornvidiaLibsOnly
is simple. But it's not simple to fixnvidiaDrivers
, since it containsnameSuffix
, which is defined bynameSuffix = optionalString (!libsOnly) "-${kernel.version}";
.