2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "mini-graph-card";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.12.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kalkih";
|
|
|
|
repo = "mini-graph-card";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-o87c1tqZAQDlzxsxVdPZj1ei37nx7dVIZDzoQIUkmPk=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
npmDepsHash = "sha256-4GgFlSpqGxY7TCgyovqMSoLUin46bKN8tUQTdjv1eog=";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
cp -v dist/mini-graph-card-bundle.js $out/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.entrypoint = "mini-graph-card-bundle.js";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/kalkih/mini-graph-card/releases/tag/v${version}";
|
|
|
|
description = "Minimalistic graph card for Home Assistant Lovelace UI";
|
|
|
|
homepage = "https://github.com/kalkih/mini-graph-card";
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|