depot/third_party/nixpkgs/pkgs/servers/home-assistant/custom-lovelace-modules/hourly-weather/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

38 lines
880 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "hourly-weather";
version = "6.2.0";
src = fetchFromGitHub {
owner = "decompil3d";
repo = "lovelace-hourly-weather";
rev = version;
hash = "sha256-dDWdVAVrZrZIyGG9gOyLohxRZ3DGfjbvW3gGCLqZr+A=";
};
npmDepsHash = "sha256-UzbMDlVOef6dO+tOeTHBBeuT578brklibbfma+VVYD8=";
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;
};
}