mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(mediabox): wyoming
This commit is contained in:
parent
a5966c0724
commit
a202d0703f
9 changed files with 283 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue