guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 6217aa44494bd059e6d25dc93190fd9c0c771f17
Author: Anderson Torres <[email protected]>
AuthorDate: Sun Jun 8 22:23:06 2025 -0300

    gnu: Add stella.
    
    * gnu/packages/emulators.scm (stella): New variable.
    
    Change-Id: Ida327501493b92367fd5a7fb1c8303c66e4a9d8a
    Signed-off-by: Steve George <[email protected]>
---
 gnu/packages/emulators.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 82d1b0c0ce..4b87764d9a 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2024 Artyom V. Poptsov <[email protected]>
 ;;; Copyright © 2025 Ricardo Wurmus <[email protected]>
 ;;; Copyright © 2025 Andrew Wong <[email protected]>
+;;; Copyright © 2025 Anderson Torres <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1026,6 +1027,46 @@ range of debugging features.  It has all the features 
one would expect
 from an emulator---from save states to scaling filters.")
     (license license:expat)))
 
+(define-public stella
+  (package
+    (name "stella")
+    (version "7.0c")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/stella-emu/stella";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0kcbjlsi5wy0pia7apck7va86yx9y6iyy5245ylkn77khaf7wr13"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Delete machine-generated parser files
+           (with-directory-excursion "src/debugger/yacc"
+             (delete-file "y.tab.c")
+             (delete-file "y.tab.h"))))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:tests? #f ;no tests
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; Regenerate the deleted files
+          (add-before 'build 'regenerate-yacc-files
+            (lambda _
+              (with-directory-excursion "src/debugger/yacc"
+                (invoke "make" "-f" "Makefile.yacc")))))))
+    (inputs (list sdl2 sqlite))
+    (native-inputs (list bison pkg-config sdl2))
+    (synopsis "Atari 2600 @acronym{VCS, Video Computer System} emulator")
+    (description "Stella is a multi-platform Atari 2600
+@acronym{VCS, Video Computer System} emulator, released as Free Software.
+Enjoy all of your favorite Atari 2600 games on your PC thanks to Stella!")
+    (home-page "https://stella-emu.github.io/";)
+    (license license:gpl2+)))
+
 (define-public mupen64plus-core
   (package
     (name "mupen64plus-core")

Reply via email to