mbrola-voices: extract from mbrola, allow language selection#329650
mbrola-voices: extract from mbrola, allow language selection#329650mweinelt wants to merge 4 commits intoNixOS:masterfrom
Conversation
1339a9d to
04fbb1f
Compare
I wonder if it's worth the effort to make the default one a FOD again. For the files that often remain in people's closures. I think it could make a significant difference for some people, unless they have |
Defaulting to the derivation source now for mbrola, so the default is effectively that again. |
|
I think that piece of code doesn't work as intended? Maybe because of the self-reference. I still see this in the default closure |
|
Maybe we could write if languages == [ ] then src // { inherit meta; } else stdenv.mkDerivation { inherit src meta; /*...*/ } |
Allow filtering voices based on any number of extglob patterns.
This reduces the size of mbrola-voices by 387M (647M -> 260M) for all installers that ship with speechd, to make sure that they fit the output limits of hydra while not compromising too much on accessbility.
Otherwise we got just "source" as the name, which was ugly.
Now mbrola won't rebuild by default.
|
🤔 the overlay approach won't be a good longer-term solution, as it really needs lots of rebuild work to get the ISOs (every time a rebuild happens). Users would be slightly impacted on installation from that media, as hashes of those packages would differ, so they couldn't be pulled from the ISO. Using the reduced set of voices by default... maybe, I'm no good with accessibility. Decoupling the data and plugging it by some environment variable is probably the best shot for longer-term solutions, though it's "less pure". Maybe this WIP PR: #329658 |
|
For the immediate unblocking I increased the limit on Hydra a bit, so that we have some time to improve the closure sizes. EDIT: here https://hydra.nixos.org/build/267286447#tabs-buildsteps |
This is primarily a temporary measure; see here and around: NixOS/nixpkgs#329650
|
Superseded by #329658 |
|
At least I think we're not missing anything now. |
Allow filtering voices based on any number of extglob patterns.
Description of changes
Restricting mbrola-voices to only one voice per language saves 387M, and is what I recommend we should do on the ISO, because it likely doesn't compromise accessbility too much.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.