2024-09-19 22:16:11 -04:00
|
|
|
{
|
2025-02-18 15:19:08 -05:00
|
|
|
# nix build inputs
|
2024-09-19 22:16:11 -04:00
|
|
|
buildHomeAssistantComponent,
|
2025-02-18 15:19:08 -05:00
|
|
|
extended-ollama-conversation-src,
|
|
|
|
# deps
|
2024-09-19 22:16:11 -04:00
|
|
|
python3Packages,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (builtins) fromJSON readFile;
|
|
|
|
|
|
|
|
manifest = fromJSON (readFile "${extended-ollama-conversation-src}/custom_components/extended_ollama_conversation/manifest.json");
|
|
|
|
in
|
|
|
|
buildHomeAssistantComponent {
|
|
|
|
owner = "TheNimaj";
|
|
|
|
|
|
|
|
inherit (manifest) domain version;
|
|
|
|
|
|
|
|
src = extended-ollama-conversation-src;
|
|
|
|
|
2024-09-22 20:22:37 -04:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace ./custom_components/extended_ollama_conversation/manifest.json \
|
2025-01-04 03:23:45 -05:00
|
|
|
--replace-warn "ollama~=0.3.0" "ollama>=0.3.0"
|
2024-09-22 20:22:37 -04:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
ollama
|
2024-09-19 22:16:11 -04:00
|
|
|
openai
|
|
|
|
];
|
2025-02-18 15:19:08 -05:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/TheNimaj/extended_ollama_conversation";
|
|
|
|
description = ''
|
|
|
|
Home Assistant custom component of conversation agent. It uses Ollama to control your devices.
|
|
|
|
'';
|
|
|
|
};
|
2024-09-19 22:16:11 -04:00
|
|
|
}
|