fix avahi

This commit is contained in:
mjallen18
2026-03-31 13:33:42 -05:00
parent 6ca55504f0
commit bd799661b9
59 changed files with 3758 additions and 3829 deletions

View File

@@ -1,21 +1,26 @@
{
buildHomeAssistantComponent,
fetchFromGitHub,
pkgs,
lib,
namespace,
pkgs,
buildHomeAssistantComponent,
...
}:
buildHomeAssistantComponent rec {
owner = "adamoutler";
domain = "anycubic_wifi";
version = "HACS-10";
let
inherit (lib.trivial) importJSON;
inherit (lib.${namespace}) selectVariant mkAllSources;
src = fetchFromGitHub {
owner = owner;
repo = "anycubic-homeassistant";
rev = version;
hash = "sha256-TfZadwgdEJR11MaL+nfIgEYld3trWg3v6lOHSoxQ98Q=";
};
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 ];

View File

@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"variables": {
"version": "HACS-10"
},
"sources": {
"anycubic": {
"fetcher": "github",
"owner": "adamoutler",
"repo": "anycubic-homeassistant",
"tag": "HACS-10",
"hash": "sha256-TfZadwgdEJR11MaL+nfIgEYld3trWg3v6lOHSoxQ98Q="
}
}
}