fix avahi
This commit is contained in:
@@ -1,21 +1,26 @@
|
||||
{
|
||||
buildHomeAssistantComponent,
|
||||
fetchFromGitHub,
|
||||
pkgs,
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
buildHomeAssistantComponent,
|
||||
...
|
||||
}:
|
||||
buildHomeAssistantComponent rec {
|
||||
owner = "SecKatie";
|
||||
domain = "wyzeapi";
|
||||
version = "0.1.36";
|
||||
let
|
||||
inherit (lib.trivial) importJSON;
|
||||
inherit (lib.${namespace}) selectVariant mkAllSources;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = owner;
|
||||
repo = "ha-wyzeapi";
|
||||
rev = version;
|
||||
hash = "sha256-4i5Ne3LYV7DXn6F6e5MCVZhIdDYR7fe3tT2GeSmYb/k=";
|
||||
};
|
||||
versionSpec = importJSON ./version.json;
|
||||
selected = selectVariant versionSpec null null;
|
||||
sources = mkAllSources pkgs selected;
|
||||
src-meta = selected.sources.wyzeapi;
|
||||
version = if src-meta ? tag then src-meta.tag else src-meta.rev;
|
||||
in
|
||||
buildHomeAssistantComponent {
|
||||
owner = src-meta.owner;
|
||||
domain = "wyzeapi";
|
||||
inherit version;
|
||||
|
||||
src = sources.wyzeapi;
|
||||
|
||||
# wyzeapy must be built against HA's Python; pkgs.mjallen.wyzeapy uses home-assistant.python
|
||||
dependencies = [ pkgs.${namespace}.wyzeapy ];
|
||||
|
||||
15
packages/homeassistant/ha-wyzeapi/version.json
Normal file
15
packages/homeassistant/ha-wyzeapi/version.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"variables": {
|
||||
"version": "0.1.36"
|
||||
},
|
||||
"sources": {
|
||||
"wyzeapi": {
|
||||
"fetcher": "github",
|
||||
"owner": "SecKatie",
|
||||
"repo": "ha-wyzeapi",
|
||||
"tag": "0.1.36",
|
||||
"hash": "sha256-4i5Ne3LYV7DXn6F6e5MCVZhIdDYR7fe3tT2GeSmYb/k="
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user