diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-07-18 07:46:04 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-07-31 21:55:46 -0400 |
commit | 573055b7ef93fa5fe0885ed3cca281983bf35eff (patch) | |
tree | da5d9bc42cffcd41972518b11070b01a4f2374a2 | |
parent | d15258d991767ec83450fc6ebdb8ff2f60870501 (diff) |
gnu: Add qtwebsockets, version 6.3.1.
* gnu/packages/qt.scm (qtwebsockets): New variable.
-rw-r--r-- | gnu/packages/qt.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index d8838ec239..106396a571 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1225,6 +1225,45 @@ WebSockets module provides C++ and QML interfaces that enable Qt applications to act as a server that can process WebSocket requests, or a client that can consume data received from the server, or both."))) +(define-public qtwebsockets + (package + (name "qtwebsockets") + (version "6.3.1") + (source (origin + (method url-fetch) + (uri (qt5-urls name version)) + (sha256 + (base32 + "06hj0pkdzjicmbiinjp1dk1ziz8cb3fgcwy7a0dxxjvzr680v64z")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DQT_BUILD_TESTS=ON") + #:phases #~(modify-phases %standard-phases + (delete 'check) ;move after install + (add-after 'install 'prepare-for-tests + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen") + (setenv "QML2_IMPORT_PATH" + (string-append #$output "/lib/qt6/qml:" + (getenv "QML2_IMPORT_PATH"))))) + (add-after 'prepare-for-tests 'check + (assoc-ref %standard-phases 'check)) + (add-after 'check 'delete-installed-tests + (lambda _ + (delete-file-recursively + (string-append #$output "/tests"))))))) + (native-inputs (list perl)) + (inputs (list qtbase qtdeclarative)) + (synopsis "Qt Web Sockets module") + (description "WebSocket is a web-based protocol designed to enable two-way +communication between a client application and a remote host. The Qt +WebSockets module provides C++ and QML interfaces that enable Qt applications +to act as a server that can process WebSocket requests, or a client that can +consume data received from the server, or both.") + (home-page (package-home-page qtbase)) + (license (package-license qtbase)))) + (define-public qtsensors (package (inherit qtsvg-5) (name "qtsensors") |