git.iko.soy/typeable/nixpkgs
on master help sign in
bumblebee: use _have not have in bash completion

Fixes #10936

commit28d2ac416eb64426643d3915db81365ecae0d912 authorSpencer Whitt <me@swhitt.me> dateWed 25 Nov 2015, 10:30 (11 years ago) parent7ae05ed
1 file changed+7
pkgs/tools/X11/bumblebee/default.nix+7
pkgs/tools/X11/bumblebee/default.nix+7
@@ -100,6 +100,13 @@ in stdenv.mkDerivation {
100100
101101 patches = [ ./xopts.patch ./nvidia-conf.patch];
102102
103+ # the have() function is deprecated and not available to bash completions the
104+ # way they are currently loaded in NixOS, so use _have. See #10936
105+ patchPhase = ''
106+ substituteInPlace scripts/bash_completion/bumblebee \
107+ --replace "have optirun" "_have optirun"
108+ '';
109+
103110 preConfigure = ''
104111 # Substitute the path to the actual modinfo program in module.c.
105112 # Note: module.c also calls rmmod and modprobe, but those just have to