We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40cce2 commit 1eb834aCopy full SHA for 1eb834a
1 file changed
pkgs/os-specific/linux/nvidia-x11/generic.nix
@@ -246,13 +246,17 @@ stdenv.mkDerivation (finalAttrs: {
246
);
247
in
248
{
249
- mod = callPackage ./kernel-modules.nix {
250
- open = false;
251
- nvidia_x11 = finalAttrs.finalPackage;
252
- # build files already patched when building the main package, so no need to patch them again
253
- patches = [ ];
254
- inherit broken;
255
- };
+ mod =
+ if !libsOnly then
+ callPackage ./kernel-modules.nix {
+ open = false;
+ nvidia_x11 = finalAttrs.finalPackage;
+ # build files already patched when building the main package, so no need to patch them again
+ patches = [ ];
256
+ inherit broken;
257
+ }
258
+ else
259
+ { };
260
open = lib.mapNullable (
261
hash:
262
callPackage ./kernel-modules.nix {
0 commit comments