nixos-configs/scopedPackages/hass-components/yamaha-soundbar/default.nix
matt1432 838df34dfb
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename legacyPackages to scopedPackages
2024-11-20 15:17:55 -05:00

22 lines
481 B
Nix

{
yamaha-soundbar-src,
buildHomeAssistantComponent,
python3Packages,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${yamaha-soundbar-src}/custom_components/yamaha_soundbar/manifest.json");
in
buildHomeAssistantComponent {
owner = "osk2";
inherit (manifest) domain version;
src = yamaha-soundbar-src;
propagatedBuildInputs = with python3Packages; [
async-upnp-client
chardet
validators
];
}