37 lines
888 B
Nix
37 lines
888 B
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "lovelace-scheduler";
|
|
version = "3.2.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nielsfaber";
|
|
repo = "scheduler-card";
|
|
rev = "v${version}";
|
|
hash = "sha256-LFKOTu0SBeHpf8Hjvsgc/xOUux9d4lBCshdD9u7eO5o=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-JJexFmVbDHi2JCiCpcDupzVf0xfwy+vqWILq/dLVcBo=";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp card-mod.js $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.entrypoint = "card-mod.js";
|
|
|
|
meta = with lib; {
|
|
description = "This is a Lovelace card for Home Assistant that can be used to create a time schedule for your smart devices. You can create new rules, modify existing rules and temporarily disable rules.";
|
|
homepage = "https://github.com/nielsfaber/scheduler-card";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|