From 3b45c0ea6d35a0fa7895344fe53758fb4b64d00f Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Sun, 10 Dec 2017 11:15:03 +0100 Subject: [PATCH] gnu: retroarch: Enable Vulkan support. * gnu/packages/games.scm (retroarch)[arguments]: Hard-code the path to libvulkan.so. [native-inputs]: Add vulkan-icd-loader. --- gnu/packages/games.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 524572b99..2c86c6b78 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -134,6 +134,7 @@ #:use-module (gnu packages gnuzilla) #:use-module (gnu packages icu4c) #:use-module (gnu packages networking) + #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) @@ -1446,6 +1447,10 @@ either by Infocom or created using the Inform compiler.") (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (etc (string-append out "/etc"))) + ;; Hard-code the path to libvulkan.so. + (substitute* "gfx/common/vulkan_common.c" + (("libvulkan.so") (string-append (assoc-ref %build-inputs + "vulkan-icd-loader") "/lib/libvulkan.so"))) (substitute* "qb/qb.libs.sh" (("/bin/true") (which "true"))) ;; The configure script does not yet accept the extra arguments @@ -1472,6 +1477,7 @@ either by Infocom or created using the Inform compiler.") ("zlib" ,zlib))) (native-inputs `(("pkg-config" ,pkg-config) + ("vulkan-icd-loader" ,vulkan-icd-loader) ("which" ,which))) (home-page "https://www.libretro.com/") (synopsis "Reference frontend for the libretro API") -- 2.15.1