nixpkgs/pkgs/servers/zigbee2mqtt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildNpmPackage
, fetchFromGitHub
, systemdMinimal
, nixosTests
, nix-update-script
}:
buildNpmPackage rec {
pname = "zigbee2mqtt";
version = "1.36.1";
2019-10-19 18:54:10 +00:00
src = fetchFromGitHub {
2019-10-19 18:54:10 +00:00
owner = "Koenkk";
repo = "zigbee2mqtt";
rev = version;
hash = "sha256-LZ25EWO4cOVnF0bWFKwGfnX7kpzNafp1X6+/JYxn6Ek=";
2019-10-19 18:54:10 +00:00
};
npmDepsHash = "sha256-6EorAqPLusWAEfTePn+O+tgZcv3g82mkPs2hSHPRRfo=";
buildInputs = [
systemdMinimal
];
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
passthru.updateScript = nix-update-script { };
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";
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 ];
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
};
}