summaryrefslogtreecommitdiff
path: root/px/packages
diff options
context:
space:
mode:
authorFranz Geffke <m@f-a.nz>2025-06-20 09:28:23 +0100
committerFranz Geffke <m@f-a.nz>2025-06-20 09:28:23 +0100
commit8ec445a71b5b82b94d8edede477930b235148248 (patch)
treed37724fe9ea8f0fb636ae7a3a400491b0a9ddac1 /px/packages
parent3251cc112d2a6884dcd83d66e469034deaaaa238 (diff)
px: socket.io-client-cpp: Added
Diffstat (limited to 'px/packages')
-rw-r--r--px/packages/cpp.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/px/packages/cpp.scm b/px/packages/cpp.scm
index 89dab64..3081f93 100644
--- a/px/packages/cpp.scm
+++ b/px/packages/cpp.scm
@@ -17,6 +17,10 @@
#:use-module (gnu packages networking) ;; libnice
#:use-module (gnu packages cpp) ;; cli11
#:use-module (gnu packages compression) ;; xz
+ #:use-module (gnu packages boost) ;; boost
+ #:use-module (gnu packages web) ;; rapidjson, websocketpp
+ #:use-module (gnu packages tls) ;; openssl
+ #:use-module (gnu packages networking) ;; asio
#:use-module (px packages gstreamer) ;; gst-plugins-good-qmlgl
#:use-module (ice-9 match))
@@ -178,4 +182,33 @@ install(TARGETS webrtc-cpp-demo
(home-page "https://f-a.nz/")
(synopsis "WebRTC C++ library demo application")
(description "Demo application showcasing the webrtc-cpp library functionality.")
+ (license license:expat)))
+
+(define-public socket.io-client-cpp
+ (package
+ (name "socket.io-client-cpp")
+ (version "3.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/socketio/socket.io-client-cpp/archive/refs/tags/"
+ version ".tar.gz"))
+ (sha256
+ (base32 "15wmj0jvj0kb1xvlpkrrja7sblx0hcd0qby4qwld062nirmx6kgm"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:tests? #f
+ #:configure-flags '("-DCMAKE_BUILD_TYPE=Release")))
+ (inputs (list boost
+ rapidjson
+ openssl
+ websocketpp
+ asio))
+ (native-inputs (list pkg-config))
+ (home-page "https://github.com/socketio/socket.io-client-cpp")
+ (synopsis "Socket.IO C++ client library")
+ (description "A Socket.IO client library written in C++11 with support for
+modern Socket.IO server versions. Provides real-time bidirectional
+event-based communication.")
(license license:expat))) \ No newline at end of file