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,20 +1,27 @@
{
lib,
namespace,
pkgs,
buildHomeAssistantComponent,
fetchFromGitHub,
home-assistant,
...
}:
buildHomeAssistantComponent rec {
owner = "greghesp";
domain = "bambu_lab";
version = "v2.2.21";
let
inherit (lib.trivial) importJSON;
inherit (lib.${namespace}) selectVariant mkAllSources;
src = fetchFromGitHub {
owner = owner;
repo = "ha-bambulab";
tag = version;
hash = "sha256-56aAJAsmn+PzLZijFQ9DbTfHSrbeNk+OM/ibu32UHtg=";
};
versionSpec = importJSON ./version.json;
selected = selectVariant versionSpec null null;
sources = mkAllSources pkgs selected;
src-meta = selected.sources.bambu_lab;
version = if src-meta ? tag then src-meta.tag else src-meta.rev;
in
buildHomeAssistantComponent {
owner = src-meta.owner;
domain = "bambu_lab";
inherit version;
src = sources.bambu_lab;
nativeBuildInputs = with home-assistant.python.pkgs; [
beautifulsoup4

View File

@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"variables": {
"version": "v2.2.21"
},
"sources": {
"bambu_lab": {
"fetcher": "github",
"owner": "greghesp",
"repo": "ha-bambulab",
"tag": "v2.2.21",
"hash": "sha256-56aAJAsmn+PzLZijFQ9DbTfHSrbeNk+OM/ibu32UHtg="
}
}
}