depot/third_party/nixpkgs/pkgs/servers/home-assistant/custom-components/smartir/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

38 lines
911 B
Nix

{ lib
, buildHomeAssistantComponent
, fetchFromGitHub
, aiofiles
, broadlink
}:
buildHomeAssistantComponent rec {
owner = "smartHomeHub";
domain = "smartir";
version = "1.17.9";
src = fetchFromGitHub {
owner = "smartHomeHub";
repo = "SmartIR";
rev = version;
hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic=";
};
propagatedBuildInputs = [
aiofiles
broadlink
];
dontBuild = true;
postInstall = ''
cp -r codes $out/custom_components/smartir/
'';
meta = with lib; {
changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";
description = "Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)";
homepage = "https://github.com/smartHomeHub/SmartIR";
maintainers = with maintainers; [ azuwis ];
license = licenses.mit;
};
}