gnu: surf: Add 'dmenu' and 'xprop' to 'inputs'.

'dmenu' and 'xprop' are necessary to open a new URL in surf.

* gnu/packages/suckless.scm (surf)[inputs]: Add dmenu and xprop.
[arguments]: Add 'set-dmenu-and-xprop-file-name' phase to patch the
paths to the 'dmenu' and 'xprop' binaries in surf's configuration file.

Signed-off-by: Kei Kebreau <kei@openmailbox.org>
This commit is contained in:
Mekeor Melire 2017-03-06 20:07:45 +01:00 committed by Kei Kebreau
parent 909de139e7
commit 45321beb7d
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 12 additions and 3 deletions

View File

@ -255,11 +255,20 @@ drawing.")
(string-append "PREFIX=" %output)) (string-append "PREFIX=" %output))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure)))) (delete 'configure)
;; Use the right file name for dmenu and xprop.
(add-before 'build 'set-dmenu-and-xprop-file-name
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "config.def.h"
(("dmenu") (string-append (assoc-ref inputs "dmenu") "/bin/dmenu"))
(("xprop") (string-append (assoc-ref inputs "xprop") "/bin/xprop")))
#t)))))
(inputs (inputs
`(("glib-networking" ,glib-networking) `(("dmenu" ,dmenu)
("glib-networking" ,glib-networking)
("gsettings-desktop-schemas" ,gsettings-desktop-schemas) ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
("webkitgtk" ,webkitgtk/gtk+-2))) ("webkitgtk" ,webkitgtk/gtk+-2)
("xprop" ,xprop)))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config))) `(("pkg-config" ,pkg-config)))
(home-page "http://surf.suckless.org/") (home-page "http://surf.suckless.org/")