home-assistant-custom-lovelace-modules.card-mod: init at 3.4.3

This commit is contained in:
K900 2024-05-05 22:07:26 +03:00
parent 7b2f33ff45
commit d352723460
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "lovelace-card-mod";
version = "3.4.3";
src = fetchFromGitHub {
owner = "thomasloven";
repo = "lovelace-card-mod";
rev = "v${version}";
hash = "sha256-LFKOTu0SBeHpf8Hjvsgc/xOUux9d4lBCshdD9u7eO5o=";
};
npmDepsHash = "sha256-JJexFmVbDHi2JCiCpcDupzVf0xfwy+vqWILq/dLVcBo=";
installPhase = ''
runHook preInstall
mkdir $out
cp card-mod.js $out
runHook postInstall
'';
passthru.entrypoint = "card-mod.js";
meta = with lib; {
description = "Add CSS styles to (almost) any lovelace card";
homepage = "https://github.com/thomasloven/lovelace-card-mod";
license = licenses.mit;
maintainers = with maintainers; [ k900 ];
platforms = platforms.all;
};
}

View File

@ -6,6 +6,8 @@
button-card = callPackage ./button-card { };
card-mod = callPackage ./card-mod { };
light-entity-card = callPackage ./light-entity-card { };
mini-graph-card = callPackage ./mini-graph-card {};