gnu: arandr: Use absolute path for xrandr.

* gnu/packages/xdisorg.scm (arandr)[arguments]: Add configure phase.
This commit is contained in:
Arun Isaac 2017-08-13 20:18:54 +05:30 committed by Ricardo Wurmus
parent 9031d26aeb
commit 28fd275caf
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,14 @@
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:python ,python-2 ;incompatible with python 3 `(#: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 #:tests? #f)) ;no tests
(inputs `(("pygtk" ,python2-pygtk) (inputs `(("pygtk" ,python2-pygtk)
("xrandr" ,xrandr))) ("xrandr" ,xrandr)))