-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
/
default.nix
51 lines (39 loc) · 1.13 KB
/
default.nix
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
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib
, mkYarnPackage
, fetchFromGitHub
, fetchYarnDeps
}:
mkYarnPackage rec {
pname = "multiple-entity-row";
version = "4.5.1";
src = fetchFromGitHub {
owner = "benct";
repo = "lovelace-multiple-entity-row";
rev = "v${version}";
hash = "sha256-CXRgXyH1NUg7ssQhenqP0tXr1m2qOkHna3Rf30K3SjI=";
};
packageJSON = ./package.json;
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-8YIcQhbYf0e2xO620zVHEk/0sssBmzF/jCq+2za+D6E=";
};
buildPhase = ''
runHook preBuild
yarn --offline build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir $out
install -m0644 ./deps/multiple-entity-row/multiple-entity-row.js $out
runHook postInstall
'';
doDist = false;
meta = with lib; {
description = "Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI";
homepage = "https://github.com/benct/lovelace-multiple-entity-row";
changelog = "https://github.com/benct/lovelace-multiple-entity-row/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}