nixos-configs/legacyPackages/hass-components/netdaemon/default.nix

22 lines
430 B
Nix
Raw Normal View History

2024-10-05 12:38:13 -04:00
{
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
];
}