From 7341dee7f92a7361869dff175b37dc557be2430a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 30 Aug 2020 02:09:47 -0400 Subject: gnu: webkitgtk: Fix bubblewrap. * gnu/packages/webkit.scm (webkitgtk) [arguments]<#:phases>['configure-bubblewrap]: New phase. Signed-off-by: Danny Milosavljevic --- gnu/packages/webkit.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/webkit.scm b/gnu/packages/webkit.scm index 4fc1b7c7dc..28dbaad3ea 100644 --- a/gnu/packages/webkit.scm +++ b/gnu/packages/webkit.scm @@ -265,6 +265,15 @@ acceleration in mind, leveraging common 3D graphics APIs for best performance.") "/xml/dtd/docbook/docbookx.dtd")))) (find-files "Source" "\\.sgml$")) #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 (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) -- cgit 1.4.1