feat(mediabox): wyoming

This commit is contained in:
arcnmx 2024-09-12 17:15:06 -07:00
parent a5966c0724
commit a202d0703f
9 changed files with 283 additions and 2 deletions

View file

@ -5,7 +5,7 @@ in {
postPatch =
''
substituteInPlace api/types.go \
--replace 'UseMMap: nil,' 'UseMMap: &[]bool{true}[0],'
--replace-fail 'UseMMap: nil,' 'UseMMap: &[]bool{true}[0],'
''
+ old.postPatch or "";
doCheck = false;
@ -39,4 +39,16 @@ in {
inherit src patches;
};
});
wyoming-openwakeword = let
inherit (prev) wyoming-openwakeword;
drv = prev.wyoming-openwakeword.override {
python3Packages = final.python311Packages;
};
isPython312 = lib.versionAtLeast final.python3Packages.python.version "3.12";
isBroken = wyoming-openwakeword.version == "1.10.0" && isPython312;
in
if isBroken
then drv
else lib.warnIf isPython312 "wyoming-openwakeword override outdated" wyoming-openwakeword;
}