-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
okular pulls in mbrola worth > 600 mb #207204
Comments
$ nix-instantiate --eval -A okular.outPath '<nixpkgs>'
"/nix/store/6c0h3b3a3p8qnhjipmxjfygsdqr027i8-okular-22.08.3"
$ nix-store -qR /nix/store/6c0h3b3a3p8qnhjipmxjfygsdqr027i8-okular-22.08.3 | grep mbrola
/nix/store/cfzmf36asbcjiq5h4pn4fznzk6rqc4gn-mbrola-3.3
$ nix why-depends /nix/store/6c0h3b3a3p8qnhjipmxjfygsdqr027i8-okular-22.08.3 /nix/store/cfzmf36asbcjiq5h4pn4fznzk6rqc4gn-mbrola-3.3
/nix/store/6c0h3b3a3p8qnhjipmxjfygsdqr027i8-okular-22.08.3
└───/nix/store/fazbdx73b4w17sd0mvphdbpm7zci38nw-qtspeech-5.15.7
└───/nix/store/cl38aj8cxhfjjraic8r4dks29gq0yqig-speech-dispatcher-0.11.2
└───/nix/store/cfzmf36asbcjiq5h4pn4fznzk6rqc4gn-mbrola-3.3 Would have to be made an optional dependency here: nixpkgs/pkgs/development/libraries/speechd/default.nix Lines 42 to 48 in cc1bb67
|
I can suggest you to add an overlay disabling all heavy speech synthesizers backends, as I did for my config:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
It's also pulled by GNOME parts, including the ISO. Or at least it was, recently: I agree that such huge speech synthesizers should not be contained in defaults (of DEs, ISOs, and other packages except those very focused on speech synthesis) |
This comment was marked as resolved.
This comment was marked as resolved.
Same with kmail. mbrola needs to be explicitly enabled, it's too big :-( |
I am not sure if this is actually worth it unless we also drop mbrola from chromium. I had an overlay for this locally before but there is not point in having it when I need to compile chromium. |
I think it may be time to just disable it by default. That will suck for users of speech synthesis but we can't have everyone suffer >600MB in their closure for a select few. A few questions before we do that: Does our speech synth even work? |
Alright, I had a quick look at what we're doing at it seems we hard-code the output path of the voices into espeak-ng. What we should instead be doing IMO is:
|
Why don't we patch espeak-ng to use |
@dotlambda we're currently patching it to use Doing that instead (and perhaps also /usr for non-NixOS people) is what I meant with step 1. |
|
This should be an optional dependcy
The text was updated successfully, but these errors were encountered: