check / check (push) Canceled after 0s
The agent's ears and voice: a server on the home server transcribes a clip (sox, whisper.cpp) and speaks text (piper), one job at a time. A gate hands the capability to whoever presents its key; the key comes from systemd's credentials, not argv. make test runs the unit tests in Nix's sandbox; make smoke starts a real server on localhost, speaks a phrase, and hears it back. Generated-by: Claude Opus 5.5
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{
|
|
description = "Peace and dignity at the TV: delegating the remotes to an agent";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
forAll = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
|
|
python = pkgs: pkgs.python3.withPackages (ps: [ ps.pyserial ]);
|
|
in
|
|
{
|
|
packages = forAll (pkgs: {
|
|
speech = pkgs.callPackage ./speech/server.nix { };
|
|
speech-js = pkgs.callPackage ./speech/default.nix { };
|
|
});
|
|
|
|
# nix develop --command make test
|
|
devShells = forAll (pkgs: {
|
|
default = pkgs.mkShellNoCC {
|
|
packages = [ (python pkgs) pkgs.gnumake pkgs.gawk pkgs.curl pkgs.picocom ];
|
|
};
|
|
});
|
|
|
|
checks = forAll (pkgs: {
|
|
ir-pico = pkgs.runCommand "ir-pico-doctests" { nativeBuildInputs = [ (python pkgs) ]; } ''
|
|
cd ${./ir-pico}
|
|
python3 -I -m doctest ir_commands.py pico_tty.py
|
|
touch $out
|
|
'';
|
|
speech = self.packages.${pkgs.system}.speech-js;
|
|
});
|
|
};
|
|
}
|