Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildHomeAssistantComponent, 4 fetchFromGitHub, 5 aiofiles, 6 distutils, 7 nix-update-script, 8}: 9 10buildHomeAssistantComponent rec { 11 owner = "smartHomeHub"; 12 domain = "smartir"; 13 version = "1.18.1"; 14 15 src = fetchFromGitHub { 16 owner = "smartHomeHub"; 17 repo = "SmartIR"; 18 tag = version; 19 hash = "sha256-gi5xlBOY6ek5roQKNqL7I0jrmJNPrxHHwEqOB/n2Itk="; 20 }; 21 22 dependencies = [ 23 aiofiles 24 distutils 25 ]; 26 27 postInstall = '' 28 cp -r codes $out/custom_components/smartir/ 29 ''; 30 31 passthru.updateScript = nix-update-script { }; 32 33 meta = with lib; { 34 changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}"; 35 description = "Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)"; 36 homepage = "https://github.com/smartHomeHub/SmartIR"; 37 maintainers = with maintainers; [ azuwis ]; 38 license = licenses.mit; 39 }; 40}