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=";