From 2453c821f0a89bd579ac06f6a84152f41ee0c68b Mon Sep 17 00:00:00 2001 From: Breland Miley Date: Thu, 7 Dec 2023 10:14:36 -0500 Subject: [PATCH] home-assistant-custom-components.adaptive_lighting: init at 1.19.1 --- .../adaptive_lighting/default.nix | 30 +++++++++++++++++++ .../custom-components/default.nix | 1 + 2 files changed, 31 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/adaptive_lighting/default.nix diff --git a/pkgs/servers/home-assistant/custom-components/adaptive_lighting/default.nix b/pkgs/servers/home-assistant/custom-components/adaptive_lighting/default.nix new file mode 100644 index 000000000000..1d2ae2228a5b --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/adaptive_lighting/default.nix @@ -0,0 +1,30 @@ +{ lib +, fetchFromGitHub +, buildHomeAssistantComponent +, ulid-transform +}: + +buildHomeAssistantComponent rec { + owner = "basnijholt"; + domain = "adaptive_lighting"; + version = "1.19.1"; + + src = fetchFromGitHub { + owner = "basnijholt"; + repo = "adaptive-lighting"; + rev = "refs/tags/${version}"; + hash = "sha256-AZsloE1vNQ9o2pg878J6I5qYXyI4fqYEvr18SrTocWo="; + }; + + propagatedBuildInputs = [ + ulid-transform + ]; + + meta = with lib; { + changelog = "https://github.com/basnijholt/adaptive-lighting/releases/tag/${version}"; + description = "Home Assistant Adaptive Lighting Plugin - Sun Synchronized Lighting"; + homepage = "https://github.com/basnijholt/adaptive-lighting"; + maintainers = with maintainers; [ mindstorms6 ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/servers/home-assistant/custom-components/default.nix b/pkgs/servers/home-assistant/custom-components/default.nix index 9e1800b39cb9..c3ca4467d7cd 100644 --- a/pkgs/servers/home-assistant/custom-components/default.nix +++ b/pkgs/servers/home-assistant/custom-components/default.nix @@ -2,6 +2,7 @@ }: { + adaptive_lighting = callPackage ./adaptive_lighting {}; miele = callPackage ./miele {}; prometheus_sensor = callPackage ./prometheus_sensor {}; }