mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-11 22:36:22 +01:00
gnu: polybar: Update to 3.6.3.
* gnu/packages/wm.scm (polybar): Update to 3.6.3. [phases]: Add patch-config-path for polybar to find its default configuration file in the store. [inputs]: Add libuv, required to build polybar. [native-inputs]: Remove python-2, no longer needed. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
dbebe6c0b4
commit
a5d8630e15
1 changed files with 14 additions and 6 deletions
|
@ -1469,19 +1469,29 @@ its size
|
||||||
(define-public polybar
|
(define-public polybar
|
||||||
(package
|
(package
|
||||||
(name "polybar")
|
(name "polybar")
|
||||||
(version "3.5.7")
|
(version "3.6.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://github.com/polybar/polybar/releases/"
|
(uri (string-append "https://github.com/polybar/polybar/releases/"
|
||||||
"download/" version "/polybar-" version ".tar.gz"))
|
"download/" version "/polybar-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1nr386jdlm8qkbdf23w7lyvbfhr362s90f957fawnyi1finhw8bk"))))
|
(base32 "19azx5dpfyfh0pv4q2fcrf4p7a0pc5d13m7lnv3qy8376mbmhmzj"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; Test is disabled because it requires downloading googletest from the
|
;; Test is disabled because it requires downloading googletest from the
|
||||||
;; Internet.
|
;; Internet.
|
||||||
'(#:tests? #f))
|
(list #:tests? #f
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
;; Make polybar find its default configuration file in the
|
||||||
|
;; store.
|
||||||
|
(add-after 'unpack 'patch-config-path
|
||||||
|
(lambda _
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("/etc") (string-append #$output "/etc")))
|
||||||
|
(substitute* "src/utils/file.cpp"
|
||||||
|
(("\"/etc\"") (string-append "\"" #$output "/etc\""))))))))
|
||||||
(inputs
|
(inputs
|
||||||
(list alsa-lib
|
(list alsa-lib
|
||||||
cairo
|
cairo
|
||||||
|
@ -1489,6 +1499,7 @@ its size
|
||||||
jsoncpp
|
jsoncpp
|
||||||
libmpdclient
|
libmpdclient
|
||||||
libnl
|
libnl
|
||||||
|
libuv
|
||||||
libxcb
|
libxcb
|
||||||
pulseaudio
|
pulseaudio
|
||||||
xcb-proto
|
xcb-proto
|
||||||
|
@ -1500,9 +1511,6 @@ its size
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("python-sphinx" ,python-sphinx) ; for the manual
|
("python-sphinx" ,python-sphinx) ; for the manual
|
||||||
;; XXX: "python" input must be located after "python-2", or the package
|
|
||||||
;; fails to build with "missing required python module: xcbgen".
|
|
||||||
("python-2" ,python-2) ; lib/xpp depends on python 2
|
|
||||||
("python" ,python))) ; xcb-proto depends on python 3
|
("python" ,python))) ; xcb-proto depends on python 3
|
||||||
(home-page "https://polybar.github.io/")
|
(home-page "https://polybar.github.io/")
|
||||||
(synopsis "Fast and easy-to-use status bar")
|
(synopsis "Fast and easy-to-use status bar")
|
||||||
|
|
Loading…
Add table
Reference in a new issue