mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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:
parent
3099ccf78e
commit
f88eb88994
@ -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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user