[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73522] [PATCH games-team 09/14] gnu: retroarch: Propagate core asse
From: |
Maxim Cournoyer |
Subject: |
[bug#73522] [PATCH games-team 09/14] gnu: retroarch: Propagate core assets. |
Date: |
Sun, 6 Oct 2024 14:32:05 +0900 |
The RetroArch menus will not correctly render without its assets, the
plugins won't be usable without the core info files, and controllers won't be
usable without joypad-autoconfig files. Hence...
* gnu/packages/emulators.scm (retroarch-minimal): New variable, renamed from
previous retroarch.
(retroarch) [propagated-inputs]: New field.
Change-Id: I9dccf89da1f35acfa705de9ae02ae5f72a0b1825
---
gnu/packages/emulators.scm | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 63c2594f94..4baebbdbd0 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -118,7 +118,8 @@ (define-module (gnu packages emulators)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
#:use-module (guix build-system pyproject)
- #:use-module (guix build-system qt))
+ #:use-module (guix build-system qt)
+ #:use-module (guix build-system trivial))
(define-public vice
(package
@@ -1577,9 +1578,9 @@ (define-public retroarch-joypad-autoconfig
physical device and the RetroPad virtual controller.")
(license license:expat)))
-(define-public retroarch
+(define-public retroarch-minimal
(package
- (name "retroarch")
+ (name "retroarch-minimal")
(version "1.19.1")
(source
(origin
@@ -1737,6 +1738,23 @@ (define-public retroarch
license:bsd-3 ;feragamemode, ibxm
license:gpl2+)))) ;switchres
+(define-public retroarch
+ (package
+ (inherit retroarch-minimal)
+ (name "retroarch")
+ (source #f)
+ (build-system trivial-build-system)
+ (arguments (list #:builder #~(mkdir #$output)))
+ (propagated-inputs
+ (list retroarch-minimal
+ ;; We cannot simply hard-code the resource paths, as they'd written
+ ;; to ~/.config/retroarch.cfg and never updated (going stale),
+ ;; which is problematic. The environment variables overrides the
+ ;; configuration file values.
+ retroarch-assets
+ retroarch-core-info
+ retroarch-joypad-autoconfig))))
+
(define-public wasm4
(package
(name "wasm4")
--
2.46.0
- [bug#73522] [PATCH games-team 07/14] gnu: retroarch: Extend search-path support., (continued)
- [bug#73522] [PATCH games-team 11/14] gnu: libretro-lowresnx: Use gexps., Maxim Cournoyer, 2024/10/06
- [bug#73522] [PATCH games-team 09/14] gnu: retroarch: Propagate core assets.,
Maxim Cournoyer <=
- [bug#73522] [PATCH games-team 13/14] gnu: Add retroarch-slang-shaders., Maxim Cournoyer, 2024/10/06
- [bug#73522] [PATCH games-team 14/14] gnu: Add libretro-bsnes-jg., Maxim Cournoyer, 2024/10/06
- [bug#73522] [PATCH games-team 00/14] Package and use RetroArch assets, plus other improvements., Liliana Marie Prikler, 2024/10/06