me
/
guix
Archived
1
0
Fork 0

gnu: plover: Wrap so that icons can be found.

* gnu/packages/stenography.scm (plover): Wrap and add qtsvg to QT_PLUGIN_PATH
  This is needed for the icons in Plover's UI to appear.
[inputs]: Add BASH-MINIMAL.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
master
Parnikkapore 2023-01-02 08:08:03 +07:00 committed by Nicolas Goaziou
parent a6b8d4e336
commit f9cd9ed869
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 20 additions and 12 deletions

View File

@ -2,6 +2,7 @@
;;; Copyright © 2020, 2022 Nicolas Goaziou <mail@nicolasgoaziou.fr> ;;; Copyright © 2020, 2022 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021 Christopher Baines <mail@cbaines.net> ;;; Copyright © 2021 Christopher Baines <mail@cbaines.net>
;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net> ;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2023 Parnikkapore <poomklao@yahoo.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -26,6 +27,7 @@
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages bash)
#:use-module (gnu packages qt) #:use-module (gnu packages qt)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages libusb) #:use-module (gnu packages libusb)
@ -55,15 +57,15 @@
(package (package
(name "plover") (name "plover")
(version "4.0.0.dev12") (version "4.0.0.dev12")
(source (source (origin
(origin (method git-fetch)
(method git-fetch) (uri (git-reference
(uri (git-reference (url "https://github.com/openstenoproject/plover")
(url "https://github.com/openstenoproject/plover") (commit (string-append "v" version))))
(commit (string-append "v" version)))) (file-name (git-file-name name version))
(file-name (git-file-name name version)) (sha256
(sha256 (base32
(base32 "0vk6nh2gpn7f7rv2spi2a7n3m0d9kaan6r22mx3vwxprpbvrkbm8")))) "0vk6nh2gpn7f7rv2spi2a7n3m0d9kaan6r22mx3vwxprpbvrkbm8"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
(list (list
@ -77,8 +79,13 @@
"-p" "xvfb" "-p" "xvfb"
"test" "test"
;; FIXME: Ignore failing test. ;; FIXME: Ignore failing test.
"--ignore" "--ignore" "test/gui_qt/test_dictionaries_widget.py"))))
"test/gui_qt/test_dictionaries_widget.py"))))))) ;; Ensure that icons are found at runtime.
(add-after 'install 'wrap-executable
(lambda* (#:key inputs #:allow-other-keys)
(wrap-program (string-append #$output "/bin/plover")
`("QT_PLUGIN_PATH" prefix
,(list (search-input-directory inputs "/lib/qt5/plugins/")))))))))
(native-inputs (native-inputs
(list python-babel (list python-babel
python-mock python-mock
@ -86,7 +93,8 @@
python-pytest-qt python-pytest-qt
python-pytest-xvfb)) python-pytest-xvfb))
(inputs (inputs
(list python-appdirs (list bash-minimal
python-appdirs
python-dbus python-dbus
python-hidapi python-hidapi
python-plover-stroke python-plover-stroke