From f38abcc7a40f8c7628386807c53d58478fa28877 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 5 Sep 2024 11:59:42 +0300 Subject: [PATCH] home-assistant-custom-lovelace-modules.universal-remote-card: 3.9.4 -> 4.0.0, rename --- .../custom-lovelace-modules/default.nix | 14 +++++++++++--- .../default.nix | 14 +++++++------- .../dont-call-git.patch | 0 3 files changed, 18 insertions(+), 10 deletions(-) rename pkgs/servers/home-assistant/custom-lovelace-modules/{android-tv-card => universal-remote-card}/default.nix (54%) rename pkgs/servers/home-assistant/custom-lovelace-modules/{android-tv-card => universal-remote-card}/dont-call-git.patch (100%) diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix index f716973d14b9..6271c3681bb1 100644 --- a/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/default.nix @@ -1,9 +1,10 @@ -{ callPackage +{ + lib, + pkgs, + callPackage, }: { - android-tv-card = callPackage ./android-tv-card { }; - apexcharts-card = callPackage ./apexcharts-card { }; atomic-calendar-revive = callPackage ./atomic-calendar-revive { }; @@ -32,7 +33,14 @@ template-entity-row = callPackage ./template-entity-row { }; + universal-remote-card = callPackage ./universal-remote-card { }; + valetudo-map-card = callPackage ./valetudo-map-card { }; zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { }; } +// lib.optionalAttrs pkgs.config.allowAliases { + android-tv-card = + lib.warn "`home-assistant-custom-lovelace-modules.android-tv-card` has been renamed to `universal-remote-card`" + pkgs.home-assistant-custom-lovelace-modules.universal-remote-card; +} diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/android-tv-card/default.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/universal-remote-card/default.nix similarity index 54% rename from pkgs/servers/home-assistant/custom-lovelace-modules/android-tv-card/default.nix rename to pkgs/servers/home-assistant/custom-lovelace-modules/universal-remote-card/default.nix index 270f979bae86..97ef82f9cf9a 100644 --- a/pkgs/servers/home-assistant/custom-lovelace-modules/android-tv-card/default.nix +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/universal-remote-card/default.nix @@ -4,33 +4,33 @@ }: buildNpmPackage rec { - pname = "android-tv-card"; - version = "3.9.4"; + pname = "universal-remote-card"; + version = "4.0.0"; src = fetchFromGitHub { owner = "Nerwyn"; repo = "android-tv-card"; rev = version; - hash = "sha256-I50WNH/OL7O6YrZ0yf+uPJc05STJrjP8DS/wfaSBTHU="; + hash = "sha256-vQfXsEMYPga816X8eGYdjgpou38KfMtLcKjIGkT25xU="; }; patches = [ ./dont-call-git.patch ]; - npmDepsHash = "sha256-cuc7+QziclvJWp7MncLjkzfub5UbWYPVoUC/DZfs38g="; + npmDepsHash = "sha256-lFpgO/5JEmnl1wXLuy/OqncxPSx96BTydbprGEN+feM="; installPhase = '' runHook preInstall mkdir $out - cp dist/android-tv-card.min.js $out + cp dist/universal-remote-card.min.js $out runHook postInstall ''; - passthru.entrypoint = "android-tv-card.min.js"; + passthru.entrypoint = "universal-remote-card.min.js"; meta = with lib; { - description = "Universal Customizable TV Remote Card, with HA actions, super configurable touchpad, slider, haptics, and keyboard"; + description = "Completely customizable universal remote card for Home Assistant. Supports multiple platforms out of the box"; homepage = "https://github.com/Nerwyn/android-tv-card"; license = licenses.asl20; maintainers = with maintainers; [ k900 ]; diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/android-tv-card/dont-call-git.patch b/pkgs/servers/home-assistant/custom-lovelace-modules/universal-remote-card/dont-call-git.patch similarity index 100% rename from pkgs/servers/home-assistant/custom-lovelace-modules/android-tv-card/dont-call-git.patch rename to pkgs/servers/home-assistant/custom-lovelace-modules/universal-remote-card/dont-call-git.patch