home-assistant-custom-lovelace-modules.trash-card: init at 2.4.7

This commit is contained in:
Harsh Chokshi
2026-06-06 16:09:20 -07:00
parent 6cc0fc2ba4
commit 3f1fb205c2
@@ -0,0 +1,38 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage (finalAttrs: {
pname = "trash-card";
version = "2.4.7";
src = fetchFromGitHub {
owner = "idaho";
repo = "hassio-trash-card";
tag = finalAttrs.version;
hash = "sha256-Zf+iUcJs45eguaDJcuto6ccc/puormFajmYMc7Qpdsw=";
};
npmDepsHash = "sha256-zvsJASztDfecn+FRvQPmT0vIblaCD11eBM9LLq+VFrg=";
installPhase = ''
runHook preInstall
mkdir $out
cp dist/trashcard.js $out/
runHook postInstall
'';
passthru.entrypoint = "trashcard.js";
meta = {
description = "Custom Home Assistant card that displays your current and upcoming trash collection schedule.";
homepage = "https://github.com/idaho/hassio-trash-card";
changelog = "https://github.com/idaho/hassio-trash-card/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.hchokshi ];
};
})