~ruther/guix-local

5f7cc5c2c6497ebaf7039cdb30ceba025602d698 — Liliana Marie Prikler 5 months ago 7bae542
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’.
1 files changed, 8 insertions(+), 1 deletions(-)

M gnu/packages/freedesktop.scm
M gnu/packages/freedesktop.scm => gnu/packages/freedesktop.scm +8 -1
@@ 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"