39 lines
880 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "hourly-weather";
version = "6.7.0";
src = fetchFromGitHub {
owner = "decompil3d";
repo = "lovelace-hourly-weather";
rev = version;
hash = "sha256-VrHgFup2hAnoxqJQGw23ZiPFpAwfgSLC97U+KHV3PKQ=";
};
npmDepsHash = "sha256-wXL1wLdBp8gkAfY29AS1fM/ZpCCoP1u9PTxDIahy1cg=";
env.CYPRESS_INSTALL_BINARY = "0";
installPhase = ''
runHook preInstall
mkdir $out
cp dist/hourly-weather.js $out
runHook postInstall
'';
meta = with lib; {
description = "Hourly weather card for Home Assistant. Visualize upcoming weather conditions as a colored horizontal bar";
homepage = "https://github.com/decompil3d/lovelace-hourly-weather";
license = licenses.mit;
maintainers = with maintainers; [ matthiasbeyer ];
platforms = platforms.all;
};
}