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:
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user