08eee7bd7a
So we don't need to manually maintain `pkgs/servers/home-assistant/custom-components/default.nix` anymore
35 lines
912 B
Nix
35 lines
912 B
Nix
{
|
|
lib,
|
|
buildHomeAssistantComponent,
|
|
fetchFromGitHub,
|
|
zigpy,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildHomeAssistantComponent rec {
|
|
owner = "AlexxIT";
|
|
domain = "xiaomi_gateway3";
|
|
version = "4.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AlexxIT";
|
|
repo = "XiaomiGateway3";
|
|
rev = "v${version}";
|
|
hash = "sha256-E3BekX0Xbp1R36+dYmOlsI2BTrdGjFsMoYYRIiBi1qU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ zigpy ];
|
|
|
|
dontBuild = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v${version}";
|
|
description = "Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN";
|
|
homepage = "https://github.com/AlexxIT/XiaomiGateway3";
|
|
maintainers = with maintainers; [ azuwis ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|