2022-12-03 19:41:04 +01:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, nixosTests
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "zigbee2mqtt";
|
2022-12-03 19:44:53 +01:00
|
|
|
version = "1.28.4";
|
2019-10-19 20:54:10 +02:00
|
|
|
|
2022-12-03 19:41:04 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-10-19 20:54:10 +02:00
|
|
|
owner = "Koenkk";
|
|
|
|
repo = "zigbee2mqtt";
|
|
|
|
rev = version;
|
2022-12-03 19:44:53 +01:00
|
|
|
hash = "sha256-7eyCmgpbcjPrpFHscHTab6xRnL4ABvaYaaVcbUcynT8=";
|
2019-10-19 20:54:10 +02:00
|
|
|
};
|
|
|
|
|
2022-12-03 19:44:53 +01:00
|
|
|
npmDepsHash = "sha256-qQPn2BwXwXyzyPYYRmgIvzJENZ/XKWATcludorlFEZw=";
|
2020-08-03 03:54:40 +02:00
|
|
|
|
2022-12-03 19:41:04 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
|
2022-12-25 23:11:14 +01:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2021-11-27 19:54:27 +01:00
|
|
|
|
2022-12-03 19:41:04 +01:00
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/Koenkk/zigbee2mqtt/releases/tag/${version}";
|
2019-10-19 20:54:10 +02:00
|
|
|
description = "Zigbee to MQTT bridge using zigbee-shepherd";
|
2021-11-10 11:37:56 +01:00
|
|
|
homepage = "https://github.com/Koenkk/zigbee2mqtt";
|
2022-12-03 19:41:04 +01: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 20:54:10 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|