File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
pkgs/servers/home-assistant/custom-lovelace-modules Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 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 { } ;
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments