base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / pa / paho-mqtt-cpp / package.nix
blob313288a9144de751ad0a3cc560252e40095c7288
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   openssl,
7   paho-mqtt-c,
8   enableStatic ? stdenv.hostPlatform.isStatic,
9   enableShared ? !stdenv.hostPlatform.isStatic,
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "paho.mqtt.cpp";
14   version = "1.4.1";
16   src = fetchFromGitHub {
17     owner = "eclipse";
18     repo = "paho.mqtt.cpp";
19     rev = "v${finalAttrs.version}";
20     hash = "sha256-xP3M7d7ig19kP7MfOgI0S3UHGgzkJZyv4F+ayXqMtuE=";
21   };
23   nativeBuildInputs = [ cmake ];
25   buildInputs = [
26     openssl
27     paho-mqtt-c
28   ];
30   cmakeFlags = [
31     (lib.cmakeBool "PAHO_WITH_SSL" true)
32     (lib.cmakeBool "PAHO_BUILD_STATIC" enableStatic)
33     (lib.cmakeBool "PAHO_BUILD_SHARED" enableShared)
34   ];
36   meta = with lib; {
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;
42   };