mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: webkitgtk: Patch to share store via Bubblewrap.
Fixes <https://bugs.gnu.org/40837>. * gnu/packages/patches/webkitgtk-share-store.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/webkit.scm (webkitgtk)[source](patches): Use it. Co-authored-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
parent
3ed94ed8c2
commit
a6919866b0
3 changed files with 31 additions and 1 deletions
|
@ -128,7 +128,8 @@ engine that uses Wayland for graphics output.")
|
|||
"webkitgtk-" version ".tar.xz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1g9hik3bprki5s9d7y5288q5irwckbzajr6rnlvjrlnqrwjkblmr"))))
|
||||
"1g9hik3bprki5s9d7y5288q5irwckbzajr6rnlvjrlnqrwjkblmr"))
|
||||
(patches (search-patches "webkitgtk-share-store.patch"))))
|
||||
(build-system cmake-build-system)
|
||||
(outputs '("out" "doc"))
|
||||
(arguments
|
||||
|
@ -156,6 +157,15 @@ engine that uses Wayland for graphics output.")
|
|||
"-DUSE_WOFF2=OFF")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'configure-bubblewrap-store-directory
|
||||
(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 'unpack 'patch-gtk-doc-scan
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(for-each (lambda (file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue