1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

home-assistant-custom-lovelace-modules.hourly-weather: init at 6.1.0 (#338391)

This commit is contained in:
Martin Weinelt 2024-08-30 18:07:52 +02:00 committed by GitHub
commit 01831ddb84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 40 additions and 0 deletions

View file

@ -14,6 +14,8 @@
decluttering-card = callPackage ./decluttering-card { };
hourly-weather = callPackage ./hourly-weather { };
lg-webos-remote-control = callPackage ./lg-webos-remote-control { };
light-entity-card = callPackage ./light-entity-card { };

View file

@ -0,0 +1,38 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "hourly-weather";
version = "6.1.0";
src = fetchFromGitHub {
owner = "decompil3d";
repo = "lovelace-hourly-weather";
rev = version;
hash = "sha256-IvwWeksEnq44PhCpUXVufYb8w5XEX9Dk0LMLLeM7Dps=";
};
npmDepsHash = "sha256-4uQfaYMg533xZobAl6+/9+FsHAFBm03wrF01nDa53Qg=";
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;
};
}