diff options
author | github-actions[bot] | 2024-06-26 18:01:17 +0000 |
---|---|---|
committer | GitHub | 2024-06-26 18:01:17 +0000 |
commit | 677389dc9fc13a55896a987847f6b63abc9b7315 (patch) | |
tree | 8a8c7489d6eb43052215e94fe52766f6ddfa9021 /pkgs/by-name/pa | |
parent | cf7e62516195327988b7896343fcba727e247d16 (diff) | |
parent | db4c8df48c6aad835d4c4971c0b690ca8dc6c6ca (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r-- | pkgs/by-name/pa/paho-mqtt-cpp/package.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/paho-mqtt-cpp/package.nix b/pkgs/by-name/pa/paho-mqtt-cpp/package.nix new file mode 100644 index 000000000000..cf94f358cd24 --- /dev/null +++ b/pkgs/by-name/pa/paho-mqtt-cpp/package.nix @@ -0,0 +1,43 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + openssl, + paho-mqtt-c, + enableStatic ? stdenv.hostPlatform.isStatic, + enableShared ? !stdenv.hostPlatform.isStatic, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "paho.mqtt.cpp"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "eclipse"; + repo = "paho.mqtt.cpp"; + rev = "v${finalAttrs.version}"; + hash = "sha256-XAQSNjO34b2BPzAf7x4a+74UdKFH5lYNMJm4kE16nkA="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ + openssl + paho-mqtt-c + ]; + + cmakeFlags = [ + (lib.cmakeBool "PAHO_WITH_SSL" true) + (lib.cmakeBool "PAHO_BUILD_STATIC" enableStatic) + (lib.cmakeBool "PAHO_BUILD_SHARED" enableShared) + ]; + + meta = with lib; { + description = "Eclipse Paho MQTT C++ Client Library"; + homepage = "https://www.eclipse.org/paho/"; + license = licenses.epl10; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.unix; + }; +}) |