home-assistant-custom-lovelace-modules.zigbee2mqtt-networkmap: unstable-2023-12-16 -> 0.9.0
Changelog: https://github.com/azuwis/zigbee2mqtt-networkmap/releases/tag/v0.9.0 - Format using nixfmt-rfc-style - Add passthru.updateScript - Add meta.changelog
This commit is contained in:
parent
50f535b067
commit
c5f4f78239
2 changed files with 20 additions and 8 deletions
|
@ -1,25 +1,26 @@
|
||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, fetchYarnDeps
|
fetchFromGitHub,
|
||||||
, mkYarnPackage
|
fetchYarnDeps,
|
||||||
|
mkYarnPackage,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkYarnPackage rec {
|
mkYarnPackage rec {
|
||||||
pname = "zigbee2mqtt-networkmap";
|
pname = "zigbee2mqtt-networkmap";
|
||||||
version = "unstable-2023-12-16";
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "azuwis";
|
owner = "azuwis";
|
||||||
repo = "zigbee2mqtt-networkmap";
|
repo = "zigbee2mqtt-networkmap";
|
||||||
rev = "7851357d78ebc0d1cc3cb5c661267a1e8b4c09e3";
|
rev = "v${version}";
|
||||||
hash = "sha256-x7RVy0stWT6+8f0/0VORVBgGpBbsbyJBC38xIxXhzos=";
|
hash = "sha256-K4DyrurC4AzzJCcB4CS9UlQbUQSWpR7PevA2JFFMRZM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
packageJSON = ./package.json;
|
packageJSON = ./package.json;
|
||||||
|
|
||||||
offlineCache = fetchYarnDeps {
|
offlineCache = fetchYarnDeps {
|
||||||
yarnLock = "${src}/yarn.lock";
|
yarnLock = "${src}/yarn.lock";
|
||||||
hash = "sha256-s+vnyUeJKkkA5G0AmsfIG0Zh4bYdDc2B5MSNvdwhjgs=";
|
hash = "sha256-h/5TWaIg8AfY6I/JBRmUF6yCCbxCMs9nRECWEaaK2to=";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
|
@ -49,8 +50,10 @@ mkYarnPackage rec {
|
||||||
doDist = false;
|
doDist = false;
|
||||||
|
|
||||||
passthru.entrypoint = "zigbee2mqtt-networkmap.js";
|
passthru.entrypoint = "zigbee2mqtt-networkmap.js";
|
||||||
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/azuwis/zigbee2mqtt-networkmap/releases/tag/v${version}";
|
||||||
description = "Home Assistant Custom Card to show Zigbee2mqtt network map";
|
description = "Home Assistant Custom Card to show Zigbee2mqtt network map";
|
||||||
homepage = "https://github.com/azuwis/zigbee2mqtt-networkmap";
|
homepage = "https://github.com/azuwis/zigbee2mqtt-networkmap";
|
||||||
maintainers = with maintainers; [ azuwis ];
|
maintainers = with maintainers; [ azuwis ];
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p nix-update
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
dirname="$(dirname "$0")"
|
||||||
|
|
||||||
|
# nix-update picks the wrong file `pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix`
|
||||||
|
nix-update --override-filename "$dirname/default.nix" home-assistant-custom-lovelace-modules.zigbee2mqtt-networkmap
|
Loading…
Reference in a new issue