gnu: xbindkeys: Refer to xbindkeys in xbindkeys_show.

* gnu/packages/xdisorg.scm (xbindkeys)[arguments]: Add a
‘patch-references’  phase.
This commit is contained in:
Tobias Geerinckx-Rice 2021-02-02 15:47:21 +01:00
parent 72fabd8d6e
commit 2c9d481c90
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -965,7 +965,14 @@ (define-public xbindkeys
(substitute* "xbindkeys_show"
(("^#!.*|^exec wish.*") "")
(("^# \\\\") (string-append "#!" (which "wish"))))
#t)))))
#t))
(add-after 'unpack 'patch-references
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* "xbindkeys_show"
(("\"(xbindkeys)\"" _ command)
(format #f "\"~a/bin/~a\"" out command)))
#t))))))
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs