nixpkgs/pkgs/servers/zigbee2mqtt/default.nix

26 lines
700 B
Nix
Raw Normal View History

{ pkgs, system, dataDir ? "/opt/zigbee2mqtt/data", nixosTests }:
2019-10-19 18:54:10 +00:00
let
package = (import ./node.nix { inherit pkgs system; }).package;
in
package.override rec {
2021-03-31 15:02:38 +00:00
version = "1.18.2";
2019-10-19 18:54:10 +00:00
reconstructLock = true;
src = pkgs.fetchFromGitHub {
owner = "Koenkk";
repo = "zigbee2mqtt";
rev = version;
2021-03-31 15:02:38 +00:00
sha256 = "sha256-95RhoJ0aqprzMNOUw9UbLosBwBtQvudKOQaBvBJohn8=";
2019-10-19 18:54:10 +00:00
};
2020-08-03 01:54:40 +00:00
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
meta = with pkgs.lib; {
2019-10-19 18:54:10 +00:00
description = "Zigbee to MQTT bridge using zigbee-shepherd";
license = licenses.gpl3;
homepage = https://github.com/Koenkk/zigbee2mqtt;
maintainers = with maintainers; [ sweber ];
platforms = platforms.linux;
};
}