guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 5f7cc5c2c6497ebaf7039cdb30ceba025602d698
Author: Liliana Marie Prikler <[email protected]>
AuthorDate: Tue Nov 25 14:55:32 2025 +0100

    gnu: waypipe: Hardcode libvulkan.
    
    Currently, trying to run waypipe with graphical acceleration results in the
    error:
      Sending error: src/dmabuf.rs:945: Failed to load Vulkan library:
      LibraryLoadFailure(DlOpen { desc: "libvulkan.so.1: cannot open shared 
object
      file: No such file or directory" })
    This patch fixes this error by loading libvulkan from a known location.
    
    * gnu/packages/freedesktop.scm (waypipe)[#:phases]: Add ‘patch-vulkan’.
---
 gnu/packages/freedesktop.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 09a68cad0e..78c4c3ffa8 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -3485,7 +3485,14 @@ notifies the user using any notification daemon 
implementing
                    '(unpack-rust-crates
                      configure
                      check-for-pregenerated-files
-                     patch-cargo-checksums))))))
+                     patch-cargo-checksums))))
+           (add-after 'unpack 'patch-vulkan
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* "src/dmabuf.rs"
+                 (("Entry::load\\(\\)")
+                  (string-append "Entry::load_from(\""
+                                 (search-input-file inputs "lib/libvulkan.so")
+                                 "\")")))))))
        #:configure-flags
        #~(list "-Dwith_lz4=enabled"
                "-Dwith_vaapi=enabled"

Reply via email to