2022-12-03 18:41:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
2023-12-13 20:04:12 +00:00
|
|
|
, nodejs_18
|
2022-12-03 18:41:04 +00:00
|
|
|
, nixosTests
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "zigbee2mqtt";
|
2024-01-07 15:36:29 +00:00
|
|
|
version = "1.35.1";
|
2019-10-19 18:54:10 +00:00
|
|
|
|
2022-12-03 18:41:04 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-10-19 18:54:10 +00:00
|
|
|
owner = "Koenkk";
|
|
|
|
repo = "zigbee2mqtt";
|
|
|
|
rev = version;
|
2024-01-07 15:36:29 +00:00
|
|
|
hash = "sha256-ZOIV7PLBnPbisIStC+MNMZgf+Hw/+n4lONpgomRkZEE=";
|
2019-10-19 18:54:10 +00:00
|
|
|
};
|
|
|
|
|
2024-01-07 15:36:29 +00:00
|
|
|
npmDepsHash = "sha256-2WSuc9bmt5kK477c3AMOLFguvXZ2Nl+Qb67j5k7eL3o=";
|
2020-08-03 01:54:40 +00:00
|
|
|
|
2023-12-13 20:04:12 +00:00
|
|
|
nodejs = nodejs_18;
|
2022-12-03 18:41:04 +00:00
|
|
|
|
|
|
|
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
|
2022-12-25 22:11:14 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2021-11-27 18:54:27 +00:00
|
|
|
|
2022-12-03 18:41:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/Koenkk/zigbee2mqtt/releases/tag/${version}";
|
2019-10-19 18:54:10 +00:00
|
|
|
description = "Zigbee to MQTT bridge using zigbee-shepherd";
|
2021-11-10 10:37:56 +00:00
|
|
|
homepage = "https://github.com/Koenkk/zigbee2mqtt";
|
2022-12-03 18:41:04 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
longDescription = ''
|
|
|
|
Allows you to use your Zigbee devices without the vendor's bridge or gateway.
|
|
|
|
|
|
|
|
It bridges events and allows you to control your Zigbee devices via MQTT.
|
|
|
|
In this way you can integrate your Zigbee devices with whatever smart home infrastructure you are using.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ sweber hexa ];
|
2019-10-19 18:54:10 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "zigbee2mqtt";
|
2019-10-19 18:54:10 +00:00
|
|
|
};
|
|
|
|
}
|