From 764714a1cf1976d19a7a42c857def0ed600c2641 Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Tue, 22 Oct 2024 21:52:03 +0200 Subject: [PATCH] home-assistant-custom-lovelace-modules.dirigera_platform: init at 2.3 --- .../dirigera_platform/package.nix | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/dirigera_platform/package.nix diff --git a/pkgs/servers/home-assistant/custom-components/dirigera_platform/package.nix b/pkgs/servers/home-assistant/custom-components/dirigera_platform/package.nix new file mode 100644 index 00000000000000..993150eb4af2e1 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/dirigera_platform/package.nix @@ -0,0 +1,47 @@ +{ + lib, + fetchFromGitHub, + buildHomeAssistantComponent, + dirigera, +}: + +buildHomeAssistantComponent rec { + owner = "sanjoyg"; + domain = "dirigera_platform"; + version = "2.3"; + + src = fetchFromGitHub { + owner = "sanjoyg"; + repo = "dirigera_platform"; + rev = version; + hash = "sha256-P4yjZ+SQSLSHI3m3wBlH9YlGlktURoGA1jFFxJ7B020="; + }; + + propagatedBuildInputs = [ + dirigera + + # (dirigera.overrideAttrs (_: { + # doCheck = false; + # })) + + # (dirigera.overrideAttrs (_: rec { + # version = "1.2.0"; + + # src = fetchFromGitHub { + # owner = "Leggin"; + # repo = "dirigera"; + # rev = "refs/tags/v${version}"; + # hash = "sha256-JmrKeHypWhqOWO0LpzNe1qyeXuYnMyZoM+2IQbz6WDU="; + # }; + + # doCheck = false; + # })) + ]; + + meta = with lib; { + description = "Home-assistant integration for IKEA Dirigera hub"; + homepage = "https://github.com/sanjoyg/dirigera_platform"; + maintainers = with maintainers; [ rhoriguchi ]; + license = licenses.mit; + }; +}