feat(voicestudio): add VoiceStudio from upstream's flake

VoiceStudio ships its own flake that builds the Electron app, the Rust
dictation helper and the OmniVoice GGUF runtime. Re-export it instead of
repackaging: its package needs electron_44-bin, which our pinned nixpkgs
lacks, so the input keeps its own nixpkgs rather than following ours.

Build and upstream's six packaging checks pass on x86_64-linux.

Refs: nix-overlay-kk7
This commit is contained in:
2026-11-20 13:09:42 +03:00
parent 0fac71c3d9
commit 5d96850f8a
5 changed files with 65 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{
pkgs,
inputs,
...
}:
# Upstream's flake builds the app against its own pinned nixpkgs (see the
# comment in flake.nix), so there is nothing to re-derive here. Only the first
# run touches the network: the backend bootstraps itself with uv into
# ~/.local/share, exactly like the published AppImage.
# Upstream builds the desktop package for x86_64-linux only.
let
package = inputs.voicestudio.packages.${pkgs.stdenv.hostPlatform.system}.default or null;
in
if package == null then
{
meta.platforms = [ "x86_64-linux" ];
}
else
package.overrideAttrs (_: {
passthru = (package.passthru or { }) // {
category = "AI Audio";
};
})