Files
millerson-overlay.nix/packages/voicestudio/default.nix
T
alex 5d96850f8a 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
2026-11-20 13:09:42 +03:00

24 lines
662 B
Nix

{
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";
};
})