home-assistant-custom-lovelace-modules.weather-card: init at 1.5.0
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
This commit is contained in:
parent
54e4669c75
commit
841dd2b1a0
@ -37,6 +37,8 @@
|
||||
|
||||
valetudo-map-card = callPackage ./valetudo-map-card { };
|
||||
|
||||
weather-card = callPackage ./weather-card { };
|
||||
|
||||
zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { };
|
||||
}
|
||||
// lib.optionalAttrs pkgs.config.allowAliases {
|
||||
|
@ -0,0 +1,34 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "weather-card";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bramkragten";
|
||||
repo = "weather-card";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-pod5cayaHP+4vgdBgBRMQ7szkyz9HLaKVJWQX36XdTY=";
|
||||
};
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp dist/weather-card.js $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Weather Card with animated icons for Home Assistant Lovelace";
|
||||
homepage = "https://github.com/bramkragten/weather-card";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user