nixos-configs/legacyPackages/hass-components/netdaemon/default.nix
matt1432 82a05091a5
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): setup netdaemon
2024-10-05 12:38:13 -04:00

21 lines
430 B
Nix

{
netdaemon-src,
buildHomeAssistantComponent,
python3Packages,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${netdaemon-src}/custom_components/netdaemon/manifest.json");
in
buildHomeAssistantComponent {
owner = "net-daemon";
inherit (manifest) domain version;
src = netdaemon-src;
propagatedBuildInputs = with python3Packages; [
awesomeversion
];
}