blob: 7395f5c0c07d78124e37b1334b1eb307a706fc92 (
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
|
{
lib,
stdenv,
fetchzip,
}:
stdenv.mkDerivation rec {
pname = "advanced-camera-card";
version = "7.6.5";
src = fetchzip {
url = "https://github.com/dermotduffy/advanced-camera-card/releases/download/v${version}/advanced-camera-card.zip";
hash = "sha256-q7zn/7xovGLTNq4FRdoEOMB3wy/IZ80QOYqVNLRNAZA=";
};
# TODO: build from source once yarn berry support lands in nixpkgs
dontBuild = true;
installPhase = ''
runHook preInstall
install -d $out
install -m0644 *.js $out/
runHook postInstall
'';
meta = {
changelog = "https://github.com/dermotduffy/advanced-camera-card/releases/tag/v${version}";
description = "A comprehensive camera card for Home Assistant";
homepage = "https://github.com/dermotduffy/advanced-camera-card";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
|