~ruther/guix-local

9b2e32cd468c7c87b4d4701b087309090e288495 — Laura Kirsch 11 months ago 3d28018
gnu: Add fceux.

* gnu/packages/emulators.scm (fceux): New variable.

Closes: #2225
Change-Id: Ib70a568c5160dba2f9a1d6de08647d883ece97c2
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
1 files changed, 43 insertions(+), 0 deletions(-)

M gnu/packages/emulators.scm
M gnu/packages/emulators.scm => gnu/packages/emulators.scm +43 -0
@@ 25,6 25,7 @@
;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2025 Andrew Wong <wongandj@icloud.comg>
;;; Copyright © 2025 Anderson Torres <anderson.torres.8519@gmail.com>
;;; Copyright © 2025 Laura Kirsch <laurakirsch240406@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 4713,3 4714,45 @@ information.  Useful for cross-architecture tools (such as @code{python-pyvex}).
      (synopsis "8051/8052 emulator with curses-based UI")
      (description "emu8051 is a simulator of the 8051/8052 microcontrollers.")
      (license license:expat))))

(define-public fceux
  (package
    (name "fceux")
    (version "2.6.6")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/TASEmulators/fceux")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "02s5qmxdxpsa71977z9bs5vfhnszn5nr5hk05wns8cm9nshbg7as"))
       (modules '((guix build utils)))
       (snippet #~(map delete-file-recursively
                       (list "output/lua5.1.dll" "output/lua51.dll"
                             "src/drivers/win" "fceux-server" "vc")))))
    (build-system cmake-build-system)
    (arguments
     (list
      ;; No test suite.
      #:tests? #f))
    (inputs (list qtbase-5
                  zlib
                  minizip
                  sdl2
                  lua-5.1
                  libx264
                  x265
                  ffmpeg
                  libxkbcommon
                  libarchive))
    (native-inputs (list pkg-config))
    (synopsis "NES/Famicom emulator")
    (description
     "FCEUX is a Nintendo Entertainment System (NES), Famicom, Famicom Disk
System (FDS), and Dendy emulator.  It supports NTSC (USA/JPN), PAL (European),
and NTSC-PAL Hybrid modes.  It also offers tools for debugging, rom-hacking,
map making, Tool-assisted movies, and Lua scripting.")
    (home-page "https://fceux.com/web/home.html")
    (license license:gpl2+)))