* Re: 177/332: gnu: Add qtvirtualkeyboard-5.
[not found] ` <20230802143658.71F65C038C2@vcs2.savannah.gnu.org>
@ 2023-08-21 16:45 ` Maxim Cournoyer
0 siblings, 0 replies; only message in thread
From: Maxim Cournoyer @ 2023-08-21 16:45 UTC (permalink / raw)
To: Zheng Junjie; +Cc: guix-devel
Hi,
guix-commits@gnu.org writes:
> iyzsong pushed a commit to branch kde-updates
> in repository guix.
>
> commit f370b61078dd0863631433f43d229196d5dc86a7
> Author: Zheng Junjie <873216071@qq.com>
> AuthorDate: Fri Jul 21 19:54:46 2023 +0800
>
> gnu: Add qtvirtualkeyboard-5.
>
> * gnu/packages/qt.scm (qtvirtualkeyboard-5): New variable.
[...]
> +(define-public qtvirtualkeyboard-5
> + (package
> + (inherit qtsvg-5)
> + (name "qtvirtualkeyboard")
> + (version %qt-version)
> + (source (origin
> + (method url-fetch)
> + (uri (qt-urls name version))
> + (sha256
> + (base32
> + "1skdjh9q4m438wwl8hwx3jc5hg22dmi5pwm3vd2yksxw6ny67rd7"))))
> + (arguments
> + (substitute-keyword-arguments (package-arguments qtsvg-5)
> + ((#:tests? _ #f) #f) ; TODO: pass 2 fail test
> + ((#:phases phases)
> + `(modify-phases ,phases
> + (add-before 'check 'set-display
> + (lambda _
> + ;; Make Qt render "offscreen", required for tests.
> + (setenv "QT_QPA_PLATFORM" "offscreen")
> + (setenv "DISPLAY" ":1")
> + (system "Xvfb +extension GLX :1 &")))
> + (delete 'check) ;move after the install phase
> + (add-after 'install 'check
> + (assoc-ref %standard-phases 'check))
> + (add-before 'check 'prepare-for-tests
> + (lambda* (#:key outputs #:allow-other-keys)
> + (setenv "QML2_IMPORT_PATH"
> + (string-append (assoc-ref outputs "out")
> + "/lib/qt5/qml:"
> + (getenv "QML2_IMPORT_PATH")))
> + (setenv "QT_PLUGIN_PATH"
> + (string-append (assoc-ref outputs "out")
> + "/lib/qt6/plugins:"
> + (getenv "QT_PLUGIN_PATH")))))))))
The above caught my eye; is the 'qt6' here a typo? I presume so, since
the package is a Qt 5 one. Probably the second setenv can be dropped
without any effect.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-21 16:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <169098696873.14750.13721993611432278644@vcs2.savannah.gnu.org>
[not found] ` <20230802143658.71F65C038C2@vcs2.savannah.gnu.org>
2023-08-21 16:45 ` 177/332: gnu: Add qtvirtualkeyboard-5 Maxim Cournoyer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).