summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/games.scm58
1 files changed, 57 insertions, 1 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 82cdbc55c42..c7630fc349c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5,7 +5,7 @@
5;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com> 5;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
6;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net> 6;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
7;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> 7;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
8;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com> 8;;; Copyright © 2014, 2015 Sou Bunnbu <iyzsong@gmail.com>
9;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> 9;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
10;;; 10;;;
11;;; This file is part of GNU Guix. 11;;; This file is part of GNU Guix.
@@ -60,6 +60,9 @@
60 #:use-module (gnu packages xiph) 60 #:use-module (gnu packages xiph)
61 #:use-module (gnu packages curl) 61 #:use-module (gnu packages curl)
62 #:use-module (gnu packages lua) 62 #:use-module (gnu packages lua)
63 #:use-module (gnu packages video)
64 #:use-module (gnu packages which)
65 #:use-module (gnu packages xml)
63 #:use-module (guix build-system trivial) 66 #:use-module (guix build-system trivial)
64 #:use-module (guix build-system gnu) 67 #:use-module (guix build-system gnu)
65 #:use-module (guix build-system cmake) 68 #:use-module (guix build-system cmake)
@@ -820,3 +823,56 @@ playing interactive fiction. It was designed by Andrew Plotkin to relieve
820some of the restrictions in the venerable Z-machine format. This is the 823some of the restrictions in the venerable Z-machine format. This is the
821reference interpreter, using Glk API.") 824reference interpreter, using Glk API.")
822 (license (license:fsf-free "file://README")))) 825 (license (license:fsf-free "file://README"))))
826
827(define-public retroarch
828 (package
829 (name "retroarch")
830 (version "1.0.0.3-beta")
831 (source
832 (origin
833 (method url-fetch)
834 (uri (string-append "https://github.com/libretro/RetroArch/archive/"
835 version ".tar.gz"))
836 (sha256
837 (base32 "1iqcrb076xiih20sk8n1w79xsp4fb8pj4vkmdc1xn562h56y4nxx"))))
838 (build-system gnu-build-system)
839 (arguments
840 '(#:tests? #f ; no tests
841 #:phases
842 (alist-replace
843 'configure
844 (lambda _
845 (substitute* "qb/qb.libs.sh"
846 (("/bin/true") (which "true")))
847 (zero? (system*
848 "./configure"
849 (string-append "--prefix=" %output)
850 (string-append "--global-config-dir=" %output "/etc"))))
851 %standard-phases)))
852 (inputs
853 `(("alsa-lib" ,alsa-lib)
854 ("ffmpeg" ,ffmpeg)
855 ("freetype" ,freetype)
856 ("libxinerama" ,libxinerama)
857 ("libxkbcommon" ,libxkbcommon)
858 ("libxml2" ,libxml2)
859 ("libxv" ,libxv)
860 ("mesa" ,mesa)
861 ("openal" ,openal)
862 ("pulseaudio" ,pulseaudio)
863 ("python" ,python)
864 ("sdl" ,sdl2)
865 ("udev" ,eudev)
866 ("zlib" ,zlib)))
867 (native-inputs
868 `(("pkg-config" ,pkg-config)
869 ("which" ,which)))
870 (home-page "http://www.libretro.com/")
871 (synopsis "Reference frontend for the libretro API")
872 (description
873 "Libretro is a simple but powerful development interface that allows for
874the easy creation of emulators, games and multimedia applications that can plug
875straight into any libretro-compatible frontend. RetroArch is the official
876reference frontend for the libretro API, currently used by most as a modular
877multi-system game/emulator system.")
878 (license license:gpl3+)))