{ lib , rustPlatform , pkg-config , alsa-lib }: # luna-voiced — the push-to-talk voice loop for luna (Hermes Agent on mars). # Wiring (secrets, whisper model, systemd user unit) lives in # services/desktop/luna-voice.nix; this only builds the binary. # # cargoLock.lockFile rather than a cargoHash: the lockfile is committed, so a # dependency bump is a visible diff instead of a hash nobody can read. # # alsa-lib is cpal's backend even on a pipewire box — pipewire's ALSA # compatibility layer is what actually serves it, so there is no pipewire # build dependency here. rustPlatform.buildRustPackage { pname = "luna-voice"; version = "0.1.0"; src = ./luna-voice; cargoLock.lockFile = ./luna-voice/Cargo.lock; nativeBuildInputs = [ pkg-config ]; buildInputs = [ alsa-lib ]; meta = { description = "Push-to-talk voice loop for luna (Hermes Agent)"; mainProgram = "luna-voice"; platforms = lib.platforms.linux; }; }