From c0b34e03b99b0913d9ac282a94e2239e5bfdf918 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Tue, 20 May 2025 21:12:50 +0300 Subject: [PATCH] home-assistant-custom-lovelace-modules.auto-entities: init at 1.15.1 --- .../auto-entities/package.nix | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-lovelace-modules/auto-entities/package.nix diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/auto-entities/package.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/auto-entities/package.nix new file mode 100644 index 000000000000..c855d8857b47 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/auto-entities/package.nix @@ -0,0 +1,35 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, +}: + +buildNpmPackage rec { + pname = "auto-entities"; + version = "1.15.1"; + + src = fetchFromGitHub { + owner = "thomasloven"; + repo = "lovelace-auto-entities"; + tag = "v${version}"; + hash = "sha256-dGTbF7KO59Flw470i5U+0/ROEZYKe0KH9Y2R4JVyvd8="; + }; + + npmDepsHash = "sha256-OvXlCqD9KI4D9xsTY7morOzXsB+3w12METm2uvcO9h8="; + + installPhase = '' + runHook preInstall + + install -D auto-entities.js $out/auto-entities.js + + runHook postInstall + ''; + + meta = with lib; { + description = "Automatically populate the entities-list of lovelace cards"; + homepage = "https://github.com/thomasloven/lovelace-auto-entities"; + changelog = "https://github.com/thomasloven/lovelace-auto-entities/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with maintainers; [ kranzes ]; + }; +}