diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-03-27 16:09:50 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-14 15:11:42 -0400 |
commit | 111f2582228cdc6abe9245a554d2efddf514b5ca (patch) | |
tree | 2053041aa6d31bd36b54fca1ea65dcdcaba25718 /gnu/packages | |
parent | 2e3c732141b4e9a9d6003f8124cad51e9bb85847 (diff) |
gnu: qtserialbus: Update to 5.15.8.
* gnu/packages/qt.scm (qtserialbus): Update to 5.15.8.
[arguments]: Use gexps. Use search-input-file in the
patch-libsocketcan-reference phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/qt.scm | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 596a7a86d3..c9fd99492f 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1739,29 +1739,28 @@ compositor libraries.") interacting with serial ports from within Qt."))) (define-public qtserialbus - (package (inherit qtsvg-5) + (package + (inherit qtsvg-5) (name "qtserialbus") - (version "5.15.5") + (version "5.15.8") (source (origin - (method url-fetch) - (uri (qt-urls name version)) - (sha256 - (base32 - "180gm1jvqfn0h3251zafdd1wd3af00phwaa5qljsbrj6s6ywj79j")))) + (method url-fetch) + (uri (qt-urls name version)) + (sha256 + (base32 + "0ws3pjbp4g8f49k8q0qa5hgyisbyk3m7kl8pwzkfws048glvz570")))) (arguments (substitute-keyword-arguments (package-arguments qtsvg-5) ((#:phases phases '%standard-phases) - `(modify-phases ,phases - (add-after 'unpack 'patch-libsocketcan-reference - (lambda* (#:key inputs #:allow-other-keys) - (let* ((libcansocket (assoc-ref inputs "libsocketcan")) - (libcansocket.so (string-append libcansocket - "/lib/libsocketcan.so"))) - (substitute* "src/plugins/canbus/socketcan/libsocketcan.cpp" - (("QStringLiteral\\(\"socketcan\"\\)") - (format #f "QStringLiteral(~s)" libcansocket.so)))))))))) - (inputs - (list libsocketcan qtbase-5 qtserialport)) + #~(modify-phases #$phases + (add-after 'unpack 'patch-libsocketcan-reference + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/plugins/canbus/socketcan/libsocketcan.cpp" + (("QStringLiteral\\(\"socketcan\"\\)") + (format #f "QStringLiteral(~s)" + (search-input-file inputs + "lib/libsocketcan.so")))))))))) + (inputs (list libsocketcan qtbase-5 qtserialport)) (synopsis "Qt Serial Bus module") (description "The Qt Serial Bus API provides classes and functions to access the various industrial serial buses and protocols, such as CAN, ModBus, |