nixos-configs/legacyPackages/hass-components/default.nix
matt1432 b47ba67e64
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): add tuya-local integration
2024-09-30 12:06:05 -04:00

24 lines
876 B
Nix

{pkgs, ...} @ inputs:
pkgs.lib.makeScope pkgs.newScope (hass: let
spotPython3Packages = pkgs.python3Packages.override {
overrides = self: super: rec {
smartinspect = pkgs.callPackage ./spotifyplus/smartinspect.nix {
inherit (inputs) smartinspect-src;
python3Packages = spotPython3Packages;
};
spotifywebapi = pkgs.callPackage ./spotifyplus/spotifywebapi.nix {
inherit (inputs) spotifywebapi-src;
inherit smartinspect;
python3Packages = spotPython3Packages;
};
};
};
buildHassComponent = file: extraArgs:
hass.callPackage file (inputs // extraArgs // {});
in {
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
tuya-local = buildHassComponent ./tuya-local {};
spotifyplus = buildHassComponent ./spotifyplus {python3Packages = spotPython3Packages;};
})