···6768 nouveauDeviceOptions = extraNouveauDeviceOptions;
69000000070 preConfigure = ''
71 # Substitute the path to the actual modinfo program in module.c.
72 # Note: module.c also calls rmmod and modprobe, but those just have to
···6768 nouveauDeviceOptions = extraNouveauDeviceOptions;
6970+ # the have() function is deprecated and not available to bash completions the
71+ # way they are currently loaded in NixOS, so use _have. See #10936
72+ patchPhase = ''
73+ substituteInPlace scripts/bash_completion/bumblebee \
74+ --replace "have optirun" "_have optirun"
75+ '';
76+77 preConfigure = ''
78 # Substitute the path to the actual modinfo program in module.c.
79 # Note: module.c also calls rmmod and modprobe, but those just have to