home-assistant-custom-lovelace-modules.card-mod: init at 3.4.3
This commit is contained in:
parent
7b2f33ff45
commit
d352723460
@ -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;
|
||||
};
|
||||
}
|
@ -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 {};
|
||||
|
Loading…
Reference in New Issue
Block a user