From 976d87f553a88e0e14d90901b017e7cb61f2fc2c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 29 Jul 2024 19:10:56 +0200 Subject: [PATCH] home-assistant-custom-lovelace-modules.template-entity-row: init at 1.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔹 Display whatever you want in an entities card row. --- .../custom-lovelace-modules/default.nix | 2 + .../template-entity-row/default.nix | 37 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-lovelace-modules/template-entity-row/default.nix diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix index 65d04254562f..5af0caced5ef 100644 --- a/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix @@ -28,6 +28,8 @@ rmv-card = callPackage ./rmv-card { }; + template-entity-row = callPackage ./template-entity-row { }; + valetudo-map-card = callPackage ./valetudo-map-card { }; zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { }; diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/template-entity-row/default.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/template-entity-row/default.nix new file mode 100644 index 000000000000..d4fbd31640ec --- /dev/null +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/template-entity-row/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, +}: + +buildNpmPackage rec { + pname = "template-entity-row"; + version = "1.4.1"; + + src = fetchFromGitHub { + owner = "thomasloven"; + repo = "lovelace-template-entity-row"; + rev = "v${version}"; + hash = "sha256-XQxdnRQywWki5mJhmQU5Etz2XSB8jYC32tFGLWb3IXs="; + }; + + npmDepsHash = "sha256-fJ+2LWXtUH4PiHhoVhMMxdCnCjfH+xzk+vjI44rKF60="; + + installPhase = '' + runHook preInstall + + mkdir $out + cp template-entity-row.js $out/ + + runHook postInstall + ''; + + meta = with lib; { + changelog = "https://github.com/thomasloven/lovelace-template-entity-row/releases/tag/${src.rev}"; + description = "Display whatever you want in an entities card row"; + homepage = "https://github.com/thomasloven/lovelace-template-entity-row"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + platforms = platforms.all; + }; +}