git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #11262 from spwhitt/bumblebee_have

bumblebee: use _have not have in bash completion

commitc990a1ed4d264510bd7849d674fbc2dbfb3f6901 authorNikolay Amiantov <ab@fmap.me> dateSat 5 Dec 2015, 00:56 (11 years ago) parentcf3202a28d2ac4
1 file changed+7
pkgs/tools/X11/bumblebee/default.nix+7
pkgs/tools/X11/bumblebee/default.nix+7
@@ -67,6 +67,13 @@ in stdenv.mkDerivation rec {
6767
6868 nouveauDeviceOptions = extraNouveauDeviceOptions;
6969
70+ # 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+
7077 preConfigure = ''
7178 # Substitute the path to the actual modinfo program in module.c.
7279 # Note: module.c also calls rmmod and modprobe, but those just have to