mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
a211d94291
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, python3
|
|
, nixosTests
|
|
, nix-update-script
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "zigbee2mqtt";
|
|
version = "1.28.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Koenkk";
|
|
repo = "zigbee2mqtt";
|
|
rev = version;
|
|
hash = "sha256-7eyCmgpbcjPrpFHscHTab6xRnL4ABvaYaaVcbUcynT8=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-qQPn2BwXwXyzyPYYRmgIvzJENZ/XKWATcludorlFEZw=";
|
|
|
|
nativeBuildInputs = [
|
|
python3
|
|
];
|
|
|
|
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/Koenkk/zigbee2mqtt/releases/tag/${version}";
|
|
description = "Zigbee to MQTT bridge using zigbee-shepherd";
|
|
homepage = "https://github.com/Koenkk/zigbee2mqtt";
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|