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

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
];
}