nixos-configs/scopedPackages/hass-components/default.nix
matt1432 35f1041105
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(hass-components): use same python3Packages
2025-01-10 23:59:29 -05:00

33 lines
980 B
Nix

{
lib,
pkgs,
self,
...
} @ inputs:
lib.makeScope pkgs.newScope (hass: let
inherit (self.lib) mergeAttrsList;
python3Packages = pkgs.python312Packages.override {
overrides = final: prev: (mergeAttrsList (map (x: x python3Packages final prev) [
(import ./spotifyplus/overrides.nix ({inherit pkgs;} // inputs))
(import ./tuya-local/overrides.nix {inherit pkgs;})
]));
};
buildHassComponent = file: extraArgs:
hass.callPackage file (inputs // extraArgs // {inherit python3Packages;});
in {
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
ha-fallback-conversation = buildHassComponent ./ha-fallback-conversation {};
material-symbols = buildHassComponent ./material-symbols {};
netdaemon = buildHassComponent ./netdaemon {};
spotifyplus = buildHassComponent ./spotifyplus {};
tuya-local = buildHassComponent ./tuya-local {};
yamaha-soundbar = buildHassComponent ./yamaha-soundbar {};
})