nixos-configs/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix
matt1432 de8b7fd2bb
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): use fork of wyoming-oww
2024-09-12 18:21:31 -04:00

32 lines
906 B
Nix

/*
This package uses a `wyoming-openwakeword` fork that makes use of
the upstream `openwakeword` instead of a fork: https://github.com/rhasspy/wyoming-openwakeword/pull/27
It also enforces the python version to 3.11, because tensorflow
cannot be used with 3.12 yet.
*/
pkgs: let
pyPkgs = pkgs.python311Packages;
speexdsp-ns = pkgs.callPackage ./speexdsp-ns.nix {
python3Packages = pyPkgs;
};
openwakeword = pkgs.callPackage ./openwakeword.nix {
inherit speexdsp-ns;
python3Packages = pyPkgs;
};
in
(pkgs.wyoming-openwakeword.override {
python3Packages = pyPkgs;
})
.overrideAttrs (o: {
src = pkgs.fetchFromGitHub {
owner = "rhasspy";
repo = "wyoming-openwakeword";
rev = "synesthesiam-20240627-openwakeword";
hash = "sha256-69oR2LHiUfx8j39nWp7XhG5xTvmOoPCLjSlH1CFvavo=";
};
propagatedBuildInputs = [openwakeword pyPkgs.wyoming];
})