[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: gnu: xbindkeys: Refer to xbindkeys in xbindkeys_show.
From: |
guix-commits |
Subject: |
04/04: gnu: xbindkeys: Refer to xbindkeys in xbindkeys_show. |
Date: |
Tue, 2 Feb 2021 09:51:16 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 2c9d481c9098e18accd179f11edc1164e75f228e
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Feb 2 15:47:21 2021 +0100
gnu: xbindkeys: Refer to xbindkeys in xbindkeys_show.
* gnu/packages/xdisorg.scm (xbindkeys)[arguments]: Add a
‘patch-references’ phase.
---
gnu/packages/xdisorg.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4d1dc83..6b4d3f4 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -965,7 +965,14 @@ transparent text on your screen.")
(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