Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
924 B
Nix
41 lines
924 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "light-entity-card";
|
|
version = "6.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ljmerza";
|
|
repo = "light-entity-card";
|
|
tag = version;
|
|
hash = "sha256-DtpNKcnxMWbKwfIwo9R2g2Vux9oAjTI0URixGC41qeA=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-EZDTWtn3joikwiC5Kfn94+tXRDpBhMDHqHozfIkfbJ0=";
|
|
|
|
env.NODE_OPTIONS = "--openssl-legacy-provider";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp -v dist/light-entity-card.js* $out/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.entrypoint = "light-entity-card.js";
|
|
|
|
meta = with lib; {
|
|
description = "Control any light or switch entity";
|
|
homepage = "https://github.com/ljmerza/light-entity-card";
|
|
changelog = "https://github.com/ljmerza/light-entity-card/releases/tag/${version}";
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|