nixos-configs/legacyPackages/hass-components/extended-ollama-conversation/default.nix
matt1432 41707ac4ae
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): package spotifyplus
2024-09-19 22:16:11 -04:00

23 lines
513 B
Nix

{
extended-ollama-conversation-src,
buildHomeAssistantComponent,
openai,
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;
propagatedBuildInputs = [
python3Packages.ollama
openai
];
}