{ lib, namespace, pkgs, buildHomeAssistantComponent, ... }: let inherit (lib.trivial) importJSON; inherit (lib.${namespace}) selectVariant mkAllSources; versionSpec = importJSON ./version.json; selected = selectVariant versionSpec null null; sources = mkAllSources pkgs selected; src-meta = selected.sources.anycubic; version = if src-meta ? tag then src-meta.tag else src-meta.rev; in buildHomeAssistantComponent { owner = src-meta.owner; domain = "anycubic_wifi"; inherit version; src = sources.anycubic; nativeBuildInputs = [ pkgs.${namespace}.uart-wifi ]; meta = { changelog = "https://github.com/adamoutler/anycubic-homeassistant/releases/tag/${version}"; description = "This is a library to provide support for Mono X Printers."; homepage = "https://github.com/adamoutler/anycubic-homeassistant"; maintainers = [ ]; }; }