depot/pkgs/servers/home-assistant/custom-lovelace-modules/hourly-weather/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
880 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "hourly-weather";
version = "6.4.0";
src = fetchFromGitHub {
owner = "decompil3d";
repo = "lovelace-hourly-weather";
rev = version;
hash = "sha256-Aaeo3dL7N2vRTQU6bEj+jfxUAclI+8ROAUuF0PeOdw8=";
};
npmDepsHash = "sha256-unTZvllmfEBXWgEbObJWMPpEJzgrihKKK1eMREWpbVE=";
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;
};
}