Merge pull request #271788 from SuperSandro2000/light-entity-card
home-assistant-custom-lovelace-modules.light-entity-card: init at 6.1.0
This commit is contained in:
commit
80b0a35868
2 changed files with 41 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
|||
}:
|
||||
|
||||
{
|
||||
light-entity-card = callPackage ./light-entity-card { };
|
||||
|
||||
mini-graph-card = callPackage ./mini-graph-card {};
|
||||
|
||||
mini-media-player = callPackage ./mini-media-player {};
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "light-entity-card";
|
||||
version = "6.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ljmerza";
|
||||
repo = "light-entity-card";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-CJpRvgPf7+v9m/8/O2R+nut3PnyDPC8OTipyE+Brp9U=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-EZDTWtn3joikwiC5Kfn94+tXRDpBhMDHqHozfIkfbJ0=";
|
||||
|
||||
env.NODE_OPTIONS = "--openssl-legacy-provider";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp -v dist/light-entity-card.js* $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.entrypoint = "light-entity-card";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Control any light or switch entity";
|
||||
homepage = "https://github.com/ljmerza/light-entity-card";
|
||||
changelog = "https://github.com/ljmerza/light-entity-card/releases/tag/${version}";
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue