gnu: webkitgtk: Fix bubblewrap.

* gnu/packages/webkit.scm (webkitgtk) [arguments]<#:phases>['configure-bubblewrap]: New phase.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Raghav Gururajan 2020-08-30 02:09:47 -04:00 committed by Danny Milosavljevic
parent 19368c17c3
commit 7341dee7f9
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -265,6 +265,15 @@ (define-public webkitgtk
"/xml/dtd/docbook/docbookx.dtd")))) "/xml/dtd/docbook/docbookx.dtd"))))
(find-files "Source" "\\.sgml$")) (find-files "Source" "\\.sgml$"))
#t)) #t))
(add-before 'configure 'configure-bubblewrap
(lambda _
;; This phase is a corollary to 'webkitgtk-share-store.patch' to
;; avoid hard coding /gnu/store, for users with other prefixes.
(let ((store-directory (%store-directory)))
(substitute*
"Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp"
(("@storedir@") store-directory))
#t)))
(add-after 'install 'move-doc-files (add-after 'install 'move-doc-files
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))