fix avahi
This commit is contained in:
@@ -1,22 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
buildHomeAssistantComponent,
|
||||
fetchFromGitHub,
|
||||
home-assistant,
|
||||
...
|
||||
}:
|
||||
buildHomeAssistantComponent rec {
|
||||
owner = "HASwitchPlate";
|
||||
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.openhasp;
|
||||
version = if src-meta ? tag then src-meta.tag else src-meta.rev;
|
||||
in
|
||||
buildHomeAssistantComponent {
|
||||
owner = src-meta.owner;
|
||||
domain = "openhasp";
|
||||
version = "0.7.8";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = owner;
|
||||
repo = "openHASP-custom-component";
|
||||
rev = version;
|
||||
hash = "sha256-5h1EqwpnsmWexqB3J/X4OcN9bfBYUxGxLF1Hrmoi5LY=";
|
||||
};
|
||||
src = sources.openhasp;
|
||||
|
||||
# Use HA's own Python (3.14) packages to satisfy the manifest check for jsonschema
|
||||
# Use HA's own Python packages to satisfy the manifest check for jsonschema
|
||||
nativeBuildInputs = [ home-assistant.python.pkgs.jsonschema ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user