home-assistant-custom-lovelace-modules.mini-graph-card: init at 0.11.0

Minimalistic graph card for Home Assistant Lovelace UI
https://github.com/kalkih/mini-graph-card
This commit is contained in:
Martin Weinelt
2023-11-10 22:00:30 +01:00
parent 9a941c58e5
commit e4f3fd5b0e
2 changed files with 39 additions and 0 deletions
@@ -2,4 +2,5 @@
}:
{
mini-graph-card = callPackage ./mini-graph-card {};
}
@@ -0,0 +1,38 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "mini-graph-card";
version = "0.11.0";
src = fetchFromGitHub {
owner = "kalkih";
repo = "mini-graph-card";
rev = "refs/tags/v${version}";
hash = "sha256-AC4VawRtWTeHbFqDJ6oQchvUu08b4F3ManiPPXpyGPc=";
};
npmDepsHash = "sha256-0ErOTkcCnMqMTsTkVL320SxZaET/izFj9GiNWC2tQtQ=";
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;
};
}