diff options
Diffstat (limited to 'nongnu')
-rw-r--r-- | nongnu/packages/mozilla.scm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index 7de17b8..8476a8b 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm @@ -372,6 +372,10 @@ ;; For hardware video acceleration via VA-API (libva-lib (string-append (assoc-ref inputs "libva") "/lib")) + ;; Needed for video acceleration (via libdrm which mesa + ;; and libva depend on). + (pciaccess-lib (string-append (assoc-ref inputs "libpciaccess") + "/lib")) ;; VA-API is run in the RDD (Remote Data Decoder) sandbox ;; and must be explicitly given access to files it needs. ;; Rather than adding the whole store (as Nix had @@ -381,6 +385,9 @@ ;; runpaths of the needed libraries to add everything to ;; LD_LIBRARY_PATH. These will then be accessible in the ;; RDD sandbox. + ;; TODO: Properly handle the runpath of libraries needed + ;; (for RDD) recursively, so the explicit libpciaccess + ;; can be removed. (rdd-whitelist (map (cut string-append <> "/") (delete-duplicates @@ -397,8 +404,8 @@ "/share"))) (wrap-program (car (find-files lib "^firefox$")) `("LD_LIBRARY_PATH" prefix (,mesa-lib ,libnotify-lib ,libva-lib - ,pulseaudio-lib ,eudev-lib ,@rdd-whitelist - ,pipewire-lib)) + ,pciaccess-lib ,pulseaudio-lib ,eudev-lib + ,@rdd-whitelist ,pipewire-lib)) `("XDG_DATA_DIRS" prefix (,gtk-share)) `("MOZ_LEGACY_PROFILES" = ("1")) `("MOZ_ALLOW_DOWNGRADE" = ("1")))))) @@ -455,6 +462,7 @@ libgnome libjpeg-turbo libnotify + libpciaccess ;; libpng-apng libva libvpx |