From df4a56b69c5736a0434215c659b4ae27a65bb32c Mon Sep 17 00:00:00 2001 From: Otto Sabart Date: Sat, 28 Dec 2024 21:00:00 +0100 Subject: [PATCH] home-assistant-custom-components.yoto_ha: init at 1.22.0 --- .../custom-components/yoto_ha/package.nix | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/yoto_ha/package.nix diff --git a/pkgs/servers/home-assistant/custom-components/yoto_ha/package.nix b/pkgs/servers/home-assistant/custom-components/yoto_ha/package.nix new file mode 100644 index 00000000000000..2e737cacc50c98 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/yoto_ha/package.nix @@ -0,0 +1,31 @@ +{ + lib, + fetchFromGitHub, + buildHomeAssistantComponent, + yoto-api, +}: + +buildHomeAssistantComponent rec { + owner = "cdnninja"; + domain = "yoto"; + version = "1.22.0"; + + src = fetchFromGitHub { + owner = "cdnninja"; + repo = "yoto_ha"; + rev = "refs/tags/v${version}"; + hash = "sha256-uaakUxuPxYqLnE2UK6ept91Lycvvhr0r9vZw44y1W4g="; + }; + + propagatedBuildInputs = [ + yoto-api + ]; + + meta = with lib; { + changelog = "https://github.com/cdnninja/yoto_ha/releases/tag/v${version}"; + description = "Home Assistant Integration for Yoto."; + homepage = "https://github.com/cdnninja/yoto_ha"; + maintainers = with maintainers; [ seberm ]; + license = licenses.mit; + }; +}