gnu: xfce4-session: Allow xflock4 to use xset.

* gnu/packages/xfce.scm (xfce4-session):
[inputs]: Add xset.
[arguments]: Add 'patch-xflock' phase to use exact store path to 'xset'
in 'xflock4'.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Brendan Tildesley 2021-05-06 12:34:55 +10:00 committed by Ludovic Courtès
parent f0ae715da9
commit 3b69c30856
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -707,7 +707,14 @@ (define-public xfce4-session
(list (string-append "--with-xsession-prefix=" %output))
;; Disable icon cache update.
#:make-flags
'("gtk_update_icon_cache=true")))
'("gtk_update_icon_cache=true")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-xflock
(lambda* (#:key inputs #:allow-other-keys)
(let ((xset (assoc-ref inputs "xset")))
(substitute* "scripts/xflock4"
(("xset") (string-append xset "/bin/xset")))))))))
(native-inputs
`(("pkg-config" ,pkg-config)
("intltool" ,intltool)))
@ -717,7 +724,8 @@ (define-public xfce4-session
("polkit" ,polkit)
("libsm" ,libsm)
("libwnck" ,libwnck)
("libxfce4ui" ,libxfce4ui)))
("libxfce4ui" ,libxfce4ui)
("xset" ,xset)))
(home-page "https://www.xfce.org/")
(synopsis "Xfce session manager")
(description