From 327d2cb15631b78408af4176a943b56f07f66822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 21 Jun 2026 20:13:37 +0200 Subject: [PATCH] home-assistant-custom-lovelace-modules.custom-brand-icons: init at 2026.06.2 --- .../custom-brand-icons/package.nix | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-lovelace-modules/custom-brand-icons/package.nix diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/custom-brand-icons/package.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/custom-brand-icons/package.nix new file mode 100644 index 000000000000..7b59798efd22 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/custom-brand-icons/package.nix @@ -0,0 +1,45 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, +}: + +buildNpmPackage (finalAttrs: { + pname = "custom-brand-icons"; + version = "2026.06.2"; + + src = fetchFromGitHub { + owner = "elax46"; + repo = "custom-brand-icons"; + tag = finalAttrs.version; + hash = "sha256-tv8XrKiNEOQiaL+volIwdKiUSn/Y8L3Ot0z9A9HtH9w="; + }; + + npmDepsHash = "sha256-ZTl9+vXEBR3pvksaLWof8y1WnoL2tAL3KuPzZn7VjjE="; + + buildPhase = '' + runHook preBuild + + node custom-icons-builder.cjs + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + mkdir $out/ + cp -v dist/custom-brand-icons.js -t $out/ + + runHook postInstall + ''; + + meta = { + description = "Custom brand icons for Home Assistant"; + homepage = "https://github.com/elax46/custom-brand-icons"; + changelog = "https://github.com/elax46/custom-brand-icons/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.cc-by-nc-sa-40; + maintainers = with lib.maintainers; [ SuperSandro2000 ]; + platforms = lib.platforms.all; + }; +})