home-assistant-custom-lovelace-modules.apexcharts-card: init at 2.1.2

📈 A Lovelace card to display advanced graphs and charts based on
ApexChartsJS for Home Assistant
This commit is contained in:
Martin Weinelt 2024-07-25 20:19:13 +02:00
parent 3099ccf78e
commit f88eb88994
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "apexcharts-card";
version = "2.1.2";
src = fetchFromGitHub {
owner = "RomRider";
repo = "apexcharts-card";
rev = "v${version}";
hash = "sha256-bB/FCNVBK8vOfT3q9+qNssNJCtiN7ReqrsJoobf5dpU=";
};
npmDepsHash = "sha256-vT5/9/cHkUidqxQdoJK4U7mzuk8w/ryEaqKPxy5MNcY=";
installPhase = ''
runHook preInstall
mkdir $out
cp -R dist/* $out/
runHook postInstall
'';
meta = with lib; {
description = "A Lovelace card to display advanced graphs and charts based on ApexChartsJS for Home Assistant";
homepage = "https://github.com/RomRider/apexcharts-card";
changelog = "https://github.com/RomRider/apexcharts-card/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
platforms = platforms.all;
};
}

View File

@ -4,6 +4,8 @@
{
android-tv-card = callPackage ./android-tv-card { };
apexcharts-card = callPackage ./apexcharts-card { };
button-card = callPackage ./button-card { };
card-mod = callPackage ./card-mod { };