home-assistant-custom-lovelace-modules.vacuum-card: init at 2.10.1

This commit is contained in:
Golbinex 2024-11-18 21:00:39 +01:00
parent ee61973cb7
commit 015328399e
2 changed files with 40 additions and 0 deletions

View File

@ -39,6 +39,8 @@
universal-remote-card = callPackage ./universal-remote-card { };
vacuum-card = callPackage ./vacuum-card { };
valetudo-map-card = callPackage ./valetudo-map-card { };
weather-card = callPackage ./weather-card { };

View File

@ -0,0 +1,38 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "vacuum-card";
version = "2.10.1";
src = fetchFromGitHub {
owner = "denysdovhan";
repo = "vacuum-card";
rev = "v${version}";
hash = "sha256-NJeD6YhXmNNBuhRWjK74sTrxzXyGSbehm5lz05sNA3Y=";
};
npmDepsHash = "sha256-x+pq58chBSgFVGr9Xtka5/MH/AHV0zMpyKfA/kEEXBM=";
installPhase = ''
runHook preInstall
mkdir $out
cp dist/vacuum-card.js $out
runHook postInstall
'';
passthru.entrypoint = "vacuum-card.js";
meta = with lib; {
description = "Vacuum cleaner card for Home Assistant Lovelace UI";
homepage = "https://github.com/denysdovhan/vacuum-card";
license = licenses.mit;
maintainers = with maintainers; [ baksa ];
platforms = platforms.all;
};
}