Files
mjallen18 70002a19e2 hmm
2026-04-07 18:39:42 -05:00

43 lines
1004 B
Nix
Executable File

{
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.ge_home;
version = src-meta.tag or src-meta.rev;
in
buildHomeAssistantComponent {
inherit (src-meta) owner;
domain = "ge_home";
inherit version;
src = sources.ge_home;
# gehomesdk and magicattr must be built against HA's Python
dependencies = with pkgs.${namespace}; [
gehomesdk
magicattr
];
nativeBuildInputs = with home-assistant.python.pkgs; [
slixmpp
];
meta = {
changelog = "https://github.com/simbaja/ha_gehome/releases/tag/${version}";
description = "Integration for GE WiFi-enabled appliances into Home Assistant.";
homepage = "https://github.com/simbaja/ha_gehome";
maintainers = [ ];
};
}