nixos-configs/legacyPackages/hass-components/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

29 lines
991 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 urllib3;
python3Packages = spotPython3Packages;
};
urllib3 = spotPython3Packages.callPackage ./spotifyplus/urllib3.nix {};
};
};
buildHassComponent = file: extraArgs:
hass.callPackage file (inputs // extraArgs // {});
in {
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {
openai = import ./extended-ollama-conversation/openai.nix pkgs;
};
spotifyplus = buildHassComponent ./spotifyplus {
python3Packages = spotPython3Packages;
};
})