blob: 1b384501eb032cf5d59cda07840529fa05121966 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "vacuum-card";
version = "2.11.0";
src = fetchFromGitHub {
owner = "denysdovhan";
repo = "vacuum-card";
rev = "v${version}";
hash = "sha256-egWseYspxm+zkfFwTEBYQfBox3sswYMuOYqU6oEQTb4=";
};
npmDepsHash = "sha256-dfsKBTJV1QC8pmb/EIh4n5I9CDnOjy7+sPwQA/eLEi0=";
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;
};
}
|