mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
gnu: lxrandr: Depend on xrandr.
* gnu/packages/lxde.scm (lxrandr)[arguments]: Substitute xrandr's absolute file name. Reported by pinoaffe on #guix.
This commit is contained in:
parent
c0dd4140f6
commit
e6685186a5
1 changed files with 13 additions and 1 deletions
|
@ -137,7 +137,19 @@ (define-public lxrandr
|
|||
(base32
|
||||
"04n3vgh3ix12p8jfs4w0dyfq3anbjy33h7g53wbbqqc0f74xyplb"))))
|
||||
(build-system gnu-build-system)
|
||||
(inputs `(("gtk+" ,gtk+-2)))
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'xrandr-absolutely
|
||||
;; lxrandr is useless without xrandr and gives an unhelpful error
|
||||
;; message if it's not in $PATH, so make it a hard dependency.
|
||||
(lambda* (#:key input #:allow-other-keys)
|
||||
(substitute* "src/lxrandr.c"
|
||||
(("(\"|')xrandr\"" _ match)
|
||||
(string-append match (which "xrandr") "\"")))
|
||||
#t)))))
|
||||
(inputs `(("gtk+" ,gtk+-2)
|
||||
("xrandr" ,xrandr)))
|
||||
(native-inputs `(("intltool" ,intltool)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(synopsis "LXDE monitor configuration tool")
|
||||
|
|
Loading…
Reference in a new issue