home-assistant-lovelace-modules.weather-chard-card: init at 2.4.11

This commit is contained in:
Martin Weinelt
2024-12-12 03:52:43 +01:00
parent 86fff9e3bf
commit d556120bcc
2 changed files with 2206 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,41 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
fetchNpmDeps,
}:
buildNpmPackage rec {
pname = "weather-chart-card";
version = "2.4.11";
src = fetchFromGitHub {
owner = "mlamberts78";
repo = "weather-chart-card";
rev = "V${version}";
hash = "sha256-JF7+XataMdUIGXfonF4XlZGitY9kqKony/U0/yw5jUA=";
};
postPatch = ''
rm -rf dist
ln -s ${./package-lock.json} ./package-lock.json
'';
npmDeps = fetchNpmDeps {
inherit src postPatch;
hash = "sha256-OJF8N7vPLRX0ec5gaQKAxLR227uoeuAU5z+QVNyOeTY=";
};
installPhase = ''
mkdir $out
cp -R dist/* $out/
'';
meta = {
description = "Custom weather card with charts";
homepage = "https://github.com/mlamberts78/weather-chart-card";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
platforms = lib.platforms.all;
};
}