summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-03-26 23:25:26 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-04-03 18:05:12 -0400
commit4a301dae2bb33782933e2f112005b5d0ea813e62 (patch)
tree0a4cd9ba9ea790fb85708866b3ce34efdc497637
parent95757e062f1b5f889e16bfd756c0e9c584ecd4bf (diff)
downloadguix-4a301dae2bb33782933e2f112005b5d0ea813e62.tar.gz
gnu: Add qthttpserver.
* gnu/packages/qt.scm (qthttpserver): New variable.

Change-Id: I5413984d1eeb5ab99f7e52aabc805751e1b127fb
-rw-r--r--gnu/packages/qt.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 2d78a50d9a..57106477a8 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -5027,6 +5027,26 @@ simple editor for binary data, just like @code{QPlainTextEdit} is for text
 data.")
     (license license:lgpl2.1)))
 
+(define-public qthttpserver
+  (package
+    (name "qthttpserver")
+    (version "6.6.2")
+    (source (origin
+              (method url-fetch)
+              (uri (qt-url name version))
+              (sha256
+               (base32
+                "1qzw96y20qr1kc9wmys61wm568jsknvlgvh09bbqjcmm6dm3lhd2"))))
+    (build-system cmake-build-system)
+    (inputs (list qtbase qtwebsockets))
+    (home-page (package-home-page qtbase))
+    (synopsis "HTTP server module for Qt")
+    (description "Qt HTTP Server supports building HTTP server functionality
+into an application.  Common use cases are exposing the application's
+functionality through REST APIs, or making devices in a trusted environment
+configurable also via HTTP.")
+    (license license:gpl3+)))
+
 (define-public soqt
   (let ((commit-ref "fb8f655632bb9c9c60e0ff9fa69a5ba22d3ff99d")
         (revision "1"))