Files
nix-config/packages/homeassistant/ha-bedjet/default.nix
mjallen18 bd799661b9 fix avahi
2026-03-31 13:33:42 -05:00

37 lines
914 B
Nix

{
lib,
namespace,
pkgs,
buildHomeAssistantComponent,
home-assistant,
...
}:
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.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
];
meta = {
changelog = "https://github.com/natekspencer/ha-bedjet/releases/tag/${version}";
description = "This project provides various entities to allow control of a BedJet device.";
homepage = "https://github.com/natekspencer/ha-bedjet";
maintainers = [ ];
};
}