1 { lib, stdenv, fetchFromGitHub, cmake, openssl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-dKQnepQAryAjImh2rX1jdgiKBtJQy9wzk/7rGQjUtPg=";
15 substituteInPlace src/MQTTVersion.c \
16 --replace "namebuf[60]" "namebuf[120]" \
17 --replace "lib%s" "$out/lib/lib%s"
20 nativeBuildInputs = [ cmake ];
22 buildInputs = [ openssl ];
24 cmakeFlags = [ "-DPAHO_WITH_SSL=TRUE" ];
27 description = "Eclipse Paho MQTT C Client Library";
28 homepage = "https://www.eclipse.org/paho/";
29 license = licenses.epl20;
30 maintainers = with maintainers; [ sikmir ];
31 platforms = platforms.unix;