From: Timo Wilken <timo@twilken.net>
To: help-guix@gnu.org
Subject: How do I package a Qt style plugin?
Date: Sat, 19 Nov 2022 21:55:26 +0100 [thread overview]
Message-ID: <20221119205526.horr5had2uttfnwm@timo-pc> (raw)
Hi Guixers,
I'm wondering what the right way is to package Qt plugins in Guix.
Specifically, I'd like to use Lightly: https://github.com/Luwx/Lightly
While I've managed to build it (see my package definition at the end
of this email), I can't seem to get Qt applications to actually use
Lightly as a style plugin.
For example, nheko (which is packaged in (gnu packages messaging)):
$ QT_STYLE_OVERRIDE=lightly nheko
QApplication: invalid style override 'lightly' passed, ignoring it.
Available styles: Windows, Fusion
If I `cat $(which nheko)', it turns out to be a shell script
containing a line like the following:
export QT_PLUGIN_PATH="/gnu/store/...-qtbase-5.15.5/lib/qt5/plugins:..."
...which does not contain a path to Lightly, even though it is
installed in the same Guix profile as nheko.
What do I need to do to make installed Qt applications like nheko
"see" the Lightly Qt plugin?
Thanks,
Timo
P.S.: Here's my full package definition for Lightly:
(define-public lightly
(package
(name "lightly")
(version "0.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Luwx/Lightly")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (base32 "0qkjzgjplgwczhk6959iah4ilvazpprv7yb809jy75kkp1jw8mwk"))))
(build-system qt-build-system) ; cmake-build-system should be fine too
(native-inputs
(list extra-cmake-modules qtbase-5 qtdeclarative-5 qtx11extras
kconfigwidgets kcoreaddons kdecoration kguiaddons
ki18n kiconthemes kwindowsystem
kde-frameworkintegration ; optional; Required to use KStyle convenience functionalities in style
kcmutils ; optional; Required for lightly-settings5 application to build
kwayland ; optional
pkg-config)) ; optional
(home-page "https://github.com/Luwx/Lightly")
(synopsis "A modern style for qt applications")
(description "Lightly is a fork of breeze theme style that aims
to be visually modern and minimalistic.")
(license license:gpl2+)))
reply other threads:[~2022-11-19 22:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221119205526.horr5had2uttfnwm@timo-pc \
--to=timo@twilken.net \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).