From 34f1f566eb6e6030e4fcecbf81e5183245cfe206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 24 Jun 2026 18:16:52 +0200 Subject: [PATCH] home-assistant-custom-lovelace-modules.weather-radar-card: fix icons loading --- .../custom-lovelace-modules/weather-radar-card/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/home-assistant/custom-lovelace-modules/weather-radar-card/package.nix b/pkgs/servers/home-assistant/custom-lovelace-modules/weather-radar-card/package.nix index 27d07166f0f1..3cbdb19ab8f9 100644 --- a/pkgs/servers/home-assistant/custom-lovelace-modules/weather-radar-card/package.nix +++ b/pkgs/servers/home-assistant/custom-lovelace-modules/weather-radar-card/package.nix @@ -16,6 +16,11 @@ buildNpmPackage (finalAttrs: { hash = "sha256-ZEd27lt5S7pnGGzTnxLV6voEpzXjvRjubjmusLuISZg="; }; + postPatch = '' + substituteInPlace src/radar-toolbar.ts \ + --replace-fail "/local/community/weather-radar-card/" "/local/nixos-lovelace-modules/" + ''; + npmDepsFetcherVersion = 2; npmFlags = [ "--legacy-peer-deps" ]; npmDepsHash = "sha256-S3PZOcKBseohCKOUSRFCQj6fAJTrZLRD5916iB35rrc=";