depot/third_party/nixpkgs/pkgs/servers/home-assistant/custom-lovelace-modules/apexcharts-card/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

37 lines
890 B
Nix

{
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;
};
}