NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.51k stars 13.69k forks source link

mbrola: split language data #226869

Open davidak opened 1 year ago

davidak commented 1 year ago

Issue description

Currently the package downloads data for all languages (>600MB), but the user might only need one.

Can we make the package multi-output and have every language in one output? Then we can have aliases for mbrola with one language and one with all.

Having only english in default package would help with https://github.com/NixOS/nixpkgs/issues/207204. But what would be the workflow for users who want a different language in e.g. okular?

cc @wamserma might be interested to look into this, as follow-up to https://github.com/NixOS/nixpkgs/pull/219898?

FRidh commented 1 year ago

But what would be the workflow for users who want a different language in e.g. okular?

This is a similar problem as dictionary/translation files.

Users should be able to add these impurely to their environment and they should get picked up. And it would be a "nice to have" if there is also a way to purely compose them.