summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-07-23 21:49:36 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-08-01 11:47:41 +0900
commit8ac4fa47d8ff8959d850980a4e5e9f91a56b634f (patch)
treefe9e54cda1b2046822f33ce0349a4649ea8c4980 /gnu/packages
parenta0f061d1b6af9bd18ecade9aa091e5108236839e (diff)
gnu: Add mgba-for-dolphin.
* gnu/packages/emulators.scm (mgba-for-dolphin): New variable. Change-Id: I8ff0a21cc91d79f010b38d3f2d675e3cfad2761a
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/emulators.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 2fb5239368..366007fdb0 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -973,6 +973,34 @@ and Game Boy Color games")
license:lgpl2.1+ ;blip_buf bundled library
license:bsd-3)))) ;inih bundled library
+(define-public mgba-for-dolphin
+ ;; The commit should match that of the mgba git submodule in dolphin (see:
+ ;; <https://github.com/dolphin-emu/dolphin/tree/master/Externals/mGBA>).
+ (let ((commit "8739b22fbc90fdf0b4f6612ef9c0520f0ba44a51")
+ (revision "0"))
+ (hidden-package
+ (package
+ (inherit mgba)
+ (name "mgba-for-dolphin")
+ (version (git-version "0.9.1" revision commit))
+ (source
+ (origin
+ (inherit (package-source mgba))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mgba-emu/mgba")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1bbcsikgcycf3cp9ciicg4yckjyamdfvgk4fgw079la59q8aw13q"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments mgba)
+ ((#:configure-flags flags ''())
+ ;; Relax error checks to avoid a build failure with GCC 14.
+ #~(cons "-DCMAKE_C_FLAGS=-Wno-error=incompatible-pointer-types"
+ #$flags))))))))
+
(define-public sameboy
(package
(name "sameboy")