lovelace-simple-weather-card: init at 0.8.5
This commit is contained in:
parent
352ceb0255
commit
885b846798
38
pkgs/lovelace-simple-weather-card/package.nix
Normal file
38
pkgs/lovelace-simple-weather-card/package.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildNpmPackage,
|
||||||
|
fetchFromGitea,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "simple-weather-card";
|
||||||
|
version = "v0.8.5";
|
||||||
|
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "git.vimium.com";
|
||||||
|
owner = "jordan";
|
||||||
|
repo = "simple-weather-card";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-/4iIUKP8TRJIUWKbqI8n6tWxkTXMWktVUbAQvGoaeZ0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-pKMi+cN3fTT3/35BeExI7CCFwgTjEhvIoIt2YPi08Os=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir $out
|
||||||
|
install -m0644 dist/simple-weather-card-bundle.js $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.entrypoint = "simple-weather-card-bundle.js";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Minimalistic weather card for Home Assistant";
|
||||||
|
homepage = "https://github.com/kalkih/simple-weather-card";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user