[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/12: gnu: Add aws-c-mqtt.
From: |
guix-commits |
Subject: |
10/12: gnu: Add aws-c-mqtt. |
Date: |
Fri, 15 Oct 2021 18:02:48 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 2a0fcc31f723e20fd81eb3c6263c1bdad56f797f
Author: Greg Hogan <code@greghogan.com>
AuthorDate: Fri Apr 30 14:02:44 2021 +0000
gnu: Add aws-c-mqtt.
* gnu/packages/c.scm (aws-c-mqtt): New variable.
* gnu/packages/patches/aws-c-mqtt-cmake-prefix.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/local.mk | 1 +
gnu/packages/c.scm | 28 ++++++++++++++++++++++
gnu/packages/patches/aws-c-mqtt-cmake-prefix.patch | 13 ++++++++++
3 files changed, 42 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 4226618..508d5ac 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -876,6 +876,7 @@ dist_patch_DATA =
\
%D%/packages/patches/aws-c-event-stream-cmake-prefix.patch \
%D%/packages/patches/aws-c-http-cmake-prefix.patch \
%D%/packages/patches/aws-c-http-disable-networking-tests.patch\
+ %D%/packages/patches/aws-c-mqtt-cmake-prefix.patch \
%D%/packages/patches/aws-c-io-cmake-prefix.patch \
%D%/packages/patches/aws-c-io-disable-networking-tests.patch \
%D%/packages/patches/aws-c-s3-cmake-prefix.patch \
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index cd31c97..c639928 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -834,3 +834,31 @@ authentication.")
Service (S3) protocol for object storage.")
(home-page "https://github.com/awslabs/aws-c-s3";)
(license license:asl2.0)))
+
+(define-public aws-c-mqtt
+ (package
+ (name "aws-c-mqtt")
+ (version "0.7.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append "https://github.com/awslabs/"; name))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0qgblakp9n281z5w1kmmy9sjiz6s44kg487l76w7p43p1dp7s401"))
+ (patches (search-patches "aws-c-mqtt-cmake-prefix.patch"))))
+ (build-system cmake-build-system)
+ (arguments
+ '(#:configure-flags
+ '("-DBUILD_SHARED_LIBS=ON")))
+ (propagated-inputs
+ `(("aws-c-http" ,aws-c-http)
+ ("aws-c-io" ,aws-c-io)))
+ (synopsis "Amazon Web Services MQTT library")
+ (description
+ "This library provides a C99 implementation of the Message Queuing
+Telemetry Transport (MQTT) publish-subscribe messaging protocol.")
+ (home-page "https://github.com/awslabs/aws-c-mqtt";)
+ (license license:asl2.0)))
diff --git a/gnu/packages/patches/aws-c-mqtt-cmake-prefix.patch
b/gnu/packages/patches/aws-c-mqtt-cmake-prefix.patch
new file mode 100644
index 0000000..987024b
--- /dev/null
+++ b/gnu/packages/patches/aws-c-mqtt-cmake-prefix.patch
@@ -0,0 +1,13 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -7,6 +7,10 @@ if (POLICY CMP0069)
+ cmake_policy(SET CMP0069 NEW) # Enable LTO/IPO if available in the
compiler, see AwsCFlags
+ endif()
+
++if (DEFINED ENV{CMAKE_PREFIX_PATH})
++ set(CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
++endif()
++
+ if (DEFINED CMAKE_PREFIX_PATH)
+ file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH)
+ endif()
- branch master updated (30ddb0b -> ef0c659), guix-commits, 2021/10/15
- 01/12: gnu: s2n: Update to 1.0.10-7f43b102., guix-commits, 2021/10/15
- 02/12: gnu: Add aws-lc., guix-commits, 2021/10/15
- 04/12: gnu: aws-c-io: Update to 0.10.5., guix-commits, 2021/10/15
- 05/12: gnu: aws-c-cal: Update to 0.5.11., guix-commits, 2021/10/15
- 07/12: gnu: Add aws-c-compression., guix-commits, 2021/10/15
- 03/12: gnu: aws-c-common: Update to 0.6.2., guix-commits, 2021/10/15
- 06/12: gnu: Add aws-c-http., guix-commits, 2021/10/15
- 10/12: gnu: Add aws-c-mqtt.,
guix-commits <=
- 08/12: gnu: Add aws-c-auth., guix-commits, 2021/10/15
- 09/12: gnu: Add aws-c-s3., guix-commits, 2021/10/15
- 11/12: gnu: Add aws-crt-cpp., guix-commits, 2021/10/15
- 12/12: gnu: aws-sdk-cpp: Update to 1.9.92., guix-commits, 2021/10/15