guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: arandr: Use absolute path for xrandr.


From: Ricardo Wurmus
Subject: 01/01: gnu: arandr: Use absolute path for xrandr.
Date: Mon, 14 Aug 2017 04:01:50 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 28fd275cafcd8508a786bacac4d56ef927facbfa
Author: Arun Isaac <address@hidden>
Date:   Sun Aug 13 20:18:54 2017 +0530

    gnu: arandr: Use absolute path for xrandr.
    
    * gnu/packages/xdisorg.scm (arandr)[arguments]: Add configure phase.
---
 gnu/packages/xdisorg.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 31d39ea..ffc2e79 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -93,6 +93,14 @@
     (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\"")))
+             #t)))
        #:tests? #f)) ;no tests
     (inputs `(("pygtk" ,python2-pygtk)
               ("xrandr" ,xrandr)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]