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
39 lines
880 B
Nix
39 lines
880 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "hourly-weather";
|
|
version = "6.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "decompil3d";
|
|
repo = "lovelace-hourly-weather";
|
|
rev = version;
|
|
hash = "sha256-o2whcxLcPQcSvv9aMpZxAk7iqGez2yqhwdB+zU7OwMY=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-C4ca6bTXzNmmzA5yK825JwdOYa3KKtGK+eYuKxgspUY=";
|
|
|
|
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;
|
|
};
|
|
}
|