gnu: qtbase: Open links properly without xdg-utils in profile
* gnu/packages/qt.scm (qtbase)[inputs]: Add XDG-UTILS. [arguments](patch-xdg-open): New phase. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
parent
8f1ab291bc
commit
6e332fd370
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
||||||
;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;; Copyright © 2018 John Soo <jsoo1@asu.edu>
|
;;; Copyright © 2018 John Soo <jsoo1@asu.edu>
|
||||||
;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
|
;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
|
||||||
|
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -363,6 +364,7 @@ (define-public qtbase
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("mesa" ,mesa)
|
`(("mesa" ,mesa)
|
||||||
|
;; Use which the package, not the function
|
||||||
("which" ,(@ (gnu packages base) which))))
|
("which" ,(@ (gnu packages base) which))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("alsa-lib" ,alsa-lib)
|
`(("alsa-lib" ,alsa-lib)
|
||||||
|
@ -407,6 +409,7 @@ (define-public qtbase
|
||||||
("xcb-util-keysyms" ,xcb-util-keysyms)
|
("xcb-util-keysyms" ,xcb-util-keysyms)
|
||||||
("xcb-util-renderutil" ,xcb-util-renderutil)
|
("xcb-util-renderutil" ,xcb-util-renderutil)
|
||||||
("xcb-util-wm" ,xcb-util-wm)
|
("xcb-util-wm" ,xcb-util-wm)
|
||||||
|
("xdg-utils" ,xdg-utils)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("bison" ,bison)
|
`(("bison" ,bison)
|
||||||
|
@ -428,6 +431,14 @@ (define-public qtbase
|
||||||
"qmake/library/qmakebuiltins.cpp")
|
"qmake/library/qmakebuiltins.cpp")
|
||||||
(("/bin/sh") (which "sh")))
|
(("/bin/sh") (which "sh")))
|
||||||
#t))
|
#t))
|
||||||
|
(add-after 'configure 'patch-xdg-open
|
||||||
|
(lambda _
|
||||||
|
(substitute* '("src/platformsupport/services/genericunix/qgenericunixservices.cpp")
|
||||||
|
(("^.*const char \\*browsers.*$" all)
|
||||||
|
(string-append "*browser = QStringLiteral(\""
|
||||||
|
(which "xdg-open")
|
||||||
|
"\"); return true; \n" all)))
|
||||||
|
#t))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
|
Loading…
Reference in a new issue