nixos-configs/legacyPackages/hass-components/home-llm.nix
matt1432 20d2fc6b76
All checks were successful
Discord / discord commits (push) Has been skipped
chore(hass): use proper terms for components
2024-09-04 11:53:51 -04:00

27 lines
684 B
Nix

{
buildHomeAssistantComponent,
home-llm-src,
python3Packages,
...
}: let
manifest = builtins.fromJSON (builtins.readFile "${home-llm-src}/custom_components/llama_conversation/manifest.json");
in
buildHomeAssistantComponent {
owner = "acon96";
inherit (manifest) domain version;
src = home-llm-src;
# FIXME: https://github.com/acon96/home-llm/issues/214
postPatch = ''
substituteInPlace ./custom_components/llama_conversation/manifest.json \
--replace-warn "huggingface-hub==0.23.0" "huggingface-hub>=0.23.0"
'';
propagatedBuildInputs = with python3Packages; [
huggingface-hub
requests
webcolors
];
}