fix avahi
This commit is contained in:
@@ -1,20 +1,27 @@
|
||||
{
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
buildHomeAssistantComponent,
|
||||
fetchFromGitHub,
|
||||
home-assistant,
|
||||
...
|
||||
}:
|
||||
buildHomeAssistantComponent rec {
|
||||
owner = "natekspencer";
|
||||
domain = "bedjet";
|
||||
version = "2.0.1";
|
||||
let
|
||||
inherit (lib.trivial) importJSON;
|
||||
inherit (lib.${namespace}) selectVariant mkAllSources;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = owner;
|
||||
repo = "ha-bedjet";
|
||||
tag = version;
|
||||
hash = "sha256-FAuL3A8wtGwt+GM180A7wMlIvJvGoLmxNLCtnomxV3o=";
|
||||
};
|
||||
versionSpec = importJSON ./version.json;
|
||||
selected = selectVariant versionSpec null null;
|
||||
sources = mkAllSources pkgs selected;
|
||||
src-meta = selected.sources.bedjet;
|
||||
version = if src-meta ? tag then src-meta.tag else src-meta.rev;
|
||||
in
|
||||
buildHomeAssistantComponent {
|
||||
owner = src-meta.owner;
|
||||
domain = "bedjet";
|
||||
inherit version;
|
||||
|
||||
src = sources.bedjet;
|
||||
|
||||
nativeBuildInputs = with home-assistant.python.pkgs; [
|
||||
beautifulsoup4
|
||||
|
||||
15
packages/homeassistant/ha-bedjet/version.json
Normal file
15
packages/homeassistant/ha-bedjet/version.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"variables": {
|
||||
"version": "2.0.1"
|
||||
},
|
||||
"sources": {
|
||||
"bedjet": {
|
||||
"fetcher": "github",
|
||||
"owner": "natekspencer",
|
||||
"repo": "ha-bedjet",
|
||||
"tag": "2.0.1",
|
||||
"hash": "sha256-FAuL3A8wtGwt+GM180A7wMlIvJvGoLmxNLCtnomxV3o="
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user