mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: xbindkeys: Refer to xbindkeys in xbindkeys_show.
* gnu/packages/xdisorg.scm (xbindkeys)[arguments]: Add a ‘patch-references’ phase.
This commit is contained in:
parent
72fabd8d6e
commit
2c9d481c90
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue