gnu: xterm: Fix uxterm in pure environments.

* gnu/packages/xorg.scm (xterm)[arguments]: Add a 'patch-file-names
phase.
This commit is contained in:
Tobias Geerinckx-Rice 2021-03-14 12:42:44 +01:00
parent 20d090f435
commit fcb122b4ed
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -6087,7 +6087,19 @@ (define-public xterm
'(#:configure-flags '("--enable-wide-chars" "--enable-load-vt-fonts"
"--enable-i18n" "--enable-doublechars"
"--enable-luit" "--enable-mini-luit")
#:tests? #f))
#:tests? #f ; no test suite
#:phases
(modify-phases %standard-phases
(add-after 'build 'patch-file-names
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* "uxterm"
(("([ `\\|])(sh|sed|awk|xmessage) " _ prefix command)
(string-append prefix (which command) " "))
(("(`|\"|LANG=C )(locale) " _ prefix command)
(string-append prefix (which command) " "))
(("=xterm")
(string-append "=" out "/bin/xterm")))))))))
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs