home-assistant-custom-lovelace-modules.flower-card: init at 2026.2.0
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "flower-card";
|
||||
version = "2026.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "olen";
|
||||
repo = "lovelace-flower-card";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-EPahVDglhKjtPwIdu5HfUZ6KhMtTu/9YfY4VdsN+vyc=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-XGKGoFdbeUIx12ZGP8o2oSTJHVa+PZ6jwYSWiqjtSuM=";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp flower-card.js $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Lovelace Flower Card to match the custom plant integration";
|
||||
homepage = "https://github.com/Olen/lovelace-flower-card";
|
||||
changelog = "https://github.com/Olen/lovelace-flower-card/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user