Skip to content

Commit 0153283

Browse files
committed
home-assistant-custom-lovelace-modules.vacuum-card: init at 2.10.1
1 parent ee61973 commit 0153283

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

pkgs/servers/home-assistant/custom-lovelace-modules/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939

4040
universal-remote-card = callPackage ./universal-remote-card { };
4141

42+
vacuum-card = callPackage ./vacuum-card { };
43+
4244
valetudo-map-card = callPackage ./valetudo-map-card { };
4345

4446
weather-card = callPackage ./weather-card { };
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
buildNpmPackage,
4+
fetchFromGitHub,
5+
}:
6+
7+
buildNpmPackage rec {
8+
pname = "vacuum-card";
9+
version = "2.10.1";
10+
11+
src = fetchFromGitHub {
12+
owner = "denysdovhan";
13+
repo = "vacuum-card";
14+
rev = "v${version}";
15+
hash = "sha256-NJeD6YhXmNNBuhRWjK74sTrxzXyGSbehm5lz05sNA3Y=";
16+
};
17+
18+
npmDepsHash = "sha256-x+pq58chBSgFVGr9Xtka5/MH/AHV0zMpyKfA/kEEXBM=";
19+
20+
installPhase = ''
21+
runHook preInstall
22+
23+
mkdir $out
24+
cp dist/vacuum-card.js $out
25+
26+
runHook postInstall
27+
'';
28+
29+
passthru.entrypoint = "vacuum-card.js";
30+
31+
meta = with lib; {
32+
description = "Vacuum cleaner card for Home Assistant Lovelace UI";
33+
homepage = "https://github.com/denysdovhan/vacuum-card";
34+
license = licenses.mit;
35+
maintainers = with maintainers; [ baksa ];
36+
platforms = platforms.all;
37+
};
38+
}

0 commit comments

Comments
 (0)