fix avahi
This commit is contained in:
@@ -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 ];
|
||||
|
||||
|
||||
15
packages/homeassistant/ha-anycubic/version.json
Normal file
15
packages/homeassistant/ha-anycubic/version.json
Normal 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="
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user