home-assistant-custom-lovelace-modules.clock-weather-card: init at 2.8.7 (#377369)

This commit is contained in:
Martin Weinelt 2025-01-27 19:37:43 +01:00 committed by GitHub
commit f83ce36690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,49 @@
{
lib,
fetchFromGitHub,
stdenvNoCC,
fetchYarnDeps,
nodejs,
yarnConfigHook,
yarnBuildHook,
}:
stdenvNoCC.mkDerivation rec {
pname = "clock-weather-card";
version = "2.8.7";
src = fetchFromGitHub {
owner = "pkissling";
repo = "clock-weather-card";
tag = "v${version}";
hash = "sha256-ylJNI0DE+3j8EZFpUmuuBnII8nBMrJ5bhlGVh3M25eo=";
};
offlineCache = fetchYarnDeps {
yarnLock = src + "/yarn.lock";
hash = "sha256-EUuPF2kS6CaJ2MUYoBocLOQyOgkhRHd34ul+efJua7Q=";
};
nativeBuildInputs = [
nodejs
yarnConfigHook
yarnBuildHook
];
installPhase = ''
runHook preInstall
mkdir $out
cp ./dist/clock-weather-card.js $out/
runHook postInstall
'';
meta = {
description = "A Home Assistant Card indicating today's date/time, along with an iOS inspired weather forecast for the next days with animated icons";
homepage = "https://github.com/pkissling/clock-weather-card";
changelog = "https://github.com/pkissling/clock-weather-card/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ oddlama ];
platforms = lib.platforms.all;
};
}