diff options
| author | forgoty <forgoty13@gmail.com> | 2026-01-20 22:29:12 +0100 |
|---|---|---|
| committer | 宋文武 <iyzsong@member.fsf.org> | 2026-02-02 17:37:19 +0800 |
| commit | 3e801b3f4ed20fced6edeb35feb3f992636924f7 (patch) | |
| tree | 3a3eee9467e510dcaa0ac087dda14656ddd4811c /gnu | |
| parent | 21a22211dff5d3f3e54bae672e0e02c2ce752a5d (diff) | |
gnu: Add libretro-nestopia.
* gnu/packages/emulators.scm (libretro-nestopia): New variable.
Closes: guix/guix#5785
Change-Id: I25d44dea48a1b01354ee83eb7b39a9b4ecd9aa9e
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/emulators.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 0086ac0dd9a..ab10959dff0 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2025 Andrew Wong <wongandj@icloud.comg> ;;; Copyright © 2025 Anderson Torres <anderson.torres.8519@gmail.com> ;;; Copyright © 2025 Laura Kirsch <laurakirsch240406@gmail.com> +;;; Copyright © 2026 Nikita Alkhovik <forgoty13@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -4382,6 +4383,44 @@ of the Nestopia emulator.") (license (list license:gpl2+ ;this project license:lgpl2.1+)))) ;nes_ntsc source files +(define-public libretro-nestopia + (let ((commit "473d3072be67fa2542ca833c274ef6682cf0f0bc") + (revision "0")) + (package + (inherit jg-nestopia) + (name "libretro-nestopia") + (version (git-version "2.0" ;from libretro/libretro_core_options.h + revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libretro/nestopia") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01gfwm6ig9ih4yw34fw4hdg6qsyzyjx3v4rvzb0bwk31453v9vhx")))) + (arguments + (list + #:tests? #f ;no test suite + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'change-to-build-dir + (lambda _ + (chdir "libretro"))) + (delete 'configure) + (replace 'install + (lambda _ + (let ((out (string-append #$output "/lib/libretro"))) + (mkdir-p out) + (install-file "nestopia_libretro.so" out))))))) + (synopsis "Libretro port of Nestopia NES/Famicom emulator") + (description + "This is the libretro port of the Nestopia emulator, based on the de +facto upstream Nestopia JG fork, which lives at: +https://gitlab.com/jgemu/nestopia. The libretro port contains an additional +overclocking feature.")))) + (define-public jg-cega (package (name "jg-cega") |
