8 enableStatic ? stdenv.hostPlatform.isStatic,
9 enableShared ? !stdenv.hostPlatform.isStatic,
12 stdenv.mkDerivation (finalAttrs: {
13 pname = "paho.mqtt.cpp";
16 src = fetchFromGitHub {
18 repo = "paho.mqtt.cpp";
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-xP3M7d7ig19kP7MfOgI0S3UHGgzkJZyv4F+ayXqMtuE=";
23 nativeBuildInputs = [ cmake ];
31 (lib.cmakeBool "PAHO_WITH_SSL" true)
32 (lib.cmakeBool "PAHO_BUILD_STATIC" enableStatic)
33 (lib.cmakeBool "PAHO_BUILD_SHARED" enableShared)
37 description = "Eclipse Paho MQTT C++ Client Library";
38 homepage = "https://www.eclipse.org/paho/";
39 license = licenses.epl10;
40 maintainers = with maintainers; [ sikmir ];
41 platforms = platforms.unix;