aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2017-08-13 20:18:54 +0530
committerRicardo Wurmus <rekado@elephly.net>2017-08-14 10:01:40 +0200
commit28fd275cafcd8508a786bacac4d56ef927facbfa (patch)
tree81fc260c0e65bfb9ad30345d525d303c8dfde751
parent9031d26aeb37c88d3ae2fd5401cb56fac477d044 (diff)
downloadguix-28fd275cafcd8508a786bacac4d56ef927facbfa.tar.gz
guix-28fd275cafcd8508a786bacac4d56ef927facbfa.zip
gnu: arandr: Use absolute path for xrandr.
* gnu/packages/xdisorg.scm (arandr)[arguments]: Add configure phase.
-rw-r--r--gnu/packages/xdisorg.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 31d39ea1ff..ffc2e790b5 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)))