mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add missing input to python-py3status and fix call path.
file is used to determine configuration file encoding and py3status fails to start when this tool is missing. * gnu/packages/python.scm (python-py3status)[inputs]: Add file. [arguments]: Modify phases to patch py3status to call file with an absolute path.
This commit is contained in:
parent
cca6941fee
commit
3eabcc7878
1 changed files with 14 additions and 1 deletions
|
@ -11494,8 +11494,21 @@ (define-public python-py3status
|
|||
(base32
|
||||
"0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds"))))
|
||||
(build-system python-build-system)
|
||||
(inputs
|
||||
`(("file" ,file)))
|
||||
(arguments
|
||||
'(#:tests? #f)) ; TODO: Requires many libraries not in Guix.
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; 'file' is used for detection of configuration file encoding
|
||||
;; let's make link the dependency to particular input
|
||||
(add-before 'build 'patch-file-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((file-path (assoc-ref inputs "file")))
|
||||
(substitute* "py3status/parse_config.py"
|
||||
(("check_output\\(\\['file'")
|
||||
(string-append "check_output(['" file-path "/bin/file'")))
|
||||
#t))))
|
||||
#:tests? #f)) ; TODO: Requires many libraries not in Guix.
|
||||
(home-page "https://github.com/ultrabug/py3status")
|
||||
(synopsis "Extensible i3status wrapper written in Python")
|
||||
(description "py3status is an i3status wrapper which extends i3status
|
||||
|
|
Loading…
Reference in a new issue