By adding the missing link between the (already installed) completion script and $out/etc/bash_completion.d/.