2022-12-03 21:41:04 +03:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
2023-12-13 23:04:12 +03:00
|
|
|
, nodejs_18
|
2022-12-03 21:41:04 +03:00
|
|
|
, nixosTests
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "zigbee2mqtt";
|
2023-12-01 15:39:54 +03:00
|
|
|
version = "1.34.0";
|
2019-10-19 21:54:10 +03:00
|
|
|
|
2022-12-03 21:41:04 +03:00
|
|
|
src = fetchFromGitHub {
|
2019-10-19 21:54:10 +03:00
|
|
|
owner = "Koenkk";
|
|
|
|
repo = "zigbee2mqtt";
|
|
|
|
rev = version;
|
2023-12-01 15:39:54 +03:00
|
|
|
hash = "sha256-2D9WylfpetnEZdY4STIrGEU6Gg1gET/zf5p7Ou/Wm5Q=";
|
2019-10-19 21:54:10 +03:00
|
|
|
};
|
|
|
|
|
2023-12-01 15:39:54 +03:00
|
|
|
npmDepsHash = "sha256-MXTKZNERxryt7L42dHxKx7XfXByNQ67oU+4FKTd0u4U=";
|
2020-08-03 04:54:40 +03:00
|
|
|
|
2023-12-13 23:04:12 +03:00
|
|
|
nodejs = nodejs_18;
|
2022-12-03 21:41:04 +03:00
|
|
|
|
|
|
|
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
|
2022-12-26 01:11:14 +03:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2021-11-27 21:54:27 +03:00
|
|
|
|
2022-12-03 21:41:04 +03:00
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/Koenkk/zigbee2mqtt/releases/tag/${version}";
|
2019-10-19 21:54:10 +03:00
|
|
|
description = "Zigbee to MQTT bridge using zigbee-shepherd";
|
2021-11-10 13:37:56 +03:00
|
|
|
homepage = "https://github.com/Koenkk/zigbee2mqtt";
|
2022-12-03 21:41:04 +03: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 21:54:10 +03:00
|
|
|
platforms = platforms.linux;
|
2023-11-24 00:09:35 +03:00
|
|
|
mainProgram = "zigbee2mqtt";
|
2019-10-19 21:54:10 +03:00
|
|
|
};
|
|
|
|
}
|