1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 boost,
7}:
8stdenv.mkDerivation (finalAttrs: {
9 pname = "mqtt_cpp";
10 version = "13.2.2";
11
12 src = fetchFromGitHub {
13 owner = "redboltz";
14 repo = "mqtt_cpp";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-L1XscNriCBZF3PB2QXhA08s9aUqoQ1SwE9wnHHCUHvg=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 buildInputs = [ boost ];
22
23 meta = with lib; {
24 description = "MQTT client/server for C++14 based on Boost.Asio";
25 homepage = "https://github.com/redboltz/mqtt_cpp";
26 license = licenses.boost;
27 maintainers = with maintainers; [ spalf ];
28 platforms = platforms.unix;
29 };
30})