Subject: [PATCH] gnu: arandr: Use absolute path for xrandr.
From: Arun Isaac <[email-masked]>
To: [email-masked]
Cc: Arun Isaac <[email-masked]>
Date: Sun, 13 Aug 2017 20:18:54 +0530
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/xdisorg.scm (arandr)[arguments]: Add configure phase.
---
 gnu/packages/xdisorg.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 31d39ea1f..a566d0afa 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -93,6 +93,13 @@
     (build-system python-build-system)
     (arguments
      `(#:python ,python-2     ;incompatible with python 3
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'configure
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "screenlayout/xrandr.py"
+               (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
+                                              "/bin/xrandr\""))))))
        #:tests? #f)) ;no tests
     (inputs `(("pygtk" ,python2-pygtk)
               ("xrandr" ,xrandr)))
-- 
2.13.4