From 9a0659560e732c1795fde39b2cdbd8d822612aea Mon Sep 17 00:00:00 2001 From: Pablo Ovelleiro Corral Date: Sat, 22 Jun 2024 16:54:18 +0200 Subject: [PATCH] home-assistant-custom-components.awtrix: init at unstable-2024-05-26 --- .../custom-components/awtrix/default.nix | 30 +++++++++++++++++++ .../custom-components/default.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/awtrix/default.nix diff --git a/pkgs/servers/home-assistant/custom-components/awtrix/default.nix b/pkgs/servers/home-assistant/custom-components/awtrix/default.nix new file mode 100644 index 000000000000..738dbbea5dbc --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/awtrix/default.nix @@ -0,0 +1,30 @@ +{ lib +, fetchFromGitHub +, buildHomeAssistantComponent +, requests +}: + +buildHomeAssistantComponent rec { + owner = "10der"; + domain = "awtrix"; + version = "unstable-2024-05-26"; + + src = fetchFromGitHub { + inherit owner; + repo = "homeassistant-custom_components-awtrix"; + rev = "329d8eec28478574b9f34778f96b5768f30be2ab"; + hash = "sha256-ucSaQWMS6ZwXHnw5Ct/STxpl1JjBRua3edrLvBAsdyw="; + }; + + propagatedBuildInputs = [ + requests + ]; + + meta = with lib; { + description = "Home-assistant integration for awtrix"; + homepage = "https://github.com/10der/homeassistant-custom_components-awtrix"; + maintainers = with maintainers; [ pinpox ]; + license = licenses.mit; + }; +} + diff --git a/pkgs/servers/home-assistant/custom-components/default.nix b/pkgs/servers/home-assistant/custom-components/default.nix index 8f5766aac0be..d0323d254989 100644 --- a/pkgs/servers/home-assistant/custom-components/default.nix +++ b/pkgs/servers/home-assistant/custom-components/default.nix @@ -6,6 +6,8 @@ auth-header = callPackage ./auth-header {}; + awtrix = callPackage ./awtrix {}; + better_thermostat = callPackage ./better_thermostat {}; emporia_vue = callPackage ./emporia_vue {};