nixos-configs/legacyPackages/hass-components/default.nix
matt1432 0d9c6bab75
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): force use of nixpkgs deps for custom integrations
2024-09-22 20:22:37 -04:00

23 lines
825 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 {};
spotifyplus = buildHassComponent ./spotifyplus {python3Packages = spotPython3Packages;};
})