diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-09-27 11:54:46 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-10-07 01:20:21 +0900 |
| commit | d43fd988c5cbadfb621bc605657bfa0b20d98d08 (patch) | |
| tree | a2544519d8b123424a66a4d2de1b65c3f4d8c574 /gnu/packages/emulators.scm | |
| parent | b759a9ffdfd8f38043c8100e9984ebecd34360f9 (diff) | |
gnu: retroarch: Use gexps.
* gnu/packages/emulators.scm (retroarch) [arguments]
<phases>: Use gexps; locate resources using `search-input-file' and
`search-input-directory'.
Change-Id: I0b1c4ff074e6f8287c14ac3327a8d0271391fec2
Diffstat (limited to 'gnu/packages/emulators.scm')
| -rw-r--r-- | gnu/packages/emulators.scm | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index a1e5a1f0c9f..92156f10df5 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm | |||
| @@ -1592,43 +1592,41 @@ physical device and the RetroPad virtual controller.") | |||
| 1592 | (base32 "15nh4y4vpf4n1ryhiy4fwvzn5xz5idzfzn9fsi5v9hzp25vbjmrm")))) | 1592 | (base32 "15nh4y4vpf4n1ryhiy4fwvzn5xz5idzfzn9fsi5v9hzp25vbjmrm")))) |
| 1593 | (build-system gnu-build-system) | 1593 | (build-system gnu-build-system) |
| 1594 | (arguments | 1594 | (arguments |
| 1595 | `(#:tests? #f ; no tests | 1595 | (list |
| 1596 | #:phases | 1596 | #:tests? #f ; no tests |
| 1597 | (modify-phases %standard-phases | 1597 | #:phases |
| 1598 | (replace 'configure | 1598 | #~(modify-phases %standard-phases |
| 1599 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1599 | (replace 'configure |
| 1600 | (let* ((out (assoc-ref outputs "out")) | 1600 | (lambda* (#:key inputs #:allow-other-keys) |
| 1601 | (etc (string-append out "/etc")) | 1601 | ;; Hard-code some store file names. |
| 1602 | (vulkan (assoc-ref inputs "vulkan-loader")) | 1602 | (substitute* "gfx/common/vulkan_common.c" |
| 1603 | (wayland-protocols (assoc-ref inputs "wayland-protocols"))) | 1603 | (("libvulkan.so") |
| 1604 | ;; Hard-code some store file names. | 1604 | (search-input-file inputs "lib/libvulkan.so"))) |
| 1605 | (substitute* "gfx/common/vulkan_common.c" | 1605 | (substitute* "gfx/common/wayland/generate_wayland_protos.sh" |
| 1606 | (("libvulkan.so") (string-append vulkan "/lib/libvulkan.so"))) | 1606 | (("/usr/local/share/wayland-protocols") |
| 1607 | (substitute* "gfx/common/wayland/generate_wayland_protos.sh" | 1607 | (search-input-directory inputs "share/wayland-protocols"))) |
| 1608 | (("/usr/local/share/wayland-protocols") | 1608 | |
| 1609 | (string-append wayland-protocols "/share/wayland-protocols"))) | 1609 | ;; Without HLSL, we can still enable GLSLANG and Vulkan support. |
| 1610 | 1610 | (substitute* "qb/config.libs.sh" | |
| 1611 | ;; Without HLSL, we can still enable GLSLANG and Vulkan support. | 1611 | (("[$]HAVE_GLSLANG_HLSL") "notcare")) |
| 1612 | (substitute* "qb/config.libs.sh" | 1612 | |
| 1613 | (("[$]HAVE_GLSLANG_HLSL") "notcare")) | 1613 | ;; The configure script does not yet accept the extra arguments |
| 1614 | 1614 | ;; (like ‘CONFIG_SHELL=’) passed by the default configure phase. | |
| 1615 | ;; The configure script does not yet accept the extra arguments | 1615 | (invoke |
| 1616 | ;; (like ‘CONFIG_SHELL=’) passed by the default configure phase. | 1616 | "./configure" |
| 1617 | (invoke | 1617 | #$@(if (string-prefix? "armhf" (or (%current-target-system) |
| 1618 | "./configure" | ||
| 1619 | ,@(if (string-prefix? "armhf" (or (%current-target-system) | ||
| 1620 | (%current-system))) | 1618 | (%current-system))) |
| 1621 | '("--enable-neon" "--enable-floathard") | 1619 | '("--enable-neon" "--enable-floathard") |
| 1622 | '()) | 1620 | '()) |
| 1623 | (string-append "--prefix=" out) | 1621 | (string-append "--prefix=" #$output) |
| 1624 | ;; Non-free software are available through the core updater, | 1622 | ;; Non-free software are available through the core updater, |
| 1625 | ;; disable it. See <https://issues.guix.gnu.org/38360>. | 1623 | ;; disable it. See <https://issues.guix.gnu.org/38360>. |
| 1626 | "--disable-update_cores" | 1624 | "--disable-update_cores" |
| 1627 | "--disable-builtinmbedtls" | 1625 | "--disable-builtinmbedtls" |
| 1628 | "--disable-builtinbearssl" | 1626 | "--disable-builtinbearssl" |
| 1629 | "--disable-builtinzlib" | 1627 | "--disable-builtinzlib" |
| 1630 | "--disable-builtinflac" | 1628 | "--disable-builtinflac" |
| 1631 | "--disable-builtinglslang"))))))) | 1629 | "--disable-builtinglslang")))))) |
| 1632 | (inputs | 1630 | (inputs |
| 1633 | (list alsa-lib | 1631 | (list alsa-lib |
| 1634 | eudev | 1632 | eudev |
