1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2021 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
60 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
61 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
63 ;;; This file is part of GNU Guix.
65 ;;; GNU Guix is free software; you can redistribute it and/or modify it
66 ;;; under the terms of the GNU General Public License as published by
67 ;;; the Free Software Foundation; either version 3 of the License, or (at
68 ;;; your option) any later version.
70 ;;; GNU Guix is distributed in the hope that it will be useful, but
71 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
72 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
73 ;;; GNU General Public License for more details.
75 ;;; You should have received a copy of the GNU General Public License
76 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
78 (define-module (gnu packages games)
79 #:use-module (ice-9 match)
80 #:use-module ((guix licenses) #:prefix license:)
81 #:use-module (guix utils)
82 #:use-module (guix packages)
83 #:use-module (guix download)
84 #:use-module (guix git-download)
85 #:use-module (guix svn-download)
86 #:use-module (guix gexp)
87 #:use-module (gnu packages)
88 #:use-module (gnu packages adns)
89 #:use-module (gnu packages algebra)
90 #:use-module (gnu packages autotools)
91 #:use-module (gnu packages backup)
92 #:use-module (gnu packages base)
93 #:use-module (gnu packages build-tools)
94 #:use-module (gnu packages admin)
95 #:use-module (gnu packages audio)
96 #:use-module (gnu packages avahi)
97 #:use-module (gnu packages assembly)
98 #:use-module (gnu packages bash)
99 #:use-module (gnu packages bison)
100 #:use-module (gnu packages boost)
101 #:use-module (gnu packages check)
102 #:use-module (gnu packages cmake)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages cpp)
105 #:use-module (gnu packages curl)
106 #:use-module (gnu packages crypto)
107 #:use-module (gnu packages cyrus-sasl)
108 #:use-module (gnu packages documentation)
109 #:use-module (gnu packages docbook)
110 #:use-module (gnu packages emulators)
111 #:use-module (gnu packages flex)
112 #:use-module (gnu packages fltk)
113 #:use-module (gnu packages fonts)
114 #:use-module (gnu packages fontutils)
115 #:use-module (gnu packages freedesktop)
116 #:use-module (gnu packages fribidi)
117 #:use-module (gnu packages game-development)
118 #:use-module (gnu packages gcc)
119 #:use-module (gnu packages gettext)
120 #:use-module (gnu packages ghostscript)
121 #:use-module (gnu packages gimp)
122 #:use-module (gnu packages gl)
123 #:use-module (gnu packages glib)
124 #:use-module (gnu packages gnome)
125 #:use-module (gnu packages gnu-doc)
126 #:use-module (gnu packages gnupg)
127 #:use-module (gnu packages gnuzilla)
128 #:use-module (gnu packages gperf)
129 #:use-module (gnu packages graphics)
130 #:use-module (gnu packages gsasl)
131 #:use-module (gnu packages gstreamer)
132 #:use-module (gnu packages gtk)
133 #:use-module (gnu packages guile)
134 #:use-module (gnu packages haskell)
135 #:use-module (gnu packages haskell-crypto)
136 #:use-module (gnu packages haskell-xyz)
137 #:use-module (gnu packages icu4c)
138 #:use-module (gnu packages image)
139 #:use-module (gnu packages imagemagick)
140 #:use-module (gnu packages javascript)
141 #:use-module (gnu packages kde)
142 #:use-module (gnu packages kde-frameworks)
143 #:use-module (gnu packages less)
144 #:use-module (gnu packages libcanberra)
145 #:use-module (gnu packages libedit)
146 #:use-module (gnu packages libunwind)
147 #:use-module (gnu packages linux)
148 #:use-module (gnu packages llvm)
149 #:use-module (gnu packages lua)
150 #:use-module (gnu packages man)
151 #:use-module (gnu packages maths)
152 #:use-module (gnu packages messaging)
153 #:use-module (gnu packages mp3)
154 #:use-module (gnu packages music)
155 #:use-module (gnu packages multiprecision)
156 #:use-module (gnu packages ncurses)
157 #:use-module (gnu packages netpbm)
158 #:use-module (gnu packages networking)
159 #:use-module (gnu packages ocaml)
160 #:use-module (gnu packages opencl)
161 #:use-module (gnu packages pcre)
162 #:use-module (gnu packages perl)
163 #:use-module (gnu packages perl-check)
164 #:use-module (gnu packages perl-compression)
165 #:use-module (gnu packages pkg-config)
166 #:use-module (gnu packages protobuf)
167 #:use-module (gnu packages pulseaudio)
168 #:use-module (gnu packages python)
169 #:use-module (gnu packages python-xyz)
170 #:use-module (gnu packages qt)
171 #:use-module (gnu packages readline)
172 #:use-module (gnu packages ruby)
173 #:use-module (gnu packages shells)
174 #:use-module (gnu packages sdl)
175 #:use-module (gnu packages serialization)
176 #:use-module (gnu packages sqlite)
177 #:use-module (gnu packages squirrel)
178 #:use-module (gnu packages swig)
179 #:use-module (gnu packages tcl)
180 #:use-module (gnu packages terminals)
181 #:use-module (gnu packages texinfo)
182 #:use-module (gnu packages textutils)
183 #:use-module (gnu packages tls)
184 #:use-module (gnu packages upnp)
185 #:use-module (gnu packages video)
186 #:use-module (gnu packages vulkan)
187 #:use-module (gnu packages web)
188 #:use-module (gnu packages wget)
189 #:use-module (gnu packages wxwidgets)
190 #:use-module (gnu packages xdisorg)
191 #:use-module (gnu packages xorg)
192 #:use-module (gnu packages xiph)
193 #:use-module (gnu packages xml)
194 #:use-module (guix build-system copy)
195 #:use-module (guix build-system cmake)
196 #:use-module (guix build-system glib-or-gtk)
197 #:use-module (guix build-system gnu)
198 #:use-module (guix build-system go)
199 #:use-module (guix build-system meson)
200 #:use-module (guix build-system perl)
201 #:use-module (guix build-system python)
202 #:use-module (guix build-system qt)
203 #:use-module (guix build-system scons)
204 #:use-module (guix build-system trivial)
205 #:use-module ((srfi srfi-1) #:hide (zip))
206 #:use-module (srfi srfi-26))
215 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
216 "/abe-" version ".tar.gz"))
218 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
219 (build-system gnu-build-system)
222 (list (string-append "--with-data-dir="
223 (assoc-ref %outputs "out")
226 (modify-phases %standard-phases
228 (lambda _ (invoke "sh" "autogen.sh")))
229 (add-before 'build 'set-SDL
230 ;; Set correct environment for SDL.
231 (lambda* (#:key inputs #:allow-other-keys)
234 (assoc-ref inputs "sdl") "/include/SDL:"
235 (or (getenv "CPATH") "")))
237 (add-after 'install 'finalize-install
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let ((share (string-append (assoc-ref outputs "out") "/share")))
240 ;; Installation script does not copy game data files.
241 (let ((data (string-append share "/abe")))
242 (for-each (lambda (dir)
243 (let ((target (string-append data "/" dir)))
245 (copy-recursively dir target)))
246 '("images" "maps" "sounds")))
247 ;; Create desktop file.
248 (let ((apps (string-append share "/applications")))
250 (make-desktop-entry-file
251 (string-append apps "/abe.desktop")
252 #:name "Abe's Amazing Adventure"
254 #:categories '("AdventureGame" "Game")
256 '("side-scrolling" "adventure" "pyramid" "singleplayer")
258 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
259 (#f "Side-scrolling game")))))
262 `(("autoconf" ,autoconf)
263 ("automake" ,automake)))
268 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
269 (home-page "http://abe.sourceforge.net")
270 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
272 "Abe's Amazing Adventure is a scrolling,
273 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
274 the style of similar games for the Commodore+4.")
275 (license license:gpl2+)))
277 ;; Data package for adanaxisgpl.
278 (define adanaxis-mush
279 (let ((version "1.1.0"))
282 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
285 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
287 (define-public adanaxisgpl
294 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
297 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
298 (modules '((guix build utils)))
301 ;; Necessary for building with gcc >=4.7.
302 (substitute* "src/Mushcore/MushcoreSingleton.h"
303 (("SingletonPtrSet\\(new SingletonType\\);")
304 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
305 ;; Avoid an "invalid conversion from const char* to char*" error.
306 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
307 (("char \\*end, \\*result;")
308 (string-append "const char *end;"
312 (build-system gnu-build-system)
314 `(#:tests? #f ; no check target
316 (modify-phases %standard-phases
317 (add-after 'install 'install-data
318 (lambda* (#:key inputs outputs #:allow-other-keys)
319 (let ((data (assoc-ref inputs "adanaxis-mush"))
320 (share (string-append (assoc-ref outputs "out")
321 "/share/" ,name "-" ,version)))
323 (invoke "tar" "xvf" data "-C" share)))))))
325 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
328 ("freeglut" ,freeglut)
330 ("libjpeg" ,libjpeg-turbo)
333 ("libvorbis" ,libvorbis)
338 ("sdl-mixer" ,sdl-mixer)))
339 (home-page "https://www.mushware.com")
340 (synopsis "Action game in four spatial dimensions")
342 "Adanaxis is a fast-moving first person shooter set in deep space, where
343 the fundamentals of space itself are changed. By adding another dimension to
344 space this game provides an environment with movement in four directions and
345 six planes of rotation. Initially the game explains the 4D control system via
346 a graphical sequence, before moving on to 30 levels of gameplay with numerous
347 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
348 mouse and joystick control, and original music.")
349 (license license:gpl2)))
359 (url "https://github.com/carstene1ns/alex4")
361 (file-name (git-file-name name version))
363 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
364 (build-system gnu-build-system)
366 `(#:tests? #f ; no check target
369 "CFLAGS=-D_FILE_OFFSET_BITS=64"
370 (string-append "PREFIX=" (assoc-ref %outputs "out")))
372 (modify-phases %standard-phases
373 (delete 'configure) ; no configure script
374 (add-after 'install 'install-data
375 (lambda* (#:key outputs #:allow-other-keys)
376 (let ((share (string-append (assoc-ref outputs "out")
378 (install-file "alex4.ini" share)
381 `(("allegro" ,allegro-4)
382 ("dumb" ,dumb-allegro4)))
383 (home-page "http://allegator.sourceforge.net/")
384 (synopsis "Retro platform game")
386 "Guide Alex the Allegator through the jungle in order to save his
387 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
388 Plenty of classic platforming in four nice colors guaranteed!
390 The game includes a built-in editor so you can design and share your own maps.")
391 (license license:gpl2+)))
393 (define-public armagetronad
395 (name "armagetronad")
396 (version "0.2.9.0.1")
399 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
400 version "/armagetronad-" version ".tbz"))
403 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
404 (build-system gnu-build-system)
406 `(("pkg-config" ,pkg-config)))
408 `(("libxml2" ,libxml2)
410 ("sdl-image" ,sdl-image)
411 ("freeglut" ,freeglut)
413 ("libjpeg-turbo" ,libjpeg-turbo)))
414 (home-page "http://www.armagetronad.org")
415 (synopsis "Tron clone in 3D")
416 (description "Armagetron Advanced is a multiplayer game in 3d that
417 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
418 It's an old school arcade game slung into the 21st century. Highlights
419 include a customizable playing arena, HUD, unique graphics, and AI bots. For
420 the more advanced player there are new game modes and a wide variety of
421 physics settings to tweak as well.")
422 (license license:gpl2+)))
424 (define-public astromenace
432 (url "https://github.com/viewizard/astromenace")
433 (commit (string-append "v" version))))
434 (file-name (git-file-name name version))
436 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
437 (build-system cmake-build-system)
439 `(#:tests? #f ;no test
440 #:configure-flags (list (string-append "-DDATADIR="
441 (assoc-ref %outputs "out")
442 "/share/astromenace"))
444 (modify-phases %standard-phases
446 ;; Upstream provides no install phase.
447 (lambda* (#:key inputs outputs #:allow-other-keys)
448 (let* ((out (assoc-ref outputs "out"))
449 (bin (string-append out "/bin"))
450 (share (string-append out "/share"))
451 (apps (string-append share "/applications"))
452 (data (string-append share "/astromenace"))
453 (icons (string-append share "/icons/hicolor/64x64/apps")))
454 (install-file "astromenace" bin)
455 (install-file "gamedata.vfs" data)
456 (let ((source (assoc-ref inputs "source")))
457 (with-directory-excursion (string-append source "/share")
458 (install-file "astromenace.desktop" apps)
460 (copy-file "astromenace_64.png"
461 (string-append icons "/astromenace.png")))))
464 `(("freealut" ,freealut)
465 ("freetype" ,freetype)
468 ("libvorbis" ,libvorbis)
471 (home-page "https://www.viewizard.com/")
472 (synopsis "3D space shooter with spaceship upgrade possibilities")
474 "Space is a vast area, an unbounded territory where it seems there is
475 a room for everybody, but reversal of fortune put things differently. The
476 hordes of hostile creatures crawled out from the dark corners of the universe,
477 craving to conquer your homeland. Their force is compelling, their legions
478 are interminable. However, humans didn't give up without a final showdown and
479 put their best pilot to fight back. These malicious invaders chose the wrong
480 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
481 regret their insolence.")
482 ;; Game is released under GPL3+ terms. Artwork is subject to CC
483 ;; BY-SA 4.0, and fonts to OFL1.1.
484 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
486 (define-public bastet
494 (url "https://github.com/fph/bastet")
496 (file-name (git-file-name name version))
498 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
500 (search-patches "bastet-change-source-of-unordered_set.patch"))))
501 (build-system gnu-build-system)
504 (list (string-append "CXXFLAGS=-I"
505 (assoc-ref %build-inputs "boost") "/include"))
507 (modify-phases %standard-phases
508 (delete 'configure) ; no configure script
510 ;; The 'Test' target builds the tests, but doesn't actually run them.
511 (lambda* (#:key make-flags #:allow-other-keys)
512 (apply invoke "make" "Test" make-flags)
516 (lambda* (#:key outputs #:allow-other-keys)
517 (let* ((out (assoc-ref outputs "out"))
518 (share (string-append out "/share"))
519 (hicolor (string-append share "/icons/hicolor")))
520 (install-file "bastet"
521 (string-append out "/bin"))
523 (install-file "bastet.desktop"
524 (string-append share "/applications"))
525 (install-file "bastet.svg"
526 (string-append hicolor "/scalable/apps"))
528 (install-file "bastet.appdata.xml"
529 (string-append share "/appdata"))
531 (install-file "bastet.6"
532 (string-append out "/share/man/man6"))
535 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
538 ("ncurses" ,ncurses)))
539 (home-page "https://fph.altervista.org/prog/bastet.html")
540 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
542 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
543 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
544 Instead, it uses a special algorithm to choose the worst brick possible.
546 Playing bastet can be a painful experience, especially if you usually make
547 canyons and wait for the long I-shaped block to clear four rows at a time.")
548 (license license:gpl3+)))
550 (define-public vitetris
558 (url "https://github.com/vicgeralds/vitetris")
559 (commit (string-append "v" version))))
561 (base32 "1ah1c5g7abksif0n8v5rb7r4pn2az20c3mkp4ak13vgs23ddmds5"))
562 (file-name (git-file-name name version))))
563 (build-system gnu-build-system)
565 `(#:tests? #f ;no test
567 (list ,(string-append "CC=" (cc-for-target))
568 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
570 (modify-phases %standard-phases
573 ;; the non standard configure script does not accept
574 ;; standard parameters -> invoke configure by hand
575 (invoke "./configure" "prefix=")
576 ;; src/src-conf.mk must be writable for the build step
577 (make-file-writable "src/src-conf.mk"))))))
578 (home-page "http://victornils.net/tetris/")
579 (synopsis "Terminal-based Tetris clone")
580 (description "Vitetris is a classic multiplayer Tetris clone for the
582 (license license:bsd-2)))
584 (define-public blobwars
591 (uri (string-append "mirror://sourceforge/blobwars/"
592 "blobwars-" version ".tar.gz"))
594 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
595 (build-system gnu-build-system)
597 `(#:tests? #f ;no test
599 (let ((out (assoc-ref %outputs "out")))
600 (list (string-append "PREFIX=" out)
601 (string-append "BINDIR=" out "/bin/")
605 (modify-phases %standard-phases
606 (add-after 'unpack 'werror-begone
608 (substitute* "Makefile" (("-Werror") ""))
610 (delete 'configure)))) ;no configure script
612 `(("gettext" ,gettext-minimal)
613 ("pkg-config" ,pkg-config)))
615 `(("hicolor-icon-theme" ,hicolor-icon-theme)
616 ("sdl" ,(sdl-union (list sdl2
621 (home-page "https://sourceforge.net/projects/blobwars/")
622 (synopsis "Platform action game featuring a blob with a lot of weapons")
623 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
624 in the Blobwars series. You take on the role of a fearless Blob agent. Your
625 mission is to infiltrate various enemy bases and rescue as many MIAs as
626 possible, while battling many vicious aliens.")
627 (license (list license:gpl2 ; For code and graphics
628 license:cc0 ; Music and sounds have specific licenses
629 license:cc-by3.0 ; see /doc/readme
634 (define-public bsd-games
641 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
643 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
646 ;; thanks Arch, and Debian
647 "bsd-games-2.17-64bit.patch"
648 "bsd-games-bad-ntohl-cast.patch"
649 "bsd-games-gamescreen.h.patch"
650 "bsd-games-getline.patch"
651 "bsd-games-null-check.patch"
652 "bsd-games-number.c-and-test.patch"
653 "bsd-games-stdio.h.patch"
654 "bsd-games-prevent-name-collisions.patch"
655 ;; Guix customizations
656 "bsd-games-add-configure-config.patch"
657 "bsd-games-dont-install-empty-files.patch"
658 "bsd-games-add-wrapper.patch"))))
659 (build-system gnu-build-system)
664 `(("curses" ,ncurses)
666 ("miscfiles" ,miscfiles)
667 ("openssl" ,openssl))) ;used only by 'factor'
670 (modify-phases %standard-phases
672 (lambda* (#:key outputs inputs #:allow-other-keys)
673 (let* ((out (assoc-ref outputs "out"))
674 (bin (string-append out "/bin"))
675 (doc (string-append out "/share/doc/bsd-games-" ,version))
676 (man (string-append out "/share/man"))
677 (word-list (string-append (assoc-ref inputs "miscfiles")
679 (static-data (string-append out "/share/games/bsd-games"))
680 ;; Not a "./" because of substitute* in 'patch-install
681 ;; below. The .// allow us not to mess with the games'
682 ;; code any further: we just use a wrapper script that
683 ;; cd's to a BSD_GAMES_DIR. :]
685 (substitute* "configure"
686 (("/usr/share/man") man)
687 (("/usr/share/doc/bsd-games") doc)
688 (("/usr/share/[^\n/]*") static-data)
689 (("/var/games") save-files)
690 (("/usr/bin/less") (which "less"))
691 (("(/usr/bin|/usr/games)") bin))
692 (substitute* "config.params" (("WORD_LIST") word-list))
693 (substitute* "wrapper" (("STATIC_DATA") static-data))
694 (invoke "./configure"))
696 (add-before 'install 'patch-install
697 ;; Some games need a writable directory containing pre-maded files.
698 ;; The files get installed to the Store. Then the wrapper kicks in.
699 (lambda* (#:key outputs #:allow-other-keys)
700 (let* ((out (assoc-ref outputs "out"))
701 (static-data (string-append out "/share/games/bsd-games"))
703 (substitute* "Makeconfig" ((save-files) static-data)))
705 (add-after 'install 'install-documents
706 (lambda* (#:key outputs #:allow-other-keys)
707 (let* ((out (assoc-ref outputs "out"))
708 (doc (string-append out "/share/doc/bsd-games-" ,version)))
709 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
711 (lambda(file) (install-file file doc))
712 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
713 "phantasia-COPYRIGHT")))
715 (home-page "https://github.com/vattam/BSDGames")
716 (synopsis "Collection of the old text-based games and amusements")
718 "These are the BSD games. See the fortune-mod package for fortunes.
720 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
721 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
722 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
723 the $$ from the cave, anger the snake, and get out alive), tetris (game of
724 lining up the falling bricks of different shapes), and worm (eat, grow big,
725 and neither bite your tail, nor ram the wall).
727 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
728 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
729 the input), factor (factorizes a number), number (translates numbers into
730 text), pig (translates from English to Pig Latin), pom (should print the
731 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
732 in terminal), random (prints randomly chosen lines from files, or returns a
733 random exit-code), and wtf (explains what do some acronyms mean).
735 Board: backgammon (lead the men out of board faster than the friend do),
736 boggle (find the words in the square of letters), dab (game of dots and
737 boxes), gomoku (game of five in a row), hangman (guess a word before man is
738 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
739 canfield, cribbage, fish (juniors game), and mille.
741 Quests: adventure (search for treasures with the help of wizard),
742 battlestar (explore the world around, starting from dying spaceship),
743 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
744 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
746 Quizes: arithmetic, and quiz.")
747 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
748 ;; not bearing copyright notices, probably fall under the terms of the UCB
749 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
750 ;; warning in regard to the fortune databases."
752 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
753 ;; lib/strlcpy.c, wargames/wargames.6
755 ;; dab and hunt. Files: adventure/extern.h,
756 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
757 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
758 ;; hack/extern.h, robots/auto.c, sail/display.h,
759 ;; sail/restart.h, wargames/wargames
762 license:public-domain
763 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
764 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
767 (define-public bzflag
774 (uri (string-append "https://download.bzflag.org/bzflag/source/"
775 version "/bzflag-" version ".tar.bz2"))
777 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
778 (build-system gnu-build-system)
781 (modify-phases %standard-phases
782 (add-after 'install 'install-desktop-file-and-icons
783 (lambda* (#:key outputs #:allow-other-keys)
784 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
785 (data (string-append share "/bzflag"))
786 (hicolor (string-append share "/icons/hicolor"))
787 (applications (string-append share "/applications")))
788 ;; Move desktop file.
789 (install-file (string-append data "/bzflag.desktop")
792 (for-each (lambda (size)
793 (let* ((dim (string-append size "x" size))
794 (dir (string-append hicolor "/" dim "/apps")))
797 (string-append data "/bzflag-" dim ".png")
798 (string-append dir "/bzflag.png"))))
802 `(("pkg-config" ,pkg-config)))
810 (home-page "https://www.bzflag.org/")
811 (synopsis "3D first person tank battle game")
813 "BZFlag is a 3D multi-player multiplatform tank battle game that
814 allows users to play against each other in a network environment.
815 There are five teams: red, green, blue, purple and rogue (rogue tanks
816 are black). Destroying a player on another team scores a win, while
817 being destroyed or destroying a teammate scores a loss. Rogues have
818 no teammates (not even other rogues), so they cannot shoot teammates
819 and they do not have a team score.
821 There are two main styles of play: capture-the-flag and free-for-all.
822 In capture-the-flag, each team (except rogues) has a team base and
823 each team with at least one player has a team flag. The object is to
824 capture an enemy team's flag by bringing it to your team's base. This
825 destroys every player on the captured team, subtracts one from that
826 team's score, and adds one to your team's score. In free-for-all,
827 there are no team flags or team bases. The object is simply to get as
828 high a score as possible.")
829 ;; The game is dual-licensed.
830 (license (list license:lgpl2.1 license:mpl2.0))))
832 (define-public cataclysm-dda
834 (name "cataclysm-dda")
840 (url "https://github.com/CleverRaven/Cataclysm-DDA")
843 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
844 (file-name (git-file-name name version))))
845 (build-system gnu-build-system)
848 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
849 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
850 "LOCALIZE=1" "LANGUAGES=all")
852 (modify-phases %standard-phases
854 (add-after 'build 'build-tiles
855 (lambda* (#:key make-flags outputs #:allow-other-keys)
856 ;; Change prefix directory and enable tile graphics and sound.
857 (apply invoke "make" "TILES=1" "SOUND=1"
858 (string-append "PREFIX="
859 (assoc-ref outputs "tiles"))
861 (add-after 'install 'install-tiles
862 (lambda* (#:key make-flags outputs #:allow-other-keys)
863 (apply invoke "make" "install" "TILES=1" "SOUND=1"
864 (string-append "PREFIX="
865 (assoc-ref outputs "tiles"))
867 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
868 ;; input in order to support tests.
871 "tiles")) ;for tile graphics and sound support
873 `(("gettext" ,gettext-minimal)
874 ("pkg-config" ,pkg-config)))
876 `(("freetype" ,freetype)
878 ("libvorbis" ,libvorbis)
881 ("sdl2-image" ,sdl2-image)
882 ("sdl2-ttf" ,sdl2-ttf)
883 ("sdl2-mixer" ,sdl2-mixer)))
884 (home-page "https://cataclysmdda.org/")
885 (synopsis "Survival horror roguelike video game")
887 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
888 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
889 procedurally generated world. Scavenge the remnants of a dead civilization
890 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
891 to get you out of Dodge. Fight to defeat or escape from a wide variety of
892 powerful monstrosities, from zombies to giant insects to killer robots and
893 things far stranger and deadlier, and against the others like yourself, that
894 want what you have.")
895 (license license:cc-by-sa3.0)))
897 (define-public cockatrice
898 (let ((release-date "2021-01-26"))
906 (url "https://github.com/Cockatrice/Cockatrice")
907 (commit (string-append release-date "-Release-" version))))
908 (file-name (git-file-name name version))
911 "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
912 (modules '((guix build utils)))
914 ;; Strip image URLs as they point towards non-free web services
915 '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
916 (("downloadURLs.append\\(\".*\"\\);") "")))))
917 (build-system cmake-build-system)
919 `(#:configure-flags '("-DWITH_SERVER=1"
924 `(("googletest" ,googletest)
925 ("pkg-config" ,pkg-config)))
927 `(("protobuf" ,protobuf)
929 ("qtmultimedia" ,qtmultimedia)
932 ("qtwebsockets" ,qtwebsockets)
935 (home-page "https://cockatrice.github.io")
936 (synopsis "Tabletop card game simulator")
937 (description "Cockatrice is a program for playing tabletop card games
938 over a network. Its server design prevents users from manipulating the game
939 for unfair advantage. The client also provides a single-player mode, which
940 allows users to brew while offline.")
941 (license license:gpl2))))
943 (define-public corsix-th
951 (url "https://github.com/CorsixTH/CorsixTH")
952 (commit (string-append "v" version))))
953 (file-name (git-file-name name version))
955 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
956 (build-system cmake-build-system)
959 (modify-phases %standard-phases
960 (add-after 'install 'wrap-binary
962 ;; Set Lua module paths and default MIDI soundfont on startup.
963 (let* ((out (assoc-ref %outputs "out"))
964 (fluid (assoc-ref %build-inputs "fluid-3"))
965 (lua-version ,(version-major+minor (package-version lua)))
969 (assoc-ref %build-inputs (string-append "lua-" lib))
970 "/lib/lua/" lua-version "/?.so"))
971 '("filesystem" "lpeg"))))
972 (wrap-program (string-append out "/bin/corsix-th")
973 `("LUA_CPATH" ";" = ,lua-cpath)
974 `("SDL_SOUNDFONTS" ":" suffix
975 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
977 #:tests? #f)) ; TODO need busted package to run tests
978 ;; Omit Lua-Socket dependency to disable automatic updates.
982 ("freetype" ,freetype)
984 ("lua-filesystem" ,lua-filesystem)
985 ("lua-lpeg" ,lua-lpeg)
987 ("sdl2-mixer" ,sdl2-mixer)))
988 (home-page "https://corsixth.com")
989 (synopsis "Implementation of the @i{Theme Hospital} game engine")
991 "This package provides a reimplementation of the 1997 Bullfrog business
992 simulation game @i{Theme Hospital}. As well as faithfully recreating the
993 original engine, CorsixTH adds support for high resolutions, custom levels and
994 more. This package does @emph{not} provide the game assets.")
996 license:expat ; main license
997 license:bsd-3)))) ; CorsixTH/Src/random.c
999 (define-public cowsay
1006 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
1007 (commit (string-append name "-" version))))
1008 (file-name (git-file-name name version))
1011 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
1012 (build-system gnu-build-system)
1015 (modify-phases %standard-phases
1016 (delete 'configure) ; no configure script
1017 (delete 'build) ; nothing to be built
1019 (lambda* (#:key outputs #:allow-other-keys)
1020 (invoke "sh" "install.sh"
1021 (assoc-ref outputs "out"))))
1023 (add-after 'install 'check
1024 (lambda* (#:key outputs #:allow-other-keys)
1025 (invoke (string-append (assoc-ref outputs "out")
1030 (home-page (string-append "https://web.archive.org/web/20071026043648/"
1031 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
1032 (synopsis "Speaking cow text filter")
1033 (description "Cowsay is basically a text filter. Send some text into it,
1034 and you get a cow saying your text. If you think a talking cow isn't enough,
1035 cows can think too: all you have to do is run @command{cowthink}. If you're
1036 tired of cows, a variety of other ASCII-art messengers are available.")
1037 (license license:gpl3+)))
1039 (define-public lolcat
1040 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
1044 (version (git-version "1.0" revision commit))
1049 (url "https://github.com/jaseg/lolcat")
1053 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
1054 (file-name (git-file-name name version))))
1055 (build-system gnu-build-system)
1057 `(#:tests? #f ; no check target
1059 (list ,(string-append "CC=" (cc-for-target)))
1061 (modify-phases %standard-phases
1065 (lambda* (#:key outputs #:allow-other-keys)
1066 (let* ((out (assoc-ref outputs "out"))
1067 (dest (string-append out "/bin")))
1069 (install-file "lolcat" dest)
1070 (install-file "censor" dest)
1072 (home-page "https://github.com/jaseg/lolcat")
1073 (synopsis "Rainbow coloring effect for text console display")
1074 (description "@command{lolcat} concatenates files and streams like
1075 regular @command{cat}, but it also adds terminal escape codes between
1076 characters and lines resulting in a rainbow effect.")
1077 (license license:wtfpl2))))
1079 (define-public foobillard++
1080 ;; Even though this latest revision is old already, stable release is
1081 ;; lagging way behind it, and has issues with textures rendering.
1082 (let ((svn-revision 170))
1084 (name "foobillard++")
1085 (version (string-append "3.43-r" (number->string svn-revision)))
1090 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1091 (revision svn-revision)))
1092 (file-name (git-file-name name version))
1094 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1096 (search-patches "foobillard++-pkg-config.patch"))
1097 (modules '((guix build utils)))
1100 ;; Unfortunately, the game includes background music with
1101 ;; a non-commercial clause. Delete it.
1102 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1104 (build-system gnu-build-system)
1108 ;; Install data in a less exotic location.
1109 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1110 ;; Prevent a build error about undefined trigonometric functions.
1111 "--enable-fastmath=no")
1113 (modify-phases %standard-phases
1114 (add-after 'unpack 'fix-makefile
1115 ;; Remove hard-coded directories. Also fix installation
1116 ;; rule: it tries to move around non-existent files or
1117 ;; files already moved.
1118 (lambda* (#:key outputs #:allow-other-keys)
1119 (substitute* "Makefile.am"
1120 (("/usr") (assoc-ref outputs "out"))
1121 (("cp .*?/foobillardplus\\.desktop.*") "")
1122 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1125 (add-after 'unpack 'unbundle-font
1126 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1127 ;; LinBiolinum_aS.ttf, which are not provided by
1128 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1130 (lambda* (#:key inputs #:allow-other-keys)
1131 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1132 "/share/fonts/truetype/")))
1133 (with-directory-excursion "data"
1134 (for-each (lambda (f)
1136 (symlink (string-append dejavu f) f))
1137 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1141 (invoke "aclocal" "--force")
1142 (invoke "autoconf" "-f")
1143 (invoke "autoheader" "-f")
1144 (invoke "automake" "-a" "-c" "-f")))
1145 (add-before 'build 'prepare-build
1146 ;; Set correct environment for SDL.
1147 (lambda* (#:key inputs #:allow-other-keys)
1149 (string-append (assoc-ref inputs "sdl")
1151 (or (getenv "CPATH") "")))
1153 (add-before 'build 'fix-settings-directory
1154 ;; Hide foobillardplus settings directory in $HOME.
1156 (substitute* "src/history.c"
1157 (("/foobillardplus-data") "/.foobillardplus"))
1159 (add-before 'install 'create-directories
1160 ;; Install process does not create directories before
1161 ;; trying to move file in it.
1162 (lambda* (#:key outputs #:allow-other-keys)
1163 (let ((out (assoc-ref outputs "out")))
1164 (mkdir-p (string-append out "/share/icons"))
1165 (mkdir-p (string-append out "/share/applications")))
1167 (add-after 'install 'symlink-executable
1168 ;; Symlink executable to $out/bin.
1169 (lambda* (#:key outputs #:allow-other-keys)
1170 (let* ((out (assoc-ref outputs "out"))
1171 (bin (string-append out "/bin")))
1173 (with-directory-excursion bin
1174 (symlink "../share/foobillardplus/bin/foobillardplus"
1178 `(("autoconf" ,autoconf)
1179 ("automake" ,automake)
1180 ("pkg-config" ,pkg-config)))
1182 `(("font-dejavu" ,font-dejavu)
1183 ("freetype" ,freetype)
1186 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1187 (home-page "http://foobillardplus.sourceforge.net/")
1188 (synopsis "3D billiard game")
1189 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1190 based on the original foobillard 3.0a sources from Florian Berger.
1191 You can play it with one or two players or against the computer.
1196 @item Wood paneled table with gold covers and gold diamonds.
1197 @item Reflections on balls.
1198 @item Zoom in and out, rotation, different angles and bird's eye view.
1199 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1200 @item Tournaments. Compete against other players.
1201 @item Animated cue with strength and eccentric hit adjustment.
1202 @item Jump shots and snipping.
1203 @item Realistic gameplay and billiard sounds.
1204 @item Red-Green stereo.
1205 @item And much more.
1207 (license (list license:gpl2 license:silofl1.1)))))
1209 (define-public freedoom
1217 (url "https://github.com/freedoom/freedoom")
1218 (commit (string-append "v" version))))
1219 (file-name (git-file-name name version))
1221 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1222 (build-system gnu-build-system)
1225 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1226 #:tests? #f ; no check target
1228 (modify-phases %standard-phases
1231 (lambda* (#:key inputs outputs #:allow-other-keys)
1232 (let* ((freedoom (assoc-ref outputs "out"))
1233 (wad-dir (string-append freedoom "/share/games/doom")))
1234 ;; Make sure that the install scripts know where to find
1235 ;; the appropriate WAD files.
1236 (substitute* "dist/freedoom"
1237 (("IWAD=freedm.wad")
1238 (string-append "IWAD=" wad-dir "/freedm.wad"))
1239 (("IWAD=freedoom1.wad")
1240 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1241 (("IWAD=freedoom2.wad")
1242 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1245 `(("asciidoc" ,asciidoc)
1248 ("python-pillow" ,python-pillow)))
1249 (home-page "https://freedoom.github.io/")
1250 (synopsis "Free content game based on the Doom engine")
1251 (native-search-paths
1252 (list (search-path-specification
1253 (variable "DOOMWADDIR")
1254 (files '("share/games/doom")))
1255 (search-path-specification
1256 (variable "DOOMWADPATH")
1257 (files '("share/games/doom")))))
1259 "The Freedoom project aims to create a complete free content first person
1260 shooter game. Freedoom by itself is just the raw material for a game: it must
1261 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1262 played. Freedoom complements the Doom engine with free levels, artwork, sound
1263 effects and music to make a completely free game.")
1264 (license license:bsd-3)))
1266 (define-public freedroidrpg
1268 (name "freedroidrpg")
1273 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1274 "freedroidRPG-" (version-major+minor version) "/"
1275 "freedroidRPG-" version ".tar.gz"))
1277 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1278 (build-system gnu-build-system)
1282 (string-append "CFLAGS="
1283 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1284 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1285 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1287 ;; FIXME: the test suite fails with the following error output:
1288 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1289 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1292 `(("pkg-config" ,pkg-config)))
1295 ("libjpeg" ,libjpeg-turbo)
1298 ("libvorbis" ,libvorbis)
1300 ("python" ,python-wrapper)
1302 ("sdl-gfx" ,sdl-gfx)
1303 ("sdl-image" ,sdl-image)
1304 ("sdl-mixer" ,sdl-mixer)
1306 (home-page "https://www.freedroid.org/")
1307 (synopsis "Isometric role-playing game against killer robots")
1309 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1310 The game tells the story of a world destroyed by a conflict between robots and
1311 their human masters. To restore peace to humankind, the player must complete
1312 numerous quests while fighting off rebelling robots---either by taking control
1313 of them, or by simply blasting them to pieces with melee and ranged weapons in
1315 (license (list license:expat ; lua/
1316 license:gpl3 ; src/gen_savestruct.py
1317 license:gpl2+)))) ; the rest
1319 (define-public golly
1325 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1326 version "/golly-" version
1330 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1331 (build-system gnu-build-system)
1333 '(#:make-flags (list "CC=gcc"
1334 (string-append "GOLLYDIR="
1335 (assoc-ref %outputs "out")
1337 #:tests? #f ; no check target
1339 (modify-phases %standard-phases
1341 (lambda* (#:key inputs #:allow-other-keys)
1342 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1343 ;; properly set the path to the Python shared library. This
1344 ;; substitution acheives the same end by different means.
1345 (substitute* "gui-wx/wxprefs.cpp"
1346 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1347 (string-append "pythonlib = \""
1348 (assoc-ref inputs "python")
1349 "/lib/libpython-2.7.so\"")))
1352 (lambda* (#:key make-flags outputs #:allow-other-keys)
1353 (with-directory-excursion "gui-wx"
1354 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1356 (lambda* (#:key outputs #:allow-other-keys)
1357 (let* ((out (assoc-ref outputs "out"))
1358 (bin (string-append out "/bin"))
1359 (doc (string-append out "/share/doc/golly"))
1360 (pixmaps (string-append out "/share/pixmaps"))
1361 (share (string-append out "/share/golly")))
1362 (for-each (lambda (binary)
1363 (install-file binary bin))
1364 '("bgolly" "golly"))
1365 (for-each (lambda (document)
1367 (string-append "docs/" document ".html")
1369 '("License" "ReadMe" "ToDo"))
1370 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1371 (for-each (lambda (folder)
1374 (string-append share "/" folder)))
1375 '("Help" "Patterns" "Rules" "Scripts")))
1382 ("python" ,python-2)
1383 ("wxwidgets" ,wxwidgets-gtk2)
1385 (home-page "http://golly.sourceforge.net/")
1386 (synopsis "Software for exploring cellular automata")
1388 "Golly simulates Conway's Game of Life and many other types of cellular
1389 automata. The following features are available:
1391 @item Support for bounded and unbounded universes, with cells of up to 256
1393 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1395 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1396 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1397 @item Scriptable via Lua or Python.
1398 @item Extracting patterns, rules and scripts from zip files.
1399 @item Downloading patterns, rules and scripts from online archives.
1400 @item Pasting patterns from the clipboard.
1401 @item Unlimited undo/redo.
1402 @item Configurable keyboard shortcuts.
1403 @item Auto fit option to keep patterns within the view.
1405 (license license:gpl2+)))
1407 (define-public julius
1415 (url "https://github.com/bvschaik/julius")
1416 (commit (string-append "v" version))))
1417 (file-name (git-file-name name version))
1419 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1420 ;; Remove unused bundled libraries.
1421 (modules '((guix build utils)))
1424 (with-directory-excursion "ext"
1425 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1427 (build-system cmake-build-system)
1429 `(("libpng" ,libpng)
1431 ("sdl2-mixer" ,sdl2-mixer)))
1432 (home-page "https://github.com/bvschaik/julius")
1433 (synopsis "Re-implementation of Caesar III game engine")
1435 "Engine for Caesar III, a city-building real-time strategy game.
1436 Julius includes some UI enhancements while preserving the logic (including
1437 bugs) of the original game, so that saved games are compatible. This package
1438 does not include game data.")
1439 (license (list license:agpl3
1440 license:zlib)))) ; ext/tinyfiledialogs
1442 (define-public augustus
1451 (url "https://github.com/Keriew/augustus")
1452 (commit (string-append "v" version))))
1453 (file-name (git-file-name name version))
1455 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1456 ;; Remove unused bundled libraries.
1457 (modules '((guix build utils)))
1460 (with-directory-excursion "ext"
1461 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1464 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1466 (home-page "https://github.com/Keriew/augustus")
1467 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1469 "Fork of Julius, an engine for the a city-building real-time strategy
1470 game Caesar III. Gameplay enhancements include:
1474 @item market special orders;
1475 @item global labour pool;
1476 @item partial warehouse storage;
1477 @item increased game limits;
1478 @item zoom controls.
1481 (define-public meandmyshadow
1483 (name "meandmyshadow")
1487 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1488 version "/meandmyshadow-" version
1492 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1493 (build-system cmake-build-system)
1495 `(#:tests? #f)) ; there are no tests
1497 `(("pkg-config" ,pkg-config)))
1500 ("libarchive" ,libarchive)
1502 ("sdl" ,(sdl-union (list sdl2
1506 (home-page "https://acmepjz.github.io/meandmyshadow/")
1507 (synopsis "Puzzle/platform game")
1508 (description "Me and My Shadow is a puzzle/platform game in which you try
1509 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1510 and much more stand between you and the exit. Record your moves and let your
1511 shadow mimic them to reach blocks you couldn't reach alone.")
1512 (license license:gpl3+)))
1514 (define-public opensurge
1522 (url "https://github.com/alemart/opensurge")
1523 (commit (string-append "v" version))))
1524 (file-name (git-file-name name version))
1526 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1527 (build-system cmake-build-system)
1529 `(#:tests? #f ;there are no tests
1531 (let* ((out (assoc-ref %outputs "out"))
1532 (share (string-append out "/share")))
1533 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1534 (string-append "-DGAME_DATADIR=" share "/" ,name)
1535 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1536 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1537 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1539 (modify-phases %standard-phases
1540 (add-after 'unpack 'fix-xdg-open-path
1541 (lambda* (#:key inputs #:allow-other-keys)
1542 ;; Look for xdg-open in the store.
1543 (substitute* "src/core/web.c"
1544 (("/usr(/bin/xdg-open)" _ bin)
1545 (string-append (assoc-ref inputs "xdg-utils") bin)))
1547 (add-after 'unpack 'unbundle-fonts
1548 (lambda* (#:key inputs #:allow-other-keys)
1549 ;; Replace bundled Roboto fonts with links to the store.
1550 (with-directory-excursion "fonts"
1551 (let ((roboto-dir (string-append
1552 (assoc-ref inputs "font-google-roboto")
1553 "/share/fonts/truetype/")))
1557 (symlink (string-append roboto-dir font) font))
1558 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1561 `(("allegro" ,allegro)
1562 ("font-google-roboto" ,font-google-roboto)
1563 ("surgescript" ,surgescript)
1564 ("xdg-utils" ,xdg-utils)))
1565 (home-page "https://opensurge2d.org")
1566 (synopsis "2D retro side-scrolling game")
1567 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1568 inspired by the Sonic games. The player runs at high speeds through each
1569 level while collecting items and avoiding obstacles. The game includes a
1570 built-in level editor.")
1572 ;; Code is under GPL 3+, assets are under various licenses.
1573 ;; See src/misc/credits.c for details.
1579 license:public-domain
1580 license:silofl1.1))))
1582 (define-public knights
1588 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1589 version "_src.tar.gz"))
1592 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1593 (build-system gnu-build-system)
1596 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1597 "CXXFLAGS=-lpthread")
1599 (modify-phases %standard-phases
1600 ;; No configure script.
1601 (delete 'configure))
1602 #:tests? #f)) ;; No check target.
1605 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1606 ("freetype" ,freetype)
1607 ("fontconfig" ,fontconfig)
1610 `(("pkg-config" ,pkg-config)))
1611 (home-page "http://www.knightsgame.org.uk/")
1612 (synopsis "Multiplayer dungeon game involving knights and quests")
1613 (description "Knights is a multiplayer game involving several knights who
1614 must run around a dungeon and complete various quests. Each game revolves
1615 around a quest – for example, you might have to find some items and carry them
1616 back to your starting point. This may sound easy, but as there are only
1617 enough items in the dungeon for one player to win, you may end up having to
1618 kill your opponents to get their stuff! Other quests involve escaping from
1619 the dungeon, fighting a duel to the death against the enemy knights, or
1620 destroying an ancient book using a special wand.")
1621 ;; This package includes modified sources of lua (X11), enet (Expat), and
1622 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1623 ;; license. The whole package is released under GPLv3+.
1624 (license license:gpl3+)))
1626 (define-public gnome-chess
1628 (name "gnome-chess")
1632 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1633 (version-major+minor version) "/"
1634 "gnome-chess-" version ".tar.xz"))
1637 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1638 (build-system meson-build-system)
1642 (modify-phases %standard-phases
1643 (add-after 'unpack 'skip-gtk-update-icon-cache
1644 ;; Don't create 'icon-theme.cache'.
1646 (substitute* "meson_post_install.py"
1647 (("gtk-update-icon-cache") "true"))
1651 ("librsvg" ,librsvg)))
1653 `(("gettext" ,gettext-minimal)
1654 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1655 ("itstool" ,itstool)
1656 ("pkg-config" ,pkg-config)
1658 (home-page "https://wiki.gnome.org/Apps/Chess")
1659 (synopsis "Chess board for GNOME")
1660 (description "GNOME Chess provides a 2D board for playing chess games
1661 against human or computer players. It supports loading and saving games in
1662 Portable Game Notation. To play against a computer, install a chess engine
1663 such as chess or stockfish.")
1664 (license license:gpl3+)))
1666 (define-public gnubg
1669 (version "1.06.002")
1673 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1674 version "-sources.tar.gz"))
1677 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1678 (build-system gnu-build-system)
1679 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1680 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1681 ("pango" ,pango-1.42)
1684 ("readline" ,readline)
1688 ("gtkglext" ,gtkglext)
1690 ("libcanberra" ,libcanberra)))
1691 (native-inputs `(("python-2" ,python-2)
1692 ("pkg-config" ,pkg-config)))
1695 ;; SSE instructions are available on Intel systems only.
1696 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1699 '("--enable-simd=sse2") ; prevent avx instructions
1702 (modify-phases %standard-phases
1703 (add-after 'install 'install-desktop-file
1704 (lambda* (#:key outputs #:allow-other-keys)
1705 (let* ((out (assoc-ref outputs "out"))
1706 (apps (string-append out "/share/applications")))
1708 (with-output-to-file (string-append apps "/gnubg.desktop")
1712 Name=GNU Backgammon~@
1713 Exec=~a/bin/gnubg -w~@
1720 (home-page "https://www.gnu.org/software/gnubg/")
1721 (synopsis "Backgammon game")
1722 (description "The GNU backgammon application (also known as \"gnubg\") can
1723 be used for playing, analyzing and teaching the game. It has an advanced
1724 evaluation engine based on artificial neural networks suitable for both
1725 beginners and advanced players. In addition to a command-line interface, it
1726 also features an attractive, 3D representation of the playing board.")
1727 (license license:gpl3+)))
1729 (define-public gnubik
1736 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1740 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1741 (build-system gnu-build-system)
1743 '(#:phases (modify-phases %standard-phases
1744 (add-after 'unpack 'skip-gtk-update-icon-cache
1746 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1747 ;; unnecessary and causes a needless dependency on glib.
1748 (substitute* "Makefile.in"
1749 (("gtk-update-icon-cache")
1752 (inputs `(("gtk+" ,gtk+-2)
1756 ("guile" ,guile-2.0)
1757 ("gtkglext" ,gtkglext)))
1758 (native-inputs `(("gettext" ,gettext-minimal)
1759 ("pkg-config" ,pkg-config)))
1760 (home-page "https://www.gnu.org/software/gnubik/")
1761 (synopsis "3d Rubik's cube game")
1763 "GNUbik is a puzzle game in which you must manipulate a cube to make
1764 each of its faces have a uniform color. The game is customizable, allowing
1765 you to set the size of the cube (the default is 3x3) or to change the colors.
1766 You may even apply photos to the faces instead of colors. The game is
1767 scriptable with Guile.")
1768 (license license:gpl3+)))
1770 (define-public gnushogi
1777 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1781 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1782 (arguments `(#:tests? #f)) ;; No check target.
1783 (build-system gnu-build-system)
1784 (home-page "https://www.gnu.org/software/gnushogi/")
1785 (synopsis "The game of Shogi (Japanese chess)")
1786 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1787 Chess). It is similar to standard chess but this variant is far more complicated.")
1788 (license license:gpl3+)))
1790 (define-public ltris
1797 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1798 "ltris-" version ".tar.gz"))
1800 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1801 (build-system gnu-build-system)
1803 '(;; The code in LTris uses traditional GNU semantics for inline functions
1804 #:configure-flags '("CFLAGS=-fgnu89-inline")
1806 (modify-phases %standard-phases
1807 (add-after 'set-paths 'set-sdl-paths
1808 (lambda* (#:key inputs #:allow-other-keys)
1810 (string-append (assoc-ref inputs "sdl-union")
1812 (or (getenv "CPATH") "")))
1815 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1816 (home-page "http://lgames.sourceforge.net/LTris/")
1817 (synopsis "Tetris clone based on the SDL library")
1819 "LTris is a tetris clone: differently shaped blocks are falling down the
1820 rectangular playing field and can be moved sideways or rotated by 90 degree
1821 units with the aim of building lines without gaps which then disappear (causing
1822 any block above the deleted line to fall down). LTris has three game modes: In
1823 Classic you play until the stack of blocks reaches the top of the playing field
1824 and no new blocks can enter. In Figures the playing field is reset to a new
1825 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1826 up to three players (either human or CPU) compete with each other sending
1827 removed lines to all opponents. There is also a Demo mode in which you can
1828 watch your CPU playing while enjoying a cup of tea!")
1829 (license license:gpl2+)))
1831 (define-public nethack
1839 (string-append "https://www.nethack.org/download/" version "/nethack-"
1840 (string-join (string-split version #\.) "") "-src.tgz"))
1842 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1847 `(("ncurses" ,ncurses)
1849 (build-system gnu-build-system)
1852 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1854 (modify-phases %standard-phases
1855 (add-before 'configure 'patch-paths
1857 (substitute* "sys/unix/nethack.sh"
1859 (substitute* "sys/unix/Makefile.utl"
1860 (("^YACC *=.*$") "YACC = bison -y\n")
1861 (("^LEX *=.*$") "LEX = flex\n")
1862 (("^# CC = gcc") "CC = gcc"))
1863 (substitute* "sys/unix/hints/linux"
1864 (("/bin/gzip") (string-append
1865 (assoc-ref %build-inputs "gzip")
1867 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1868 (substitute* "include/config.h"
1869 (("^.*define CHDIR.*$") "")
1870 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1871 ;; Honor SOURCE_DATE_EPOCH.
1872 "#define REPRODUCIBLE_BUILD"))
1874 ;; Note: 'makedefs' rejects and ignores dates that are too old
1875 ;; or too new, so we must choose something reasonable here.
1876 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1878 (substitute* "sys/unix/Makefile.src"
1879 (("^# CC = gcc") "CC = gcc"))
1883 (let ((bash (string-append
1884 (assoc-ref %build-inputs "bash")
1886 (with-directory-excursion "sys/unix"
1887 (substitute* "setup.sh" (("/bin/sh") bash))
1888 (invoke bash "setup.sh" "hints/linux"))
1890 (add-after 'install 'fixup-paths
1892 (let* ((output (assoc-ref %outputs "out"))
1893 (nethack-script (string-append output "/bin/nethack")))
1894 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1898 (string-append output "/games/lib/nethackdir/" file)
1899 (string-append output "/games/lib/nethackuserdir/"
1901 '("xlogfile" "logfile" "perm" "record" "save"))
1902 (mkdir-p (string-append output "/bin"))
1903 (call-with-output-file nethack-script
1905 (format port "#!~a/bin/sh
1907 if [ ! -d ~~/.config/nethack ]; then
1908 mkdir -p ~~/.config/nethack
1909 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1910 chmod -R +w ~~/.config/nethack
1921 for i in ~~/.config/nethack/*; do
1922 ln -s $i $(basename $i)
1924 for i in ~a/games/lib/nethackdir/*; do
1925 ln -s $i $(basename $i)
1928 (assoc-ref %build-inputs "bash")
1929 (list->search-path-as-string
1932 (assoc-ref %build-inputs "coreutils") "/bin")
1934 (assoc-ref %build-inputs "less") "/bin"))
1939 (chmod nethack-script #o555)
1942 (home-page "https://nethack.org")
1943 (synopsis "Classic dungeon crawl game")
1944 (description "NetHack is a single player dungeon exploration game that runs
1945 on a wide variety of computer systems, with a variety of graphical and text
1946 interfaces all using the same game engine. Unlike many other Dungeons &
1947 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1948 the dungeon and not simply killing everything in sight - in fact, killing
1949 everything in sight is a good way to die quickly. Each game presents a
1950 different landscape - the random number generator provides an essentially
1951 unlimited number of variations of the dungeon and its denizens to be discovered
1952 by the player in one of a number of characters: you can pick your race, your
1953 role, and your gender.")
1955 (license:fsdg-compatible
1956 "https://nethack.org/common/license.html"))))
1958 (define-public pipewalker
1965 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1966 version "/pipewalker-" version ".tar.gz"))
1968 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1969 (build-system gnu-build-system)
1972 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1973 "/share/doc/" ,name "-" ,version))
1975 (modify-phases %standard-phases
1976 (add-after 'configure 'patch-docdir
1977 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1979 (substitute* "Makefile"
1980 (("(pkgdocdatadir = ).*" _ assignment)
1981 (string-append assignment "$(docdir)\n")))
1984 `(("libpng" ,libpng)
1987 (home-page "http://pipewalker.sourceforge.net/")
1988 (synopsis "Logical tile puzzle")
1990 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1991 computers to one network server, bring water from a source to the taps, etc.
1992 The underlying mechanism is always the same: you must turn each tile in the
1993 grid in the right direction to combine all components into a single circuit.
1994 Every puzzle has a complete solution, although there may be more than one.")
1995 (license license:gpl3+)))
1997 (define-public prboom-plus
1999 (name "prboom-plus")
2003 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2004 version "/prboom-plus-" version ".tar.gz"))
2006 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2007 (modules '((guix build utils)))
2010 (substitute* "src/version.c"
2014 (build-system gnu-build-system)
2016 '(#:configure-flags '("--disable-cpu-opt")
2017 #:make-flags `(,(string-append "gamesdir="
2018 (assoc-ref %outputs "out") "/bin"))
2020 (modify-phases %standard-phases
2021 (add-after 'set-paths 'set-sdl'paths
2022 (lambda* (#:key inputs #:allow-other-keys)
2024 (string-append (assoc-ref inputs "sdl-union")
2026 (or (getenv "CPATH") "")))
2029 `(("fluidsynth" ,fluidsynth)
2033 ("libvorbis" ,libvorbis)
2035 ("portmidi" ,portmidi)
2036 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2037 (home-page "http://prboom-plus.sourceforge.net/")
2038 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2040 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2041 (license license:gpl2+)))
2043 (define-public retux
2044 (let ((release "1.4.1")
2048 (version (if (zero? revision)
2050 (string-append release "-"
2051 (number->string revision))))
2054 (uri (string-append "https://github.com/retux-game/retux/"
2055 "releases/download/v"
2057 release "-src.tar.gz"))
2060 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
2061 (build-system python-build-system)
2063 `(#:tests? #f ; no check target
2065 (modify-phases %standard-phases
2066 ;; no setup.py script
2069 (lambda* (#:key outputs #:allow-other-keys)
2070 (let* ((out (assoc-ref outputs "out"))
2071 (bin (string-append out "/bin"))
2072 (data (string-append out "/share/retux")))
2075 (substitute* "retux.py"
2076 ;; Use the correct data directory.
2077 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2078 (string-append "\"" data "\",")))
2080 (copy-file "retux.py" (string-append bin "/retux"))
2081 (copy-recursively "data" data)
2084 `(("python-sge-pygame" ,python-sge-pygame)
2085 ("python-six" ,python-six)
2086 ("python-xsge" ,python-xsge)))
2087 (home-page "https://retux-game.github.io/")
2088 (synopsis "Action platformer game")
2090 "ReTux is an action platformer loosely inspired by the Mario games,
2091 utilizing the art assets from the @code{SuperTux} project.")
2092 ;; GPL version 3 or later is the license for the code and some art.
2093 ;; The rest of the licenses are for the art exclusively, as listed in
2095 (license (list license:cc0
2102 (define-public roguebox-adventures
2104 (name "roguebox-adventures")
2110 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2111 (string-join (string-split version #\.) "_") "_Source.zip"))
2112 (file-name (string-append name "-" version ".zip"))
2115 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2116 (build-system python-build-system)
2118 `(#:tests? #f ; no check target
2120 (modify-phases %standard-phases
2122 (lambda* (#:key source #:allow-other-keys)
2123 (and (invoke "unzip" source)
2124 ;; The actual source is buried a few directories deep.
2125 (chdir (string-append "RogueBoxAdventures_v"
2127 (string-split ,version #\.) "_")
2129 ;; no setup.py script
2131 (lambda* (#:key outputs #:allow-other-keys)
2132 (let* ((out (assoc-ref outputs "out"))
2133 (data (string-append
2134 out "/share/games/roguebox-adventures")))
2135 ;; Use the correct data directory.
2136 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2137 (("basic_path + os\\.sep + 'DATA'")
2138 (string-append "'" data "'"))
2140 (string-append "basic_path ='" data "'\n")))
2141 (substitute* "LIB/dialog.py"
2142 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2143 (string-append "d_path = '" data "'")))
2144 (substitute* "LIB/gra_files.py"
2145 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2146 (string-append "basic_path ='" data "'\n")))
2148 ;; The game must save in the user's home directory because
2149 ;; the store is read-only.
2150 (substitute* "main.py"
2151 (("home_save = False") "home_save = True")
2152 (("'icon_small.png'")
2153 (string-append "'" data "/icon_small.png'"))))
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (roguebox-adventures
2160 (string-append bin "/roguebox-adventures"))
2161 (data (string-append
2162 out "/share/games/roguebox-adventures"))
2163 (lib (string-append data "/LIB"))
2165 out "/share/doc/roguebox-adventures")))
2169 (for-each (lambda (file)
2170 (copy-recursively file
2171 (string-append data "/" file)))
2172 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2173 "icon_big.png" "icon_small.png"))
2174 (for-each (lambda (file)
2176 (install-file file lib))
2177 '("main.py" "run.py"))
2179 (copy-recursively "DOC" doc)
2181 (call-with-output-file
2186 export PYTHONPATH=~a/LIB:~a
2187 exec -a \"~a\" ~a \"$@\"\n"
2188 (which "bash") data (getenv "PYTHONPATH")
2190 (string-append lib "/main.py"))))
2191 (chmod roguebox-adventures #o555))
2194 `(("unzip" ,unzip)))
2196 `(("python-pygame" ,python-pygame)
2197 ("python-tmx" ,python-tmx)))
2198 (home-page "https://rogueboxadventures.tuxfamily.org")
2199 (synopsis "A classical roguelike/sandbox game")
2201 "RogueBox Adventures is a graphical roguelike with strong influences
2202 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2203 Adventures is to offer the player a kind of roguelike toy-world. This world
2204 can be explored and changed freely.")
2205 ;; The GPL3+ is for code, the rest are for art.
2206 (license (list license:cc0
2209 license:silofl1.1))))
2211 (define-public seahorse-adventures
2213 (name "seahorse-adventures")
2219 (url "https://github.com/dulsi/seahorse-adventures")
2220 (commit (string-append "release-" version))))
2221 (file-name (git-file-name name version))
2223 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2224 (modules '((guix build utils)
2227 ;; Remove non-free (non-commercial) font.
2230 (for-each delete-file (find-files "data/fonts" "."))
2232 (build-system python-build-system)
2234 `(#:tests? #f ;no test
2236 (modify-phases %standard-phases
2237 (delete 'build) ;pure Python
2238 (replace 'install ;no install script
2239 (lambda* (#:key outputs #:allow-other-keys)
2240 (let* ((out (assoc-ref outputs "out"))
2241 (bin (string-append out "/bin"))
2242 (share (string-append out "/share"))
2243 (applications (string-append share "/applications"))
2244 (data (string-append share "/seahorse-adventures")))
2246 (for-each (lambda (f)
2248 (install-file f data))
2249 '("leveledit.py" "run_game.py" "tileedit.py"))
2250 (for-each (lambda (dir)
2251 (let ((target (string-append data "/" dir)))
2253 (copy-recursively dir target)))
2255 ;; Create executable.
2257 (let ((executable (string-append bin "/seahorse-adventures")))
2258 (call-with-output-file executable
2262 export PYTHONPATH=~a:~a~@
2263 exec -a \"~a\" ~a \"$@\"~%"
2264 (which "bash") data (getenv "PYTHONPATH")
2266 (string-append data "/run_game.py"))))
2267 (chmod executable #o555))
2268 ;; Add desktop file.
2269 (mkdir-p applications)
2270 (make-desktop-entry-file
2271 (string-append applications "/seahorse-adventures.desktop")
2272 #:name "Seahorse Adventures"
2274 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2277 #:categories '("Game" "ActionGame")
2278 #:keywords '("game" "retro" "platform"))
2282 (let ((dir (string-append share "/icons/hicolor/"
2283 size "x" size "/apps")))
2286 (string-append "icon" size ".png")
2287 (string-append dir "/searhorse-adventures.png"))))
2288 '("32" "64" "128")))
2290 (add-after 'install 'unbundle-fonts
2291 ;; Unbundle Bitstream Vera font and replace deleted one.
2292 (lambda* (#:key outputs inputs #:allow-other-keys)
2293 (let* ((out (assoc-ref outputs "out"))
2294 (data (string-append out "/share/seahorse-adventures"))
2295 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2296 "/share/fonts/truetype/Vera.ttf")))
2297 (let ((themes-dir (string-append data "/data/themes/")))
2300 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2301 (delete-file target)
2302 (symlink vera target)))
2303 '("default" "gray")))
2304 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2305 (substitute* (string-append data "/lib/main.py")
2306 (("f_scale = 0.35") "f_scale = 0.47")))
2309 `(("font-bitstream-vera" ,font-bitstream-vera)
2310 ("python-pygame" ,python-pygame)))
2311 (home-page "http://www.imitationpickles.org/barbie/")
2312 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2314 "Barbie Seahorse Adventures is a retro style platform arcade game.
2315 You are Barbie the seahorse who travels through the jungle, up to the
2316 volcano until you float on bubbles to the moon. On the way to your
2317 final destination you will encounter various enemies, servants of the
2318 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2319 and defeat them with your bubbles!")
2320 ;; GPL2+ is for code, CC0 is for art.
2321 (license (list license:gpl2+ license:cc0))))
2323 (define-public solarus
2326 ;; XXX: When updating this package, please also update hash in
2327 ;; `solarus-quest-editor' below.
2333 (url "https://gitlab.com/solarus-games/solarus")
2334 (commit (string-append "v" version))))
2335 (file-name (git-file-name name version))
2337 (base32 "1n6l91yyqjx0pz4w1lp3yybpq0fs2yjswfcm8c1wjfkxwiznbdxi"))))
2338 (build-system cmake-build-system)
2341 (modify-phases %standard-phases
2342 (add-after 'unpack 'disable-failing-tests
2343 ;; The following tests fail reporting a missing "/dev/dri"
2346 (substitute* "tests/cmake/AddTestMaps.cmake"
2347 ((".*1200_create_shader_from_source.*" all)
2348 (string-append "#" all))
2349 ((".*1210_shader_scaling_factor.*" all)
2350 (string-append "#" all)))
2352 (add-before 'check 'set-home
2353 ;; Tests fail without setting the following environment
2356 (setenv "HOME" (getcwd))
2357 (setenv "XDG_RUNTIME_DIR" (getcwd))
2360 `(("pkg-config" ,pkg-config)
2361 ("qttools" ,qttools)))
2364 ("libmodplug" ,libmodplug)
2366 ("libvorbis" ,libvorbis)
2371 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2372 (home-page "https://www.solarus-games.org/")
2373 (synopsis "Lightweight game engine for Action-RPGs")
2375 "Solarus is a 2D game engine written in C++, that can run games
2376 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2378 ;; The source code is licensed under the terms of GPL-3.0.
2379 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2381 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2383 (define-public solarus-quest-editor
2386 (name "solarus-quest-editor")
2387 (version (package-version solarus))
2392 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2393 (commit (string-append "v" version))))
2394 (file-name (git-file-name name version))
2396 (base32 "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn"))))
2398 `(#:tests? #false ;no test
2400 (modify-phases %standard-phases
2401 (add-after 'unpack 'fix-qt-build
2402 ;; XXX: Fix build with Qt 5.15. It has been applied upstream as
2403 ;; 81d5c7f1 and can be removed at next upgrade.
2405 (substitute* "src/entities/jumper.cpp"
2406 (("#include <QPainter>" all)
2407 (string-append all "\n" "#include <QPainterPath>\n")))
2410 `(("solarus" ,solarus)
2411 ,@(package-inputs solarus)))
2412 (synopsis "Create and modify quests for the Solarus engine")
2414 "Solarus Quest Editor is a graphical user interface to create and
2415 modify quests for the Solarus engine.")))
2417 (define-public superstarfighter
2419 (name "superstarfighter")
2425 (url "https://github.com/notapixelstudio/superstarfighter")
2426 (commit (string-append "v" version))))
2427 (file-name (git-file-name name version))
2429 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2430 (build-system gnu-build-system)
2432 `(#:tests? #f ;there are no tests
2434 (modify-phases %standard-phases
2438 (setenv "HOME" (getcwd))
2439 (with-output-to-file "export_presets.cfg"
2444 platform=\"Linux/X11\"
2446 [preset.0.options]")))
2450 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2451 (invoke (string-append godot "/bin/godot_server")
2452 "--export-pack" "Guix"
2453 "superstarfighter.pck" "project.godot"))
2456 (lambda* (#:key inputs outputs #:allow-other-keys)
2457 (let* ((out (assoc-ref outputs "out"))
2458 (bin (string-append out "/bin"))
2459 (share (string-append out "/share"))
2460 (data (string-append share "/superstarfighter"))
2461 (icons (string-append share "/icons/hicolor/256x256/apps")))
2462 (install-file "superstarfighter.pck" data)
2464 (call-with-output-file (string-append bin "/superstarfighter")
2468 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2469 (assoc-ref inputs "godot")
2471 (chmod port #o755)))
2473 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2474 (make-desktop-entry-file
2475 (string-append share "/applications/" ,name ".desktop")
2476 #:name "SuperStarfighter"
2477 #:comment "Fast-paced arcade combat game"
2480 #:categories '("Game" "ArcadeGame")))
2483 `(("godot-headless" ,godot "headless")))
2485 `(("godot" ,godot)))
2486 (home-page "https://notapixel.itch.io/superstarfighter")
2487 (synopsis "Fast-paced local multiplayer arcade game")
2488 (description "In SuperStarfighter, up to four local players compete in a
2489 2D arena with fast-moving ships and missiles. Different game types are
2490 available, as well as a single-player mode with AI-controlled ships.")
2491 (license (list license:expat ; game
2492 license:silofl1.1)))) ; fonts
2494 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2495 (define %ufoai-revision "0")
2496 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2497 (define ufoai-source
2501 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2502 (commit %ufoai-commit)))
2503 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2506 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2507 (modules '((guix build utils)
2512 ;; Delete ~32MiB of bundled dependencies.
2513 (with-directory-excursion "src/libs"
2514 (for-each delete-file-recursively
2515 (lset-difference equal? (scandir ".")
2516 '("." ".." "gtest" "mumble"))))
2518 ;; Use relative path to Lua headers.
2519 (substitute* "src/common/scripts_lua.h"
2520 (("\\.\\./libs/lua/") ""))
2522 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2523 ;; it as a separate package. This way we don't need to make the same
2524 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2525 (substitute* "build/maps.mk"
2526 (("\\./ufo2map") "ufo2map")
2527 (("maps: ufo2map") "maps:"))
2528 (substitute* "build/modules/testall.mk"
2529 (("testall: ufo2map") "testall:"))
2531 ;; If no cURL headers are found, the build system will try to include
2532 ;; the bundled version, even when not required. Prevent that.
2533 (substitute* "build/default.mk"
2534 (("^include src/libs/curl/lib/Makefile\\.inc")
2537 ;; While here, improve reproducibility by adding the '-X' flag to the
2538 ;; zip command used to create the map files, in order to prevent time
2539 ;; stamps from making it into the generated archives.
2540 (substitute* "build/data.mk"
2541 (("\\$\\(call ZIP\\)")
2545 (define-public trigger-rally
2547 (name "trigger-rally")
2552 (uri (string-append "mirror://sourceforge/trigger-rally/"
2553 "trigger-" version "/"
2554 "trigger-rally-" version ".tar.gz"))
2557 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2558 (build-system gnu-build-system)
2560 `(("freealut" ,freealut)
2566 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2567 ("tinyxml2" ,tinyxml2)))
2569 `(#:make-flags (list (string-append "prefix=" %output)
2570 "bindir=$(prefix)/bin"
2571 "datadir=$(datarootdir)"
2573 #:tests? #f ; No tests present
2575 (modify-phases %standard-phases
2577 (add-before 'build 'cd-src
2578 (lambda _ (chdir "src")))
2579 (add-before 'build 'remove-timestamps
2581 (substitute* (list "Trigger/menu.cpp"
2583 ((".*__DATE__.*") ""))))
2584 (add-before 'build 'make-verbose
2586 (substitute* "GNUmakefile"
2587 (("@\\$\\(CXX\\)") "$(CXX)"))))
2588 (add-after 'build 'set-data-path
2589 (lambda* (#:key outputs #:allow-other-keys)
2590 (let ((out (assoc-ref outputs "out")))
2591 (substitute* "../bin/trigger-rally.config.defs"
2592 (("<data path=\"C:[^\"]*\"")
2593 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2594 (add-after 'install 'create-desktop-entry
2595 (lambda* (#:key outputs #:allow-other-keys)
2596 (let* ((out (assoc-ref outputs "out"))
2597 (apps (string-append out "/share/applications")))
2599 (with-output-to-file
2600 (string-append apps "/trigger-rally.desktop")
2602 (format #t ; Borrowed from Debian package
2604 Name=Trigger Rally~@
2605 Icon=trigger-rally~@
2606 Comment=3D rally racing car game~@
2607 Comment[de]=3D Rally-Autorennen~@
2608 Comment[fr_FR]=un jeu de rally en 3D~@
2609 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2610 Exec=~a/bin/trigger-rally~@
2612 StartupNotify=false~@
2614 TryExec=~:*~a/bin/trigger-rally~@
2615 Categories=Game;ArcadeGame;~@
2616 Keywords=racing;tracks;~@
2617 Keywords[de]=Rennstrecke;~%"
2619 (home-page "http://trigger-rally.sourceforge.net")
2620 (synopsis "Fast-paced single-player racing game")
2621 (description "Trigger-rally is a 3D rally simulation with great physics
2622 for drifting on over 200 maps. Different terrain materials like dirt,
2623 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2624 this rally simulation the edge over many other games. You need to make it
2625 through the maps in often tight time limits and can further improve by beating
2626 the recorded high scores. All attached single races must be finished in time
2627 in order to win an event, unlocking additional events and cars. Most maps are
2628 equipped with spoken co-driver notes and co-driver icons.")
2629 (license (list license:cc0 ;textures and audio in data.zip
2632 (define-public ufo2map
2635 (version %ufoai-version)
2636 (home-page "https://ufoai.org/")
2637 (source ufoai-source)
2638 (build-system gnu-build-system)
2640 '(#:configure-flags '("CC=gcc" "CXX=g++"
2643 "--disable-uforadiant"
2644 "--disable-cgame-campaign"
2645 "--disable-cgame-multiplayer"
2646 "--disable-cgame-skirmish"
2652 "--disable-ufomodel"
2653 "--disable-ufoslicer")
2654 #:tests? #f ;no tests
2655 #:phases (modify-phases %standard-phases
2657 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2658 ;; The home-made configure script does not understand
2659 ;; some of the default flags of gnu-build-system.
2660 (apply invoke "./configure" configure-flags)))
2662 (lambda* (#:key outputs #:allow-other-keys)
2663 (let ((out (assoc-ref outputs "out")))
2664 (install-file "ufo2map" (string-append out "/bin"))
2665 (install-file "debian/ufo2map.6"
2666 (string-append out "/share/man/man6"))
2669 `(("pkg-config" ,pkg-config)))
2671 `(("libjpeg" ,libjpeg-turbo)
2674 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2675 (synopsis "UFO: AI map generator")
2677 "This package provides @command{ufo2map}, a program used to generate
2678 maps for the UFO: Alien Invasion strategy game.")
2679 (license license:gpl2+)))
2684 (version %ufoai-version)
2685 (home-page "https://ufoai.org/")
2686 (source ufoai-source)
2687 (build-system gnu-build-system)
2690 #:configure-flags '("CC=gcc" "CXX=g++")
2691 #:phases (modify-phases %standard-phases
2693 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2694 (apply invoke "./configure" configure-flags)))
2696 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2698 "-j" (if parallel-build?
2699 (number->string (parallel-job-count))
2702 (add-after 'build 'pack
2704 (invoke "make" "pk3")))
2706 (lambda* (#:key outputs #:allow-other-keys)
2707 (let ((out (assoc-ref outputs "out")))
2708 (for-each (lambda (file)
2709 (install-file file out))
2710 (find-files "base" "\\.pk3$"))
2713 `(("python" ,python-2)
2714 ("ufo2map" ,ufo2map)
2717 (synopsis "UFO: AI data files")
2719 "This package contains maps and other assets for UFO: Alien Invasion.")
2720 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2721 ;; licenses, see LICENSES for details.
2722 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2723 license:cc-by-sa3.0 license:public-domain))))
2725 (define-public ufoai
2728 (version %ufoai-version)
2729 (home-page "https://ufoai.org/")
2730 (source ufoai-source)
2731 (build-system gnu-build-system)
2734 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2735 (string-append "--datadir=" (assoc-ref %outputs "out")
2741 "--disable-dependency-tracking"
2743 ;; Disable hard links to prevent huge NARs.
2744 "--disable-hardlinkedgame"
2745 "--disable-hardlinkedcgame")
2746 #:phases (modify-phases %standard-phases
2747 (add-after 'unpack 'symlink-data-files
2748 (lambda* (#:key inputs #:allow-other-keys)
2749 (let ((data (assoc-ref inputs "ufoai-data")))
2750 ;; Symlink the data files to where the build system
2751 ;; expects to find them. Ultimately these files are
2752 ;; copied to $out/share/games/ufoai/base, losing the
2753 ;; symlinks; we could fix that after install, but it
2754 ;; does not make a big difference in practice due to
2756 (with-directory-excursion "base"
2757 (for-each (lambda (file)
2758 (symlink file (basename file)))
2759 (find-files data "\\.pk3$")))
2761 (add-before 'configure 'create-language-files
2763 (invoke "make" "lang")))
2765 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2766 (apply invoke "./configure" configure-flags)))
2768 (lambda* (#:key tests? #:allow-other-keys)
2770 (invoke "./testall")
2771 (format #t "test suite not run~%"))
2773 (add-after 'install 'install-man-pages
2774 (lambda* (#:key outputs #:allow-other-keys)
2775 (let* ((out (assoc-ref outputs "out"))
2776 (man6 (string-append out "/share/man/man6")))
2777 (install-file "debian/ufo.6" man6)
2778 (install-file "debian/ufoded.6" man6)
2781 ;; TODO: Some map tests occasionally fail because of randomness issues,
2782 ;; e.g. not enough generated aliens. The test runner also fails early
2783 ;; in the build container with 'failed to shutdown server'?
2786 `(("gettext" ,gettext-minimal)
2787 ("pkg-config" ,pkg-config)
2788 ("python" ,python-2)
2789 ("ufo2map" ,ufo2map)
2790 ("ufoai-data" ,ufoai-data)))
2793 ("libjpeg" ,libjpeg-turbo)
2796 ("libtheora" ,libtheora)
2797 ("libvorbis" ,libvorbis)
2798 ("libxml2" ,libxml2)
2801 ("minixml" ,minixml)
2802 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2804 (synopsis "Turn-based tactical strategy game")
2806 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2807 You control a secret organisation charged with defending Earth from a brutal
2808 alien enemy. Build up your bases, prepare your team, and dive head-first into
2809 the fast and flowing turn-based combat.
2811 Over the long term you will need to conduct research into the alien threat to
2812 figure out their mysterious goals and use their powerful weapons for your own
2813 ends. You will produce unique items and use them in combat against your
2816 You can also use them against your friends with the multiplayer functionality.
2818 Warning: This is a pre-release version of UFO: AI! Some things may not work
2821 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2822 ;; because some assets do not use the "or later" clause. Many individual
2823 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2824 (license (delete license:gpl2+ (package-license ufoai-data)))))
2826 (define-public xshogi
2833 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2837 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2838 (build-system gnu-build-system)
2840 `(("libxaw" ,libxaw)
2842 (home-page "https://www.gnu.org/software/gnushogi/")
2843 (synopsis "User interface for gnushogi")
2844 (description "A graphical user interface for the package @code{gnushogi}.")
2845 ;; Contains a copy of GPLv3 but the licence notices simply
2846 ;; state "GNU General Public Licence" without specifying a version.
2847 (license license:gpl1+)))
2849 (define-public abbaye
2857 (url "https://github.com/nevat/abbayedesmorts-gpl")
2858 (commit (string-append "v" version))))
2859 (file-name (git-file-name name version))
2861 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2862 (modules '((guix build utils)))
2866 (delete-file-recursively "fonts")
2868 (build-system gnu-build-system)
2870 '(#:make-flags '("CC=gcc")
2871 #:phases (modify-phases %standard-phases
2872 (add-after 'set-paths 'set-sdl-paths
2873 (lambda* (#:key inputs #:allow-other-keys)
2875 (string-append (assoc-ref inputs "sdl-union")
2877 (or (getenv "CPATH") "")))))
2878 (add-after 'patch-source-shebangs 'patch-makefile
2879 (lambda* (#:key outputs #:allow-other-keys)
2880 ;; Replace /usr with package output directory.
2881 (substitute* "Makefile"
2882 (("/usr") (assoc-ref outputs "out")))))
2883 (add-before 'install 'make-install-dirs
2884 (lambda* (#:key outputs #:allow-other-keys)
2885 (let ((prefix (assoc-ref outputs "out")))
2886 ;; Create directories that the makefile assumes exist.
2887 (mkdir-p (string-append prefix "/bin"))
2888 (mkdir-p (string-append prefix "/share/applications"))
2889 (mkdir-p (string-append prefix "/share/pixmaps")))))
2890 ;; No configure script.
2891 (delete 'configure))
2892 #:tests? #f)) ;; No check target.
2893 (native-inputs `(("pkg-config" ,pkg-config)))
2894 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2895 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2896 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2897 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2898 France. The Cathars, who preach about good Christian beliefs, were being
2899 expelled by the Catholic Church out of the Languedoc region in France. One of
2900 them, called Jean Raymond, found an old church in which to hide, not knowing
2901 that beneath its ruins lay buried an ancient evil.")
2902 (license license:gpl3)))
2904 (define-public angband
2911 (uri (string-append "https://rephial.org/downloads/"
2912 (version-major+minor version)
2913 "/angband-" version ".tar.gz"))
2915 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2916 (modules '((guix build utils)))
2918 ;; So, some of the sounds/graphics/tilesets are under different
2919 ;; licenses... some of them even nonfree! This is a console-only
2920 ;; version of this package so we just remove them.
2921 ;; In the future, if someone tries to make a graphical variant of
2922 ;; this package, they can deal with that mess themselves. :)
2924 (for-each (lambda (subdir)
2925 (let ((lib-subdir (string-append "lib/" subdir)))
2926 (delete-file-recursively lib-subdir)))
2927 '("fonts" "icons" "sounds" "tiles"))
2928 (substitute* "lib/Makefile"
2929 ;; And don't try to invoke makefiles in the directories we removed.
2930 (("gamedata customize help screens fonts tiles sounds icons user")
2931 "gamedata customize help screens user"))
2933 (build-system gnu-build-system)
2935 `(#:tests? #f ; no check target
2936 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2938 (modify-phases %standard-phases
2941 (substitute* "acinclude.m4"
2942 (("ncursesw5-config") "ncursesw6-config"))
2943 (invoke "sh" "autogen.sh"))))))
2945 `(("autoconf" ,autoconf)
2946 ("automake" ,automake)))
2947 (inputs `(("ncurses" ,ncurses)))
2948 (home-page "https://rephial.org/")
2949 (synopsis "Dungeon exploration roguelike")
2950 (description "Angband is a Classic dungeon exploration roguelike. Explore
2951 the depths below Angband, seeking riches, fighting monsters, and preparing to
2952 fight Morgoth, the Lord of Darkness.")
2953 (license license:gpl2)))
2955 (define-public pingus
2963 (url "https://gitlab.com/pingus/pingus.git")
2964 (commit (string-append "v" version))))
2965 (file-name (git-file-name name version))
2968 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2969 (patches (search-patches "pingus-boost-headers.patch"
2970 "pingus-sdl-libs-config.patch"))
2971 (modules '((guix build utils)))
2974 (substitute* "src/pingus/screens/demo_session.cpp"
2975 (("#include <iostream>")
2976 ;; std::function moved to <functional> with C++ 11.
2977 ;; Remove this for versions newer than 0.7.6.
2978 "#include <iostream>\n#include <functional>"))
2980 (build-system gnu-build-system)
2981 (native-inputs `(("pkg-config" ,pkg-config)
2982 ("scons-python2" ,scons-python2)))
2983 (inputs `(("sdl" ,sdl)
2984 ("sdl-image" ,sdl-image)
2985 ("sdl-mixer" ,sdl-mixer)
2991 '(#:make-flags (list (string-append "PREFIX=" %output))
2992 #:tests? #f ; no check target
2994 (modify-phases %standard-phases
2995 (delete 'configure)))) ; no configure script
2996 (home-page "https://pingus.seul.org/")
2997 (synopsis "Lemmings clone")
2999 "Pingus is a free Lemmings-like puzzle game in which the player takes
3000 command of a bunch of small animals and has to guide them through levels.
3001 Since the animals walk on their own, the player can only influence them by
3002 giving them commands, like build a bridge, dig a hole, or redirect all animals
3003 in the other direction. Multiple such commands are necessary to reach the
3004 level's exit. The game is presented in a 2D side view.")
3005 ;; Some source files are under bsd-3 and gpl2+ licenses.
3006 (license license:gpl3+)))
3008 (define-public talkfilters
3010 (name "talkfilters")
3015 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3016 "talkfilters-" version ".tar.gz"))
3018 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3019 (build-system gnu-build-system)
3020 (home-page "https://www.gnu.org/software/talkfilters/")
3021 (synopsis "Convert English text to humorous dialects")
3022 (description "The GNU Talk Filters are programs that convert English text
3023 into stereotyped or otherwise humorous dialects. The filters are provided as
3024 a C library, so they can easily be integrated into other programs.")
3025 (license license:gpl2+)))
3027 (define-public taisei
3034 (uri (string-append "https://github.com/taisei-project/"
3035 "taisei/releases/download/v" version
3036 "/taisei-v" version ".tar.xz"))
3038 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
3039 (build-system meson-build-system)
3041 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3043 (list "-Dr_default=gles30"
3046 "-Dshader_transpiler=true")))
3048 `(("pkg-config" ,pkg-config)
3050 ("python-docutils" ,python-docutils)
3051 ("python-pygments" ,python-pygments)))
3053 `(("freetype" ,freetype)
3055 ("libwebp" ,libwebp)
3058 ("openssl" ,openssl)
3059 ("opusfile" ,opusfile)
3061 ("sdl2-mixer" ,sdl2-mixer)
3062 ("shaderc" ,shaderc)
3063 ("spirv-cross" ,spirv-cross)
3065 (home-page "https://taisei-project.org/")
3066 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3068 "The player controls a character (one of three: Good, Bad, and Dead),
3069 dodges the missiles (lots of it cover the screen, but the character's hitbox
3070 is very small), and shoot at the adversaries that keep appear on the screen.")
3071 (license (list ;;game
3073 ;;resources/00-taisei.pkgdir/bgm/
3078 license:public-domain))))
3080 (define-public cmatrix
3088 (url "https://github.com/abishekvashok/cmatrix")
3089 (commit (string-append "v" version))))
3090 (file-name (git-file-name name version))
3093 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3094 (build-system gnu-build-system)
3096 `(("autoconf" ,autoconf)
3097 ("automake" ,automake)))
3100 (modify-phases %standard-phases
3102 (lambda* (#:key outputs #:allow-other-keys)
3103 ;; This old ‘configure’ script doesn't support
3104 ;; variables passed as arguments.
3105 (let ((out (assoc-ref outputs "out")))
3106 (setenv "CONFIG_SHELL" (which "bash"))
3107 (invoke "./configure"
3108 (string-append "--prefix=" out))))))))
3109 (inputs `(("ncurses" ,ncurses)))
3110 (home-page "http://www.asty.org/cmatrix")
3111 (synopsis "Simulate the display from \"The Matrix\"")
3112 (description "CMatrix simulates the display from \"The Matrix\" and is
3113 based on the screensaver from the movie's website. It works with terminal
3114 settings up to 132x300 and can scroll lines all at the same rate or
3115 asynchronously and at a user-defined speed.")
3116 (license license:gpl2+)))
3118 (define-public chess
3125 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3129 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3130 (build-system gnu-build-system)
3131 (home-page "https://www.gnu.org/software/chess/")
3132 (synopsis "Full chess implementation")
3133 (description "GNU Chess is a chess engine. It allows you to compete
3134 against the computer in a game of chess, either through the default terminal
3135 interface or via an external visual interface such as GNU XBoard.")
3136 (properties '((upstream-name . "gnuchess")
3137 (ftp-directory . "/chess")))
3138 (license license:gpl3+)))
3140 (define-public freedink-engine
3142 (name "freedink-engine")
3146 (uri (string-append "mirror://gnu/freedink/freedink-" version
3148 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3151 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3152 (build-system gnu-build-system)
3154 `(#:configure-flags '("--disable-embedded-resources")
3156 (modify-phases %standard-phases
3157 (add-after 'unpack 'disable-graphical-tests
3159 ;; These tests require a graphical interface.
3160 (substitute* "src/Makefile.am"
3161 (("test_gfx_fonts TestIOGfxDisplay") ""))
3163 (add-before 'bootstrap 'autoreconf
3165 ;; automake is out of date in the source
3166 ;; autoreconf updates the automake scripts
3167 (invoke "autoreconf")
3168 ;; Build fails when autom4te.cache exists.
3169 (delete-file-recursively "autom4te.cache")
3171 (add-after 'install 'delete-freedinkedit-desktop
3172 (lambda* (#:key outputs #:allow-other-keys)
3173 (let ((out (assoc-ref outputs "out")))
3174 ;; freedinkedit does not know where to find freedink data
3175 ;; freedink data is read-only, so it cannot be edited anyway.
3176 ;; TODO: fix freedink.desktop
3177 (delete-file-recursively (string-append
3178 out "/share/applications"))
3180 (native-inputs `(("autoconf" ,autoconf)
3181 ("automake" ,automake)
3182 ("cxxtest" ,cxxtest)
3183 ("gettext" ,gettext-minimal)
3184 ("help2man" ,help2man)
3185 ("pkg-config" ,pkg-config)))
3186 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3187 sdl2-ttf sdl2-gfx)))
3188 ("fontconfig" ,fontconfig)
3190 (properties '((ftp-directory . "/freedink")
3191 (upstream-name . "freedink")))
3192 (home-page "https://www.gnu.org/software/freedink/")
3193 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3195 "GNU FreeDink is a free and portable re-implementation of the engine
3196 for the role-playing game Dink Smallwood. It supports not only the original
3197 game data files but it also supports user-produced game mods or \"D-Mods\".
3198 To that extent, it also includes a front-end for managing all of your D-Mods.")
3199 (license license:gpl3+)))
3201 (define-public freedink-data
3203 (name "freedink-data")
3204 (version "1.08.20190120")
3207 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3211 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3212 (build-system gnu-build-system)
3215 (modify-phases %standard-phases
3216 (delete 'configure) ; no configure script
3217 (delete 'check)) ; no tests
3218 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3219 (properties '((ftp-directory . "/freedink")))
3220 (home-page "https://www.gnu.org/software/freedink/")
3221 (synopsis "Game data for GNU Freedink")
3223 "This package contains the game data of GNU Freedink.")
3224 (license license:gpl3+)))
3226 (define-public freedink-dfarc
3228 (name "freedink-dfarc")
3232 (uri (string-append "mirror://gnu/freedink/dfarc-"
3236 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3237 (build-system gnu-build-system)
3239 `(("intltool" ,intltool)))
3242 ("wxwidgets" ,wxwidgets)))
3243 (properties '((ftp-directory . "/freedink")
3244 (upstream-name . "dfarc")))
3245 (home-page "https://www.gnu.org/software/freedink/")
3246 (synopsis "Front-end for managing and playing Dink Modules")
3247 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3248 and its numerous D-Mods.")
3249 (license license:gpl3+)))
3251 (define-public freedink
3252 ;; This is a wrapper that tells the engine where to find the data.
3253 (package (inherit freedink-engine)
3255 (build-system trivial-build-system)
3258 (use-modules (guix build utils))
3260 (let* ((output (assoc-ref %outputs "out"))
3261 (bin (string-append output "/bin"))
3262 (executable (string-append bin "/freedink")))
3264 (call-with-output-file executable
3266 (format port "#!~a/bin/sh
3267 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3268 (assoc-ref %build-inputs "bash")
3269 (assoc-ref %build-inputs "engine")
3270 (assoc-ref %build-inputs "data"))
3271 (chmod port #o777)))
3273 #:modules ((guix build utils))))
3274 (inputs `(("engine" ,freedink-engine)
3275 ("data" ,freedink-data)
3277 (native-inputs '())))
3279 (define-public xboard
3286 (uri (string-append "mirror://gnu/xboard/xboard-" version
3290 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3291 (build-system gnu-build-system)
3294 ("librsvg" ,librsvg)))
3296 `(("texinfo" ,texinfo)
3297 ("pkg-config" ,pkg-config)))
3298 (home-page "https://www.gnu.org/software/xboard/")
3299 (synopsis "Graphical user interface for chess programs")
3300 (description "GNU XBoard is a graphical board for all varieties of chess,
3301 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3302 and Makruk. Several lesser-known variants are also supported. It presents a
3303 fully interactive graphical interface and it can load and save games in the
3304 Portable Game Notation.")
3305 (license license:gpl3+)))
3307 (define-public gtypist
3313 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3317 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3318 (modules '((guix build utils)))
3320 ;; We do not provide `ncurses.h' within an `ncursesw'
3321 ;; sub-directory, so patch the source accordingly. See
3322 ;; <http://bugs.gnu.org/19018>.
3324 (for-each (lambda (file)
3326 (("ncursesw/ncurses.h")
3328 (find-files "." "configure$|\\.c$"))
3330 (build-system gnu-build-system)
3331 (inputs `(("ncurses" ,ncurses)
3333 (home-page "https://www.gnu.org/software/gtypist/")
3334 (synopsis "Typing tutor")
3336 "GNU Typist is a universal typing tutor. It can be used to learn and
3337 practice touch-typing. Several tutorials are included; in addition to
3338 tutorials for the standard QWERTY layout, there are also tutorials for the
3339 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3340 are primarily in English, however some in other languages are provided.")
3341 (license license:gpl3+)))
3343 (define-public irrlicht
3350 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3351 (version-major+minor version)
3352 "/" version "/irrlicht-" version ".zip"))
3355 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3356 (patches (search-patches "irrlicht-use-system-libs.patch"))
3357 (modules '((guix build utils)))
3360 (for-each delete-file-recursively
3361 '("bin" ; bundled compiled Windows binaries"
3362 "source/Irrlicht/MacOSX"
3363 "source/Irrlicht/bzip2"
3364 "source/Irrlicht/jpeglib"
3365 "source/Irrlicht/libpng"
3366 "source/Irrlicht/lzma"
3367 "source/Irrlicht/zlib"))
3368 (delete-file "source/Irrlicht/glext.h")
3369 (delete-file "source/Irrlicht/glxext.h")
3370 (delete-file "source/Irrlicht/wglext.h")
3372 (build-system gnu-build-system)
3375 (modify-phases %standard-phases
3376 (add-after 'unpack 'chdir-to-source
3378 ;; The actual source is buried a few directories deep.
3379 (chdir "source/Irrlicht/")
3381 (add-after 'chdir-to-source 'fix-build-env
3382 (lambda* (#:key outputs #:allow-other-keys)
3383 (let ((out (assoc-ref outputs "out")))
3384 (substitute* "Makefile"
3385 (("INSTALL_DIR = /usr/local/lib")
3386 (string-append "INSTALL_DIR = " out "/lib"))
3387 ;; Add '-fpermissive' to the CXXFLAGS
3388 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3389 ;; The Makefile assumes these directories exist.
3390 (mkdir-p (string-append out "/lib"))
3391 (mkdir-p (string-append out "/include")))))
3392 (delete 'configure)) ; no configure script
3393 #:tests? #f ; no check target
3394 #:make-flags '("CC=gcc" "sharedlib")))
3397 ("libjpeg" ,libjpeg-turbo)
3400 ("libxxf86vm" ,libxxf86vm)
3402 (synopsis "3D game engine written in C++")
3404 "The Irrlicht Engine is a high performance realtime 3D engine written in
3405 C++. Features include an OpenGL renderer, extensible materials, scene graph
3406 management, character animation, particle and other special effects, support
3407 for common mesh file formats, and collision detection.")
3408 (home-page "http://irrlicht.sourceforge.net/")
3409 (license license:zlib)))
3412 ;; The latest release on SourceForge relies on an unreleased version of SFML
3413 ;; with a different API, so we take the latest version from the official
3414 ;; repository on Github.
3415 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3419 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3423 (url "https://github.com/thelaui/M.A.R.S.")
3425 (file-name (git-file-name name version))
3428 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3429 (patches (search-patches "mars-sfml-2.3.patch"
3430 "mars-install.patch"))))
3431 (build-system cmake-build-system)
3433 `(#:tests? #f ; There are no tests
3435 (modify-phases %standard-phases
3436 (add-after 'unpack 'fix-install-path
3438 (substitute* "src/CMakeLists.txt"
3439 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3440 "${CMAKE_INSTALL_PREFIX}/bin"))
3442 (add-after 'unpack 'fix-data-path
3443 (lambda* (#:key outputs #:allow-other-keys)
3444 (substitute* "src/System/settings.cpp"
3445 (("C_dataPath = \"./data/\";")
3446 (string-append "C_dataPath = \""
3447 (assoc-ref outputs "out")
3448 "/share/games/marsshooter/\";")))
3452 ("fribidi" ,fribidi)
3455 (home-page "http://mars-game.sourceforge.net/")
3456 (synopsis "2D space shooter")
3458 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3459 attractive physics. Players can battle each other or computer controlled
3460 enemies in different game modes such as space ball, death match, team death
3461 match, cannon keep, and grave-itation pit.")
3462 (license license:gpl3+))))
3464 (define-public minetest
3471 (url "https://github.com/minetest/minetest")
3473 (file-name (git-file-name name version))
3476 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3477 (modules '((guix build utils)))
3480 ;; Delete bundled libraries.
3481 (delete-file-recursively "lib")
3483 (build-system cmake-build-system)
3486 (list "-DRUN_IN_PLACE=0"
3487 "-DENABLE_FREETYPE=1"
3488 "-DENABLE_GETTEXT=1"
3489 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3490 (string-append "-DIRRLICHT_INCLUDE_DIR="
3491 (assoc-ref %build-inputs "irrlicht")
3492 "/include/irrlicht")
3493 (string-append "-DCURL_INCLUDE_DIR="
3494 (assoc-ref %build-inputs "curl")
3496 #:tests? #f)) ;no check target
3497 (native-search-paths
3498 (list (search-path-specification
3499 (variable "MINETEST_SUBGAME_PATH")
3500 (files '("share/minetest/games")))))
3502 `(("pkg-config" ,pkg-config)))
3505 ("freetype" ,freetype)
3506 ("gettext" ,gettext-minimal)
3508 ("irrlicht" ,irrlicht)
3509 ("jsoncpp" ,jsoncpp)
3510 ("libjpeg" ,libjpeg-turbo)
3513 ("libvorbis" ,libvorbis)
3514 ("libxxf86vm" ,libxxf86vm)
3517 ("ncurses" ,ncurses)
3519 ("sqlite" ,sqlite)))
3521 `(("minetest-data" ,minetest-data)))
3522 (synopsis "Infinite-world block sandbox game")
3524 "Minetest is a sandbox construction game. Players can create and destroy
3525 various types of blocks in a three-dimensional open world. This allows
3526 forming structures in every possible creation, on multiplayer servers or as a
3527 single player. Mods and texture packs allow players to personalize the game
3528 in different ways.")
3529 (home-page "https://www.minetest.net/")
3530 (license license:lgpl2.1+)))
3532 (define minetest-data
3534 (name "minetest-data")
3535 (version (package-version minetest))
3539 (url "https://github.com/minetest/minetest_game")
3541 (file-name (git-file-name name version))
3544 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3545 (build-system trivial-build-system)
3547 `(("source" ,source)))
3549 `(#:modules ((guix build utils))
3551 (use-modules (guix build utils))
3552 (let ((install-dir (string-append
3554 "/share/minetest/games/minetest_game")))
3555 (mkdir-p install-dir)
3557 (assoc-ref %build-inputs "source")
3560 (synopsis "Main game data for the Minetest game engine")
3562 "Game data for the Minetest infinite-world block sandbox game.")
3563 (home-page "https://www.minetest.net/")
3564 (license license:lgpl2.1+)))
3566 (define-public minetest-mineclone
3568 (name "minetest-mineclone")
3573 (url "https://git.minetest.land/Wuzzy/MineClone2")
3575 (file-name (git-file-name name version))
3578 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3579 (build-system copy-build-system)
3582 '(("." "share/minetest/games/mineclone"))))
3583 (synopsis "Minecraft clone based on Minetest engine")
3585 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3586 closely as the engine allows.")
3587 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3588 (license license:gpl3+)))
3597 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3598 "glk/implementations/glkterm-104.tar.gz"))
3601 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3602 (build-system gnu-build-system)
3603 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3605 '(#:tests? #f ; no check target
3607 (modify-phases %standard-phases
3609 (lambda* (#:key outputs #:allow-other-keys)
3610 (let* ((out (assoc-ref outputs "out"))
3611 (inc (string-append out "/include"))
3612 (lib (string-append out "/lib")))
3615 (install-file file inc))
3616 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3617 (install-file "libglkterm.a" lib))
3619 (delete 'configure)))) ; no configure script
3620 (home-page "http://www.eblong.com/zarf/glk/")
3621 (synopsis "Curses Implementation of the Glk API")
3623 "Glk defines a portable API for applications with text UIs. It was
3624 primarily designed for interactive fiction, but it should be suitable for many
3625 interactive text utilities, particularly those based on a command line.
3626 This is an implementation of the Glk library which runs in a terminal window,
3627 using the @code{curses.h} library for screen control.")
3628 (license (license:fsf-free "file://README"))))
3630 (define-public glulxe
3637 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3638 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3641 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3642 (build-system gnu-build-system)
3643 (inputs `(("glk" ,glkterm)))
3645 '(#:tests? #f ; no check target
3647 (let* ((glk (assoc-ref %build-inputs "glk")))
3648 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3649 (string-append "GLKLIBDIR=" glk "/lib")
3650 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3652 (modify-phases %standard-phases
3654 (lambda* (#:key outputs #:allow-other-keys)
3655 (let* ((out (assoc-ref outputs "out"))
3656 (bin (string-append out "/bin")))
3657 (install-file "glulxe" bin))
3659 (delete 'configure)))) ; no configure script
3660 (home-page "https://www.eblong.com/zarf/glulx/")
3661 (synopsis "Interpreter for Glulx VM")
3663 "Glulx is a 32-bit portable virtual machine intended for writing and
3664 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3665 some of the restrictions in the venerable Z-machine format. This is the
3666 reference interpreter, using the Glk API.")
3667 (license license:expat)))
3669 (define-public fifechan
3675 (uri (string-append "https://codeload.github.com/fifengine/"
3676 "fifechan/tar.gz/" version))
3677 (file-name (string-append name "-" version ".tar.gz"))
3680 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3681 (build-system cmake-build-system)
3684 ("sdl2-image" ,sdl2-image)
3687 '(#:tests? #f)) ; No included tests
3688 (home-page "https://fifengine.github.io/fifechan/")
3689 (synopsis "Cross platform GUI library specifically for games")
3691 "Fifechan is a lightweight cross platform GUI library written in C++
3692 specifically designed for games. It has a built in set of extendable GUI
3693 Widgets, and allows users to create more.")
3694 (license license:lgpl2.1+)))
3696 (define-public fifengine
3702 (uri (string-append "https://codeload.github.com/fifengine/"
3703 "fifengine/tar.gz/" version))
3704 (file-name (string-append name "-" version ".tar.gz"))
3705 (patches (search-patches "fifengine-swig-compat.patch"))
3708 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3709 (build-system cmake-build-system)
3711 `(#:tests? #f ; TODO The test running fails to run some tests.
3712 #:modules ((srfi srfi-1)
3713 (guix build cmake-build-system)
3717 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3718 (assoc-ref %build-inputs "openal")
3720 (string-append "-DPYTHON_SITE_PACKAGES="
3721 (assoc-ref %outputs "out")
3723 ,(version-major+minor (package-version python))
3726 (modify-phases %standard-phases
3727 (add-after 'unpack 'patch-run_tests.py
3729 ;; Patch the test runner to exit with a status of 1 if any test
3730 ;; fails, to allow detecting failures.
3731 (substitute* "run_tests.py"
3732 (("ERROR\\. One or more tests failed!'\\)")
3733 "ERROR. One or more tests failed!')
3736 ;; Run tests after installation so that we can make use of the built
3739 (add-after 'install 'check
3740 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3741 (define python-version
3742 (let* ((version (last (string-split
3743 (assoc-ref inputs "python")
3745 (components (string-split version #\.))
3746 (major+minor (take components 2)))
3747 (string-join major+minor ".")))
3750 ;; Set PYTHONPATH so that python finds the installed modules.
3751 (setenv "PYTHONPATH"
3752 (string-append (getenv "PYTHONPATH") ":"
3753 (assoc-ref outputs "out")
3757 ;; The tests require an X server.
3758 (system "Xvfb :1 &")
3759 (setenv "DISPLAY" ":1")
3760 (setenv "XDG_RUNTIME_DIR" "/tmp")
3762 (chdir ,(string-append "../" name "-" version))
3763 (invoke "python3" "run_tests.py" "-a"))
3767 ("sdl2-image" ,sdl2-image)
3768 ("sdl2-ttf" ,sdl2-ttf)
3769 ("tinyxml" ,tinyxml)
3773 ("libvorbis" ,libvorbis)
3775 ("fifechan" ,fifechan)
3777 ("python" ,python)))
3779 `(("python" ,python)
3781 ("xvfb" ,xorg-server)))
3783 `(("python-future" ,python-future)))
3784 (home-page "https://www.fifengine.net/")
3785 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3787 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3788 isometric game engine. Python bindings are included allowing users to create
3789 games using Python as well as C++.")
3790 (license license:lgpl2.1+)))
3792 (define-public fizmo
3798 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3799 "fizmo-" version ".tar.gz"))
3802 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3803 (build-system gnu-build-system)
3806 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3807 (ncurses (assoc-ref %build-inputs "ncurses")))
3808 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3810 `(("pkg-config" ,pkg-config)))
3812 `(("freetype" ,freetype)
3813 ("libjpeg" ,libjpeg-turbo)
3815 ("libsndfile" ,libsndfile)
3816 ("libxml2" ,libxml2)
3817 ("ncurses" ,ncurses)
3819 (home-page "https://fizmo.spellbreaker.org/")
3820 (synopsis "Z-machine interpreter")
3822 "Fizmo is a console-based Z-machine interpreter. It is used to play
3823 interactive fiction, also known as text adventures, which were implemented
3824 either by Infocom or created using the Inform compiler.")
3825 (license license:bsd-3)))
3827 (define-public gnugo
3833 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3837 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3838 (build-system gnu-build-system)
3839 (inputs `(("readline" ,readline)))
3840 (synopsis "Play the game of Go")
3842 "GNU Go is a program that plays the game of Go, in which players
3843 place stones on a grid to form territory or capture other stones. While
3844 it can be played directly from the terminal, rendered in ASCII characters,
3845 it is also possible to play GNU Go with 3rd party graphical interfaces or
3846 even in Emacs. It supports the standard game storage format (SGF, Smart
3847 Game Format) and inter-process communication format (GMP, Go Modem
3849 (home-page "https://www.gnu.org/software/gnugo/")
3850 (license license:gpl3+)))
3852 (define-public extremetuxracer
3854 (name "extremetuxracer")
3859 "mirror://sourceforge/extremetuxracer/releases/"
3860 version "/etr-" version ".tar.xz"))
3863 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3864 (build-system gnu-build-system)
3866 `(("pkg-config" ,pkg-config)))
3870 (synopsis "High-speed arctic racing game based on Tux Racer")
3871 ;; Snarfed straight from Debian.
3872 (description "Extreme Tux Racer, or etracer as it is called for short, is
3873 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3874 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3875 avoiding the trees and rocks that will slow you down.
3877 Collect herrings and other goodies while sliding down the hill, but avoid fish
3880 This game is based on the GPL version of the famous game TuxRacer.")
3881 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3882 (license license:gpl2+)))
3884 (define-public supertuxkart
3886 (name "supertuxkart")
3891 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3892 version "/SuperTuxKart-" version "-src.tar.xz"))
3895 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3896 (modules '((guix build utils)))
3898 ;; Delete bundled library sources
3900 ;; Supertuxkart uses modified versions of the Irrlicht engine
3901 ;; and the bullet library. The developers gave an explanation
3902 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3903 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3904 (for-each delete-file-recursively
3909 (build-system cmake-build-system)
3911 `(#:tests? #f ; no check target
3913 (list "-DUSE_WIIUSE=0"
3914 "-DUSE_SYSTEM_GLEW=TRUE"
3915 "-DUSE_SYSTEM_ENET=TRUE"
3916 ;; In order to use the system ENet library, IPv6 support (added in
3917 ;; SuperTuxKart version 1.1) must be disabled.
3919 ;; FIXME: needs libopenglrecorder
3920 "-DBUILD_RECORDER=0")))
3923 ("freetype" ,freetype)
3924 ("fribidi" ,fribidi)
3926 ("harfbuzz" ,harfbuzz)
3927 ("libvorbis" ,libvorbis)
3929 ("libxrandr" ,libxrandr)
3934 ;; The following input is needed to build the bundled and modified
3935 ;; version of irrlicht.
3937 ("libjpeg" ,libjpeg-turbo)
3938 ("openssl" ,openssl)))
3940 `(("pkg-config" ,pkg-config)))
3941 (home-page "https://supertuxkart.net/Main_Page")
3942 (synopsis "3D kart racing game")
3943 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3944 having fun over realism. You can play with up to 4 friends on one PC, racing
3945 against each other or just trying to beat the computer; single-player mode is
3947 (license license:gpl3+)))
3949 (define-public unknown-horizons
3951 (name "unknown-horizons")
3955 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3956 "unknown-horizons/tar.gz/" version))
3957 (file-name (string-append name "-" version ".tar.gz"))
3960 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3961 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3962 (build-system python-build-system)
3965 (modify-phases %standard-phases
3966 (add-before 'build 'set-HOME
3968 (setenv "HOME" "/tmp")
3970 (add-after 'build 'build-extra
3972 (invoke "python3" "./setup.py" "build_i18n")
3973 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3975 (add-after 'install 'patch
3976 (lambda* (#:key outputs #:allow-other-keys)
3977 (let ((out (assoc-ref outputs "out")))
3978 (substitute* (string-append out "/bin/unknown-horizons")
3979 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3980 (string-append "os.chdir(\""
3981 (assoc-ref outputs "out")
3982 "/share/unknown-horizons\")"))))
3984 (add-before 'check 'fix-tests-with-pytest>=4
3986 (substitute* "tests/conftest.py"
3987 (("pytest_namespace")
3990 "get_closest_marker"))
3992 ;; TODO: Run GUI tests as well
3995 (substitute* "horizons/constants.py"
3996 (("IS_DEV_VERSION = False")
3997 "IS_DEV_VERSION = True"))
3998 (invoke "pytest" "tests")
3999 (substitute* "horizons/constants.py"
4000 (("IS_DEV_VERSION = True")
4001 "IS_DEV_VERSION = False"))
4004 `(("fifengine" ,fifengine)
4005 ("python:tk" ,python "tk")
4006 ("python-pillow" ,python-pillow)
4007 ("python-pyyaml" ,python-pyyaml)))
4009 `(("intltool" ,intltool)
4010 ("python-distro" ,python-distro)
4012 ;; Required for tests
4013 ("python-greenlet" ,python-greenlet)
4014 ("python-polib" ,python-polib)
4015 ("python-pytest" ,python-pytest)
4016 ("python-pytest-mock" ,python-pytest-mock)))
4017 (home-page "http://unknown-horizons.org/")
4018 (synopsis "Isometric realtime strategy, economy and city building simulation")
4020 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4021 on economy and city building. Expand your small settlement to a strong and
4022 wealthy colony, collect taxes and supply your inhabitants with valuable
4023 goods. Increase your power with a well balanced economy and with strategic
4024 trade and diplomacy.")
4026 license:gpl2+ ; Covers code
4027 license:expat ; tests/dummy.py, ext/polib.py
4028 license:cc-by-sa3.0 ; Covers some media content
4029 license:cc-by3.0 ; Covers some media content
4030 license:bsd-3)))) ; horizons/ext/speaklater.py
4032 (define-public gnujump
4038 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4042 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4043 (build-system gnu-build-system)
4046 (modify-phases %standard-phases
4048 'configure 'link-libm
4049 (lambda _ (setenv "LIBS" "-lm")))
4050 (add-after 'install 'create-desktop-entry
4051 (lambda* (#:key outputs #:allow-other-keys)
4052 (let* ((out (assoc-ref outputs "out"))
4053 (apps (string-append out "/share/applications")))
4055 (with-output-to-file
4056 (string-append apps "/gnujump.desktop")
4061 Comment=Jump up the tower to survive~@
4062 Exec=~a/bin/gnujump~@
4065 Categories=Game;ArcadeGame~%"
4071 ("sdl-image" ,sdl-image)
4072 ("sdl-mixer" ,sdl-mixer)))
4073 (home-page "http://gnujump.es.gnu.org/")
4075 "Game of jumping to the next floor, trying not to fall")
4077 "GNUjump is a simple, yet addictive game in which you must jump from
4078 platform to platform to avoid falling, while the platforms drop at faster rates
4079 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4080 falling, themeable graphics and sounds, and replays.")
4081 (license license:gpl3+)))
4083 (define-public wesnoth
4089 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4090 (version-major+minor version)
4091 "/wesnoth-" version "/"
4092 "wesnoth-" version ".tar.bz2"))
4095 "05iapxj3nzaqh10y42yq1jf7spxgm4iwjw4qj1c4lnb25xp4mc2h"))))
4096 (build-system cmake-build-system)
4098 `(#:tests? #f)) ;no check target
4100 `(("gettext" ,gettext-minimal)
4101 ("pkg-config" ,pkg-config)))
4105 ("fribidi" ,fribidi)
4106 ("libvorbis" ,libvorbis)
4107 ("openssl" ,openssl)
4109 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4110 (home-page "https://www.wesnoth.org/")
4111 (synopsis "Turn-based strategy game")
4113 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4114 with several single player campaigns, and multiplayer games (both networked and
4117 Battle for control on a range of maps, using variety of units which have
4118 advantages and disadvantages against different types of attacks. Units gain
4119 experience and advance levels, and are carried over from one scenario to the
4121 (license license:gpl2+)))
4123 (define-public wesnoth-server
4126 (name "wesnoth-server")
4130 ("openssl" ,openssl)
4133 `(#:configure-flags '("-DENABLE_GAME=OFF")
4134 ,@(package-arguments wesnoth)))
4135 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4136 (description "This package contains a dedicated server for @emph{The
4137 Battle for Wesnoth}.")))
4139 (define-public gamine
4145 (uri (string-append "mirror://sourceforge/gamine-game/"
4146 "gamine-" version ".tar.gz"))
4149 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4150 (build-system gnu-build-system)
4152 `(("pkg-config" ,pkg-config)
4153 ("intltool" ,intltool)))
4155 `(("gstreamer" ,gstreamer)
4156 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4157 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4162 (let ((out (assoc-ref %outputs "out")))
4163 (list (string-append "PREFIX=" out)
4164 (string-append "SYSCONFDIR=" out "/etc")))
4166 (modify-phases %standard-phases
4169 'install 'wrap-gamine
4170 (lambda* (#:key outputs #:allow-other-keys)
4171 (let ((out (assoc-ref outputs "out"))
4172 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4173 (wrap-program (string-append out "/bin/gamine")
4174 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4176 (home-page "http://gamine-game.sourceforge.net/")
4177 (synopsis "Mouse and keyboard discovery for children")
4179 "Gamine is a game designed for young children who are learning to use the
4180 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4181 on the screen and keyboard to display letters.")
4182 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4183 (license license:gpl3)))
4185 (define-public manaplus
4188 (version "1.9.3.23")
4192 "https://repo.manaplus.org/manaplus/download/"
4193 version "/manaplus-" version ".tar.xz"))
4196 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4197 (build-system gnu-build-system)
4200 (list (string-append "CPPFLAGS=-I"
4201 (assoc-ref %build-inputs "sdl-union")
4204 `(("pkg-config" ,pkg-config)))
4208 ("libxml2" ,libxml2)
4210 ("sdl-union" ,(sdl-union))))
4211 (home-page "https://manaplus.org")
4212 (synopsis "Client for 'The Mana World' and similar games")
4214 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4215 fully supported client for @uref{http://www.themanaworld.org, The mana
4216 world}, @uref{http://evolonline.org, Evol Online} and
4217 @uref{http://landoffire.org, Land of fire}.")
4218 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4219 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4220 ;; The rest is under GPL2+.
4221 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4223 (define openttd-engine
4225 (name "openttd-engine")
4228 (origin (method url-fetch)
4229 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4230 version "/openttd-" version "-source.tar.xz"))
4233 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4234 (build-system gnu-build-system)
4236 `(#:tests? #f ; no "check" target
4238 (modify-phases %standard-phases
4239 ;; The build process fails if the configure script is passed the
4240 ;; option "--enable-fast-install".
4242 (lambda* (#:key inputs outputs (configure-flags '())
4244 (let ((out (assoc-ref outputs "out"))
4245 (lzo (assoc-ref inputs "lzo")))
4246 (apply invoke "./configure"
4247 (string-append "--prefix=" out)
4248 ;; Provide the "lzo" path.
4249 (string-append "--with-liblzo2="
4250 lzo "/lib/liblzo2.a")
4251 ;; Put the binary in 'bin' instead of 'games'.
4253 configure-flags)))))))
4254 (native-inputs `(("pkg-config" ,pkg-config)))
4256 `(("allegro" ,allegro)
4257 ("fontconfig" ,fontconfig)
4258 ("freetype" ,freetype)
4265 (synopsis "Transportation economics simulator game")
4266 (description "OpenTTD is a game in which you transport goods and
4267 passengers by land, water and air. It is a re-implementation of Transport
4268 Tycoon Deluxe with many enhancements including multiplayer mode,
4269 internationalization support, conditional orders and the ability to clone,
4270 autoreplace and autoupdate vehicles. This package only includes the game
4271 engine. When you start it you will be prompted to download a graphics set.")
4272 (home-page "https://www.openttd.org/")
4273 ;; This package is GPLv2, except for a few files located in
4274 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4275 ;; licenses. In addition, this software contains an in-game downloader
4276 ;; from which the user may find non-functional data licensed under
4278 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4280 (define openttd-opengfx
4282 (name "openttd-opengfx")
4287 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4288 version "/opengfx-" version "-source.tar.xz"))
4291 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4292 (build-system gnu-build-system)
4294 '(#:make-flags (list "CC=gcc"
4295 (string-append "INSTALL_DIR="
4296 (assoc-ref %outputs "out")
4297 "/share/games/openttd/baseset/opengfx"))
4299 (modify-phases %standard-phases
4302 ;; Make sure HOME is writable for GIMP.
4303 (setenv "HOME" (getcwd))
4305 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4306 ;; dos2unix from receiving its version information as a flag.
4307 (substitute* "Makefile"
4308 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4309 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4310 ;; The check phase for this package only checks the md5sums of the built
4311 ;; GRF files against the md5sums of the release versions. Because we use
4312 ;; different software versions than upstream does, some of the md5sums
4313 ;; are different. However, the package is still reproducible, it's safe
4314 ;; to disable this test.
4316 #:parallel-build? #f))
4317 (native-inputs `(("dos2unix" ,dos2unix)
4319 ("grfcodec" ,grfcodec)
4322 ("python" ,python-2)))
4323 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4324 (synopsis "Base graphics set for OpenTTD")
4326 "The OpenGFX project is an implementation of the OpenTTD base graphics
4327 set that aims to ensure the best possible out-of-the-box experience.
4329 OpenGFX provides you with...
4331 @item All graphics you need to enjoy OpenTTD.
4332 @item Uniquely drawn rail vehicles for every climate.
4333 @item Completely snow-aware rivers.
4334 @item Different river and sea water.
4335 @item Snow-aware buoys.
4337 (license license:gpl2)))
4339 (define openttd-opensfx
4341 (name "openttd-opensfx")
4347 "https://binaries.openttd.org/extra/opensfx/"
4348 version "/opensfx-" version "-source.tar.gz"))
4351 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4352 (build-system gnu-build-system)
4354 `(("catcodec" ,catcodec)
4355 ("python" ,python-2)))
4358 (list (string-append "INSTALL_DIR=" %output
4359 "/share/games/openttd/baseset/opensfx"))
4361 (modify-phases %standard-phases
4362 (add-after 'unpack 'make-reproducible
4364 ;; Remove the time dependency of the installed tarball by setting
4365 ;; the modification times if its members to 0.
4366 (substitute* "scripts/Makefile.def"
4367 (("-cf") " --mtime=@0 -cf"))
4369 (delete 'configure))))
4370 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4371 (synopsis "Base sounds for OpenTTD")
4372 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4373 it possible to play OpenTTD without requiring the proprietary sound files from
4374 the original Transport Tycoon Deluxe.")
4375 (license license:cc-sampling-plus-1.0)))
4377 (define openttd-openmsx
4379 (name "openttd-openmsx")
4385 "https://binaries.openttd.org/extra/openmsx/"
4386 version "/openmsx-" version "-source.tar.gz"))
4389 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4390 (build-system gnu-build-system)
4392 `(("python" ,python-2)))
4395 (list (string-append "INSTALL_DIR=" %output
4396 "/share/games/openttd/baseset"))
4398 (modify-phases %standard-phases
4400 (add-after 'install 'post-install
4401 ;; Rename openmsx-version to openmsx
4402 (lambda* (#:key outputs #:allow-other-keys)
4403 (let ((install-directory (string-append (assoc-ref outputs "out")
4404 "/share/games/openttd/baseset")))
4405 (rename-file (string-append install-directory "/openmsx-" ,version)
4406 (string-append install-directory "/openmsx"))
4408 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4409 (synopsis "Music set for OpenTTD")
4410 (description "OpenMSX is a music set for OpenTTD which makes it possible
4411 to play OpenTTD without requiring the proprietary music from the original
4412 Transport Tycoon Deluxe.")
4413 (license license:gpl2)))
4415 (define-public openttd
4417 (inherit openttd-engine)
4421 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4423 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4425 `(modify-phases ,phases
4426 (add-after 'install 'install-data
4427 (lambda* (#:key inputs outputs #:allow-other-keys)
4430 (copy-recursively (assoc-ref inputs input)
4431 (assoc-ref outputs "out")))
4432 (list "opengfx" "openmsx" "opensfx"))
4435 `(("timidity++" ,timidity++)
4436 ,@(package-inputs openttd-engine)))
4438 `(("opengfx" ,openttd-opengfx)
4439 ("openmsx" ,openttd-openmsx)
4440 ("opensfx" ,openttd-opensfx)
4441 ,@(package-native-inputs openttd-engine)))))
4443 (define openrct2-title-sequences
4445 (name "openrct2-title-sequences")
4450 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4451 version "/title-sequence-v" version ".zip"))
4452 (file-name (string-append name "-" version ".zip"))
4455 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4456 (build-system trivial-build-system)
4459 ("coreutils" ,coreutils)
4462 `(#:modules ((guix build utils))
4465 (use-modules (guix build utils))
4466 (let* ((out (assoc-ref %outputs "out"))
4467 (openrct2-title-sequences (string-append out
4468 "/share/openrct2/title-sequences"))
4469 (source (assoc-ref %build-inputs "source"))
4470 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4471 (copy-file source (string-append ,name "-" ,version ".zip"))
4472 (invoke unzip (string-append ,name "-" ,version ".zip"))
4473 (delete-file (string-append ,name "-" ,version ".zip"))
4474 (mkdir-p openrct2-title-sequences)
4475 (copy-recursively "."
4476 openrct2-title-sequences)
4478 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4479 (synopsis "Title sequences for OpenRCT2")
4481 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4482 (license license:gpl3+)))
4484 (define openrct2-objects
4486 (name "openrct2-objects")
4491 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4492 version "/objects.zip"))
4493 (file-name (string-append name "-" version ".zip"))
4495 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4496 (build-system trivial-build-system)
4499 ("coreutils" ,coreutils)
4502 `(#:modules ((guix build utils))
4505 (use-modules (guix build utils))
4506 (let* ((out (assoc-ref %outputs "out"))
4507 (openrct2-objects (string-append out
4508 "/share/openrct2/objects"))
4509 (source (assoc-ref %build-inputs "source"))
4510 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4511 (copy-file source (string-append ,name "-" ,version ".zip"))
4512 (invoke unzip (string-append ,name "-" ,version ".zip"))
4513 (delete-file (string-append ,name "-" ,version ".zip"))
4514 (mkdir-p openrct2-objects)
4515 (copy-recursively "."
4518 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4519 (synopsis "Objects for OpenRCT2")
4521 "openrct2-objects is a set of objects for OpenRCT2.")
4522 (license license:gpl3+)))
4524 (define-public openrct2
4532 (url "https://github.com/OpenRCT2/OpenRCT2")
4533 (commit (string-append "v" version))))
4534 (file-name (git-file-name name version))
4536 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4537 (build-system cmake-build-system)
4539 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4540 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4541 #:tests? #f ; tests require network access
4543 (modify-phases %standard-phases
4544 (add-after 'unpack 'fix-usr-share-paths&add-data
4545 (lambda* (#:key inputs outputs #:allow-other-keys)
4546 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4547 (objects (assoc-ref inputs "openrct2-objects")))
4548 ;; Fix some references to /usr/share.
4549 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4551 (string-append (assoc-ref %outputs "out") "/share")))
4553 (string-append titles "/share/openrct2/title-sequences")
4556 (string-append objects "/share/openrct2/objects")
4558 (add-before 'configure 'get-rid-of-errors
4560 ;; Don't treat warnings as errors.
4561 (substitute* "CMakeLists.txt"
4564 (inputs `(("curl" ,curl)
4565 ("duktape" ,duktape)
4566 ("fontconfig" ,fontconfig)
4567 ("freetype" ,freetype)
4569 ("jansson" ,jansson)
4573 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4574 ("openrct2-objects" ,openrct2-objects)
4575 ("openrct2-title-sequences" ,openrct2-title-sequences)
4576 ("openssl" ,openssl)
4578 ("speexdsp" ,speexdsp)
4581 `(("pkg-config" ,pkg-config)))
4582 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4583 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4584 (description "OpenRCT2 is a free software re-implementation of
4585 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4586 maintaining an amusement park containing attractions, shops and facilities.
4588 Note that this package does @emph{not} provide the game assets (sounds,
4590 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4591 ;; regarding assets.
4592 (license license:gpl3+)))
4594 (define-public pinball
4599 (origin (method url-fetch)
4600 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4601 "pinball-" version "/"
4602 "pinball-" version ".tar.gz"))
4605 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4606 (patches (search-patches "pinball-const-fix.patch"
4607 "pinball-cstddef.patch"
4608 "pinball-missing-separators.patch"
4609 "pinball-src-deps.patch"
4610 "pinball-system-ltdl.patch"))))
4611 (build-system gnu-build-system)
4616 ("sdl-image" ,sdl-image)
4617 ("sdl-mixer" ,sdl-mixer)))
4620 (list (string-append "CPPFLAGS=-I"
4621 (assoc-ref %build-inputs "sdl-image")
4623 (assoc-ref %build-inputs "sdl-mixer")
4625 (home-page "http://pinball.sourceforge.net")
4626 (synopsis "Pinball simulator")
4627 (description "The Emilia Pinball Project is a pinball simulator. There
4628 are only two levels to play with, but they are very addictive.")
4629 (license license:gpl2)))
4631 (define-public pioneers
4637 (uri (string-append "https://downloads.sourceforge.net/pio/"
4638 "pioneers-" version ".tar.gz"))
4641 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4642 (build-system gnu-build-system)
4643 (inputs `(("avahi" ,avahi)
4645 ("librsvg" ,librsvg)))
4646 (native-inputs `(("intltool" ,intltool)
4647 ("itstool" ,itstool)
4648 ("libxml2" ,libxml2)
4649 ("pkg-config" ,pkg-config)))
4650 (synopsis "Board game inspired by The Settlers of Catan")
4651 (description "Pioneers is an emulation of the board game The Settlers of
4652 Catan. It can be played on a local network, on the internet, and with AI
4654 (home-page "http://pio.sourceforge.net/")
4655 (license license:gpl2+)))
4657 (define-public einstein
4663 (uri (string-append "mirror://debian/pool/main/e/"
4664 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4667 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4668 (patches (search-patches "einstein-build.patch"))))
4669 (build-system gnu-build-system)
4671 `(("freetype" ,freetype)
4672 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4675 `(("font-dejavu" ,font-dejavu)))
4677 `(#:tests? #f ; no check target
4679 (modify-phases %standard-phases
4681 (lambda* (#:key outputs inputs #:allow-other-keys)
4682 (let ((out (assoc-ref outputs "out"))
4683 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4684 "/share/fonts/truetype/DejaVuSans.ttf")))
4685 (substitute* "Makefile"
4686 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4687 ;; The patch above registers a free font for use by the binary,
4688 ;; but the font is copied during the compile phase into a
4689 ;; resources file, so we need to make the ttf file available.
4690 (symlink dejavu "res/DejaVuSans.ttf")
4692 (synopsis "Logic puzzle game")
4693 (description "The goal of this logic game is to open all cards in a 6x6
4694 grid, using a number of hints as to their relative position. The game idea
4695 is attributed to Albert Einstein.")
4696 ;; The original home page has disappeared.
4697 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4698 "http://games.flowix.com/en/index.html"))
4699 ;; License according to
4700 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4701 ;; The source code is a DFSG-sanitized tarball and does not contain any
4702 ;; license information.
4703 (license license:gpl3+)))
4705 (define-public powwow
4712 "https://www.hoopajoo.net/static/projects/powwow-"
4716 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4718 `(("ncurses" ,ncurses)))
4719 (build-system gnu-build-system)
4720 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4721 (synopsis "MUD and telnet client")
4723 "POWWOW is a client software which can be used for telnet as well as for
4724 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4725 the chat server psyced with the specific config located at
4726 http://lavachat.symlynx.com/unix/")
4727 (license license:gpl2+)))
4729 (define-public red-eclipse
4730 (let ((release "2.0.0")
4733 (name "red-eclipse")
4734 (version (if (zero? revision)
4736 (string-append release "-"
4737 (number->string revision))))
4742 (url "https://github.com/redeclipse/base")
4743 (commit (string-append "v" release))
4744 (recursive? #t))) ; for game data
4745 (file-name (git-file-name name version))
4747 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4748 (modules '((guix build utils)))
4750 ;; Remove proprietary libraries and other pre-compiled binaries.
4752 (delete-file-recursively "bin")
4754 (build-system gnu-build-system)
4756 `(#:tests? #f ; no check target
4757 #:make-flags (list "CC=gcc" "-Csrc"
4758 (string-append "INSTDIR="
4759 (assoc-ref %outputs "out") "/bin")
4760 (string-append "prefix="
4761 (assoc-ref %outputs "out")))
4763 (modify-phases %standard-phases
4764 (add-after 'unpack 'add-store-data-package-path-as-default
4765 (lambda* (#:key outputs #:allow-other-keys)
4766 (substitute* "src/engine/server.cpp"
4767 (("data = \"data\"")
4768 (string-append "data = \""
4769 (assoc-ref outputs "out")
4770 "/share/redeclipse/data\"")))
4772 (delete 'configure) ; no configure script
4773 (add-after 'set-paths 'set-sdl-paths
4774 (lambda* (#:key inputs #:allow-other-keys)
4776 (string-append (assoc-ref inputs "sdl-union")
4778 (or (getenv "CPATH") "")))
4780 (add-after 'install 'copy-data
4781 (lambda* (#:key outputs #:allow-other-keys)
4782 (let ((out (assoc-ref outputs "out")))
4783 (copy-recursively "config"
4784 (string-append out "/config"))
4785 (copy-file "doc/examples/servinit.cfg"
4786 (string-append out "/config/servinit.cfg"))
4787 (copy-recursively "data"
4788 (string-append out "/share/redeclipse/data"))
4789 (mkdir-p (string-append out "/lib/redeclipse"))
4790 (symlink (string-append out "/share/redeclipse/data")
4791 (string-append out "/lib/redeclipse/data")))
4793 (add-after 'copy-data 'wrap-program
4794 (lambda* (#:key inputs outputs #:allow-other-keys)
4795 (let* ((out (assoc-ref outputs "out"))
4796 (bin (string-append out "/bin")))
4797 (with-directory-excursion bin
4798 (rename-file "redeclipse_linux"
4799 ".redeclipse_linux-real")
4800 (rename-file "redeclipse_server_linux"
4801 ".redeclipse_server_linux-real")
4802 (call-with-output-file "redeclipse_linux"
4804 (format port "#!~a/bin/sh
4805 # Run the thing from its home, otherwise it just bails out.
4807 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4808 (assoc-ref inputs "bash") ;implicit input
4810 (string-append bin))))
4811 (call-with-output-file "redeclipse_server_linux"
4813 (format port "#!~a/bin/sh
4814 # Run the thing from its home, otherwise it just bails out.
4816 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4817 (assoc-ref inputs "bash") ;implicit input
4819 (string-append bin))))
4820 (chmod "redeclipse_linux" #o555)
4821 (chmod "redeclipse_server_linux" #o555)))
4824 `(("pkg-config" ,pkg-config)))
4827 ("freetype" ,freetype)
4829 ("sdl-union" ,(sdl-union (list sdl2
4832 (home-page "https://redeclipse.net/")
4833 (synopsis "Arena shooter derived from the Cube 2 engine")
4835 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4836 Offering an innovative parkour system and distinct but all potent weapons,
4837 Red Eclipse provides fast paced and accessible gameplay.")
4838 ;; The engine is under Zlib; data files are covered by the other
4839 ;; licenses. More details at file:///doc/all-licenses.txt.
4840 (license (list license:expat
4846 license:public-domain
4847 license:silofl1.1)))))
4849 (define-public grue-hunter
4851 (name "grue-hunter")
4855 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4858 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4859 (build-system trivial-build-system) ; no Makefile.PL
4860 (arguments `(#:modules ((guix build utils))
4863 (use-modules (guix build utils))
4864 (use-modules (srfi srfi-1))
4866 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4867 (perl (string-append (assoc-ref %build-inputs
4870 (gzip (string-append (assoc-ref %build-inputs
4873 (tar (string-append (assoc-ref %build-inputs
4876 (out (assoc-ref %outputs "out"))
4877 (bin (string-append out "/bin"))
4878 (doc (string-append out
4879 "/share/doc/grue-hunter")))
4880 (copy-file tarball "grue-hunter.tar.gz")
4881 (invoke gzip "-d" "grue-hunter.tar.gz")
4882 (invoke tar "xvf" "grue-hunter.tar")
4885 (copy-file "grue-hunter/gh.pl"
4886 (string-append bin "/grue-hunter"))
4887 (patch-shebang (string-append bin "/grue-hunter")
4890 (install-file "grue-hunter/AGPLv3.txt" doc)
4893 (inputs `(("perl" ,perl)
4896 ("tarball" ,source)))
4897 (home-page "https://jxself.org/grue-hunter.shtml")
4898 (synopsis "Text adventure game")
4900 "Grue Hunter is a text adventure game written in Perl. You must make
4901 your way through an underground cave system in search of the Grue. Can you
4902 capture it and get out alive?")
4903 (license license:agpl3+)))
4905 (define-public lierolibre
4911 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4912 version "/+download/lierolibre-"
4916 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4918 (search-patches "lierolibre-check-unaligned-access.patch"
4919 "lierolibre-try-building-other-arch.patch"
4920 "lierolibre-remove-arch-warning.patch"
4921 "lierolibre-newer-libconfig.patch"
4922 "lierolibre-is-free-software.patch"))
4923 (modules '((guix build utils)))
4926 ;; Delete pre-compiled files.
4927 (delete-file "data/LIERO.CHR")
4928 (delete-file "data/LIERO.SND")
4930 (build-system gnu-build-system)
4932 `(("imagemagick" ,imagemagick)
4933 ("pkg-config" ,pkg-config)
4934 ("util-linux" ,util-linux)
4938 ("libconfig" ,libconfig)
4939 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4941 (home-page "https://gitlab.com/lierolibre/lierolibre")
4942 (synopsis "Old-school earthworm action game")
4944 "lierolibre is an earthworm action game where you fight another player
4945 (or the computer) underground using a wide array of weapons.
4949 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4950 and Game of Tag, plus AI-players without true intelligence!
4951 @item Dat nostalgia.
4952 @item Extensions via a hidden F1 menu:
4955 @item Game controller support
4956 @item Powerlevel palettes
4958 @item Ability to write game variables to plain text files.
4959 @item Ability to load game variables from both EXE and plain text files.
4960 @item Scripts to extract and repack graphics, sounds and levels.
4963 To switch between different window sizes, use F6, F7 and F8, to switch to
4964 fullscreen, use F5 or Alt+Enter.")
4965 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4966 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4968 (define-public tennix
4976 (url "https://repo.or.cz/tennix.git")
4977 (commit (string-append "tennix-" version))))
4978 (file-name (git-file-name name version))
4980 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4981 ;; Remove non-free images.
4982 (modules '((guix build utils)))
4985 (for-each delete-file
4986 '("data/loc_training_camp.png"
4987 "data/loc_austrian_open.png"
4988 "data/loc_olympic_green_tennis.png"))
4990 (build-system gnu-build-system)
4992 `(#:tests? #f ;no test
4994 (modify-phases %standard-phases
4995 (add-after 'unpack 'fix-include
4997 (substitute* '("src/graphics.h" "src/sound.h")
4998 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4999 (string-append "#include \"SDL/" header "\"")))
5000 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5001 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5002 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5004 (add-after 'unpack 'locate-install
5005 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5007 (substitute* "makefile"
5008 (("^CONFIGURE_OUTPUT :=.*" all)
5009 (string-append "INSTALL := install -c\n" all)))
5012 ;; The "configure" script is picky about the arguments it
5013 ;; gets. Call it ourselves.
5015 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5017 `(("which" ,which)))
5019 `(("python" ,python-wrapper)
5020 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5021 (home-page "http://icculus.org/tennix/")
5022 (synopsis "Play tennis against the computer or a friend")
5023 (description "Tennix is a 2D tennis game. You can play against the
5024 computer or against another player using the keyboard. The game runs
5025 in-window at 640x480 resolution or fullscreen.")
5026 ;; Project is licensed under GPL2+ terms. It includes images
5027 ;; released under Public Domain terms, and SDL_rotozoom, released
5028 ;; under LGPL2.1 terms.
5029 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5031 (define-public warzone2100
5033 (name "warzone2100")
5038 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5040 "/warzone2100_src.tar.xz"))
5042 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
5043 (modules '((guix build utils)))
5046 (with-directory-excursion "3rdparty"
5048 delete-file-recursively
5053 (build-system cmake-build-system)
5055 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5056 "-DENABLE_DISCORD=off")
5057 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5059 (modify-phases %standard-phases
5060 (add-after 'unpack 'fix-utfcpp-include
5062 (substitute* "lib/framework/wzstring.cpp"
5063 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5065 (add-after 'unpack 'link-tests-with-qt
5067 (substitute* "tests/Makefile.am"
5068 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5069 (string-append prefix "$(QT5_LIBS) ")))
5071 (add-after 'unpack 'fix-ivis-linktest
5073 (substitute* "tests/ivis_linktest.cpp"
5074 (("iV_DrawTextRotated.*;")
5075 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5076 "100, 100, 0.0f, font_regular);")))
5078 (native-inputs `(("asciidoc" ,asciidoc)
5079 ("asciidoctor" ,ruby-asciidoctor)
5080 ("gettext" ,gettext-minimal)
5081 ("pkg-config" ,pkg-config)
5083 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5085 (inputs `(("curl" ,curl)
5086 ("fontconfig" ,fontconfig)
5087 ("freetype" ,freetype)
5089 ("harfbuzz" ,harfbuzz)
5090 ("libtheora" ,libtheora)
5091 ("libvorbis" ,libvorbis)
5092 ("libxrandr" ,libxrandr)
5093 ("libsodium" ,libsodium)
5094 ("miniupnpc" ,miniupnpc)
5098 ("qtscript" ,qtscript)
5099 ("openssl" ,openssl)
5101 ("utfcpp" ,utfcpp)))
5102 (home-page "https://wz2100.net")
5103 (synopsis "3D Real-time strategy and real-time tactics game")
5105 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5106 modes. An extensive tech tree with over 400 different technologies, combined
5107 with the unit design system, allows for a wide variety of possible units and
5109 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5110 (license (list license:bsd-3
5115 license:lgpl2.1+))))
5117 (define-public widelands
5124 (uri (string-append "https://launchpad.net/widelands/"
5125 "build" version "/build" version "/+download/"
5126 "widelands-build" version "-source.tar.gz"))
5128 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5129 (modules '((guix build utils)))
5132 (delete-file-recursively "src/third_party/minizip")
5135 ;; Use system Minizip. Patch is provided by Debian, and discussed
5136 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5137 (search-patches "widelands-system-wide_minizip.patch"))))
5138 (build-system cmake-build-system)
5141 (let* ((out (assoc-ref %outputs "out"))
5142 (share (string-append out "/share")))
5143 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5144 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5145 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5146 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5147 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5148 ;; type. When used, no game data is installed!
5149 "-DCMAKE_BUILD_TYPE=Release"))
5151 (modify-phases %standard-phases
5152 (add-after 'unpack 'unbundle-fonts
5153 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5154 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5155 (lambda* (#:key inputs #:allow-other-keys)
5156 (with-directory-excursion "data/i18n/fonts"
5157 (for-each (lambda (font)
5158 (delete-file-recursively font)
5159 (symlink (string-append (assoc-ref inputs font)
5160 "/share/fonts/truetype")
5162 '("DejaVu" "MicroHei")))
5165 `(("gettext" ,gettext-minimal)
5166 ("python" ,python-wrapper)))
5172 ("minizip" ,minizip)
5173 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5175 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5176 ("DejaVu" ,font-dejavu)
5177 ("MicroHei" ,font-wqy-microhei)))
5178 (home-page "https://www.widelands.org/")
5179 (synopsis "Fantasy real-time strategy game")
5181 "In Widelands, you are the regent of a small clan. You start out with
5182 nothing but your headquarters, where all your resources are stored.
5184 In the course of the game, you will build an ever growing settlement. Every
5185 member of your clan will do his or her part to produce more resources---wood,
5186 food, iron, gold and more---to further this growth. The economic network is
5187 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5190 As you are not alone in the world, you will meet other clans sooner or later.
5191 Some of them may be friendly and you may eventually trade with them. However,
5192 if you want to rule the world, you will have to train soldiers and fight.
5194 Widelands offers single-player mode with different campaigns; the campaigns
5195 all tell stories of tribes and their struggle in the Widelands universe!
5196 However, settling really starts when you unite with friends over the Internet
5197 or LAN to build up new empires together---or to crush each other in the dusts
5198 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5199 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5200 ;; different licenses.
5201 (license (list license:gpl2+
5202 license:expat ;src/third_party/eris
5203 license:silofl1.1 ;Widelands.ttf
5204 license:cc-by-sa3.0)))) ;some music files
5206 (define-public starfighter
5208 (name "starfighter")
5213 "https://github.com/pr-starfighter/starfighter/releases"
5214 "/download/v" version "/starfighter-"
5215 version "-src.tar.gz"))
5218 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5219 (build-system gnu-build-system)
5221 `(("pkg-config" ,pkg-config)))
5225 ("sdl2-image" ,sdl2-image)
5226 ("sdl2-mixer" ,sdl2-mixer)
5227 ("sdl2-ttf" ,sdl2-ttf)))
5228 (home-page "https://pr-starfighter.github.io/")
5229 (synopsis "2D scrolling shooter game")
5231 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5232 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5233 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5234 way, you will encounter new foes, make new allies, and assist local rebels
5235 in strikes against the evil corporation.")
5236 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5237 (license (list license:gpl3+
5241 license:public-domain))))
5243 (define-public chromium-bsu
5245 (name "chromium-bsu")
5246 (version "0.9.16.1")
5249 (uri (string-append "mirror://sourceforge/chromium-bsu"
5250 "/Chromium B.S.U. source code/"
5251 "chromium-bsu-" version ".tar.gz"))
5254 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5255 (build-system gnu-build-system)
5256 (native-inputs `(("pkg-config" ,pkg-config)))
5257 (inputs `(("gettext" ,gettext-minimal)
5259 ("quesoglc" ,quesoglc)
5260 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5261 (home-page "http://chromium-bsu.sourceforge.net/")
5262 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5264 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5265 are responsible for delivering supplies to the troops on the front line. Your
5266 ship has a small fleet of robotic fighters which you control from the relative
5267 safety of the Chromium vessel.")
5268 ;; Clarified Artistic License for everything but sound, which is covered
5269 ;; by the Expat License.
5270 (license (list license:clarified-artistic license:expat))))
5272 (define-public tuxpaint
5275 (version "0.9.23") ;keep VER_DATE below in sync
5279 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5280 version "/tuxpaint-" version ".tar.gz"))
5283 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5284 (modules '((guix build utils)))
5287 ;; Remove win32 directory which contains binary dll's and the
5288 ;; deprecated visualc directory.
5289 (for-each delete-file-recursively '("win32" "visualc"))
5290 (substitute* "Makefile"
5291 ;; Do not rely on $(GPERF) being an absolute file name
5292 (("\\[ -x \\$\\(GPERF\\) \\]")
5293 "$(GPERF) --version >/dev/null 2>&1"))
5295 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5296 (build-system gnu-build-system)
5299 ("pkg-config" ,pkg-config)))
5302 ("fribidi" ,fribidi)
5303 ("gettext" ,gettext-minimal)
5305 ("librsvg" ,librsvg)
5306 ("libpaper" ,libpaper)
5308 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5309 ;; TODO: Use system fonts rather than those in data/fonts
5311 `(#:make-flags `("VER_DATE=2018-09-02"
5312 "GPERF=gperf" "CC=gcc"
5313 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5314 ,(string-append "PREFIX=" %output)
5315 "KDE_PREFIX=$(PREFIX)/share/applications"
5316 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5317 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5318 #:parallel-build? #f ;fails on some systems
5319 #:tests? #f ;No tests
5320 #:phases (modify-phases %standard-phases
5321 (delete 'configure) ;no configure phase
5322 (add-before 'install 'no-sys-cache
5323 (lambda _ ;do not rebuild system conf cache
5324 (substitute* "Makefile"
5325 (("kbuildsycoca4") ""))
5327 (add-after 'install 'fix-import
5328 (lambda* (#:key inputs outputs #:allow-other-keys)
5329 (let* ((out (assoc-ref outputs "out"))
5330 (net (assoc-ref inputs "netpbm"))
5331 (tpi (string-append out "/bin/tuxpaint-import")))
5333 ;; Point to installation prefix so that the default
5334 ;; configure file is found.
5335 (("/usr/local") out))
5336 ;; tuxpaint-import uses a bunch of programs from
5337 ;; netpbm, so make sure it knows where those are
5340 (,(string-append net "/bin"))))))))))
5341 (native-search-paths
5342 (list (search-path-specification
5343 (variable "TUXPAINT_STAMPS_PATH")
5344 (files '("share/tuxpaint/stamps")))))
5345 (home-page "http://www.tuxpaint.org")
5346 (synopsis "Drawing software for children")
5348 "Tux Paint is a free drawing program designed for young children (kids
5349 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5350 and an encouraging cartoon mascot who helps guide children as they use the
5351 program. It provides a blank canvas and a variety of drawing tools to help
5352 your child be creative.")
5353 (license license:gpl2+)))
5355 (define-public tuxpaint-stamps
5357 (name "tuxpaint-stamps")
5358 (version "2018.09.01")
5362 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5363 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5364 "/tuxpaint-stamps-" version ".tar.gz"))
5367 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5368 (build-system trivial-build-system)
5373 `(#:modules ((guix build utils))
5375 (use-modules (guix build utils))
5378 (assoc-ref %build-inputs "tar") "/bin" ":"
5379 (assoc-ref %build-inputs "gzip") "/bin"))
5380 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5381 (chdir (string-append ,name "-" ,version))
5382 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5384 (copy-recursively "stamps" dir))
5386 (home-page (package-home-page tuxpaint))
5387 (synopsis "Stamp images for Tux Paint")
5389 "This package contains a set of \"Rubber Stamp\" images which can be used
5390 with the \"Stamp\" tool within Tux Paint.")
5391 (license license:gpl2+)))
5393 (define-public tuxpaint-config
5395 (name "tuxpaint-config")
5396 (version "0.0.14") ;keep VER_DATE below in sync
5400 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5401 version "/tuxpaint-config-" version ".tar.gz"))
5404 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5405 (build-system gnu-build-system)
5407 `(("gettext" ,gettext-minimal)))
5410 ("libpaper" ,libpaper)
5411 ;; TODO: Should the following be propagated by fltk?
5416 `(#:make-flags `("VER_DATE=2018-09-01"
5417 "CONFDIR=/etc/tuxpaint" ;don't write to store
5418 ,(string-append "PREFIX=" %output)
5419 "GNOME_PREFIX=$(PREFIX)")
5420 #:parallel-build? #f ;race conditions
5421 #:tests? #f ;no tests
5422 #:phases (modify-phases %standard-phases
5423 (delete 'configure) ;no configure phase
5424 (add-before 'install 'gzip-no-name
5426 (substitute* "Makefile"
5427 ;; tuxpaint-config compresses its own documentation;
5428 ;; make sure it uses flags for reproducibility.
5429 (("gzip") "gzip --no-name"))))
5430 (add-before 'install 'make-install-dirs
5431 (lambda* (#:key outputs #:allow-other-keys)
5432 (let ((out (assoc-ref outputs "out")))
5433 (mkdir-p (string-append out "/bin"))
5435 (home-page (package-home-page tuxpaint))
5436 (synopsis "Configure Tux Paint")
5438 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5439 (license license:gpl2))) ;no "or later" present
5441 (define-public supertux
5447 (uri (string-append "https://github.com/SuperTux/supertux/"
5448 "releases/download/v" version "/SuperTux-v"
5449 version "-Source.tar.gz"))
5450 (file-name (string-append name "-" version ".tar.gz"))
5453 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5455 (search-patches "supertux-unbundle-squirrel.patch"))))
5458 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5459 "-DUSE_SYSTEM_PHYSFS=ON")
5461 (modify-phases %standard-phases
5462 (add-after 'unpack 'patch-squirrel-path
5463 (lambda* (#:key inputs #:allow-other-keys)
5464 (let ((squirrel (assoc-ref inputs "squirrel")))
5465 (substitute* "CMakeLists.txt"
5466 (("set\\(SQUIRREL_PREFIX.*")
5467 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5468 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5469 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5470 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5472 (build-system cmake-build-system)
5473 (inputs `(("sdl2" ,sdl2)
5474 ("sdl2-image" ,sdl2-image)
5475 ("sdl2-mixer" ,sdl2-mixer)
5479 ("libvorbis" ,libvorbis)
5484 ("freetype" ,freetype)
5485 ("squirrel" ,squirrel)))
5487 `(("pkg-config" ,pkg-config)))
5488 (synopsis "2D platformer game")
5489 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5490 a style similar to the original Super Mario games.")
5491 (home-page "https://supertux.org/")
5492 (license license:gpl3+)))
5494 (define-public tintin++
5501 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5502 (string-drop-right version 1)
5503 "/tintin-" version ".tar.gz"))
5505 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5507 `(("gnutls" ,gnutls)
5509 ("readline" ,readline)
5512 '(#:tests? #f ; no test suite
5514 (modify-phases %standard-phases
5515 ;; The source is in tt/src.
5516 (add-before 'configure 'chdir
5520 (build-system gnu-build-system)
5521 (home-page "https://tintin.mudhalla.net/")
5522 (synopsis "MUD client")
5524 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5525 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5526 options used by MUDs, as well as those required to login via telnet on
5527 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5528 (license license:gpl3+)))
5535 (origin (method git-fetch)
5537 (url "https://github.com/sgimenez/laby")
5538 (commit (string-append name "-" version))))
5539 (file-name (git-file-name name version))
5542 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5543 (patches (search-patches "laby-make-install.patch"))))
5544 (build-system gnu-build-system)
5546 `(("lablgtk" ,lablgtk)
5548 ("ocaml-findlib" ,ocaml-findlib)
5549 ("ocamlbuild" ,ocamlbuild)))
5552 (modify-phases %standard-phases
5554 (add-before 'build 'allow-unsafe-strings
5555 ;; Fix a build failure with ocaml >=4.06.0.
5556 ;; See <https://github.com/sgimenez/laby/issues/53>.
5558 (setenv "OCAMLPARAM" "safe-string=0,_")
5560 (add-before 'build 'set-library-path
5561 (lambda* (#:key inputs #:allow-other-keys)
5562 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5563 (setenv "LD_LIBRARY_PATH"
5564 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5565 #:tests? #f ; no 'check' target
5567 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5568 (home-page "https://sgimenez.github.io/laby/")
5569 (synopsis "Programming game")
5570 (description "Learn programming, playing with ants and spider webs ;-)
5571 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5572 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5573 programmers may also add their own favorite language.")
5574 (license license:gpl3+)))
5576 (define-public bambam
5584 (url "https://github.com/porridge/bambam")
5585 (commit (string-append "v" version))))
5586 (file-name (git-file-name name version))
5588 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5589 (build-system python-build-system)
5591 `(#:tests? #f ; no tests
5593 (modify-phases %standard-phases
5594 (delete 'build) ; nothing to build
5596 (lambda* (#:key outputs #:allow-other-keys)
5597 (let* ((out (assoc-ref outputs "out"))
5598 (bin (string-append out "/bin"))
5599 (share (string-append out "/share")))
5601 (copy-file "bambam.py" (string-append bin "/bambam"))
5602 (install-file "bambam.6" (string-append share "/man/man6"))
5603 (copy-recursively "data" (string-append share "/bambam/data")))
5606 `(("python-pygame" ,python-pygame)))
5607 (home-page "https://github.com/porridge/bambam")
5608 (synopsis "Keyboard mashing and doodling game for babies")
5609 (description "Bambam is a simple baby keyboard (and gamepad) masher
5610 application that locks the keyboard and mouse and instead displays bright
5611 colors, pictures, and sounds.")
5612 (license license:gpl3+)))
5614 (define-public mrrescue
5621 "https://github.com/SimonLarsen/mrrescue/releases/"
5622 "download/" version "/mrrescue" version ".love"))
5623 (file-name (string-append name "-" version ".love"))
5626 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5627 (build-system trivial-build-system)
5629 `(#:modules ((guix build utils))
5632 (use-modules (guix build utils))
5633 (let* ((out (assoc-ref %outputs "out"))
5634 (script (string-append out "/bin/" ,name))
5635 (data (string-append out "/share/" ,name))
5636 (source (assoc-ref %build-inputs "source"))
5637 (unzip (string-append (assoc-ref %build-inputs "unzip")
5639 (patch (string-append (assoc-ref %build-inputs "patch")
5641 (bash (string-append (assoc-ref %build-inputs "bash")
5643 (love (string-append (assoc-ref %build-inputs "love")
5646 (mkdir-p (dirname script))
5647 (with-output-to-file script
5649 (format #t "#!~a~%" bash)
5650 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5651 (chmod script #o755)
5653 ;; The better way to package this game would be to install *only* the
5654 ;; script above, pointing to the unextracted .love file in the store.
5655 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5656 ;; Instead of extracting the .love file, patching it, and re-zipping
5657 ;; it to the store, simply point the script to the extracted patched
5658 ;; data directory directly.
5660 (with-directory-excursion data
5661 (invoke unzip source)
5662 (invoke patch "-p1" "-i"
5663 (assoc-ref %build-inputs "love-11.patch")))
5668 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5672 (home-page "https://tangramgames.dk/games/mrrescue")
5673 (synopsis "Arcade-style fire fighting game")
5675 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5676 civilians from burning buildings. The game features fast-paced fire
5677 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5678 throwing people around in pseudo-randomly generated buildings.")
5679 (license (list license:zlib ; for source code
5680 license:cc-by-sa3.0)))) ; for graphics and music assets
5682 (define-public hyperrogue
5686 ;; When updating this package, be sure to update the "hyperrogue-data"
5687 ;; origin in native-inputs.
5691 "https://www.roguetemple.com/z/hyper/hyperrogue"
5692 (string-join (string-split version #\.) "")
5696 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5697 (build-system gnu-build-system)
5699 `(#:tests? #f ; no check target
5700 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5701 "HYPERROGUE_USE_PNG=1")
5703 (modify-phases %standard-phases
5704 (add-after 'set-paths 'set-sdl-paths
5705 (lambda* (#:key inputs #:allow-other-keys)
5707 (string-append (or (getenv "CPATH") "") ":"
5708 (assoc-ref inputs "sdl-union")
5711 (lambda* (#:key inputs outputs #:allow-other-keys)
5712 (let* ((out (assoc-ref outputs "out"))
5713 (share-dir (string-append out "/share/hyperrogue"))
5714 (dejavu-dir (string-append
5715 (assoc-ref inputs "font-dejavu")
5716 "/share/fonts/truetype"))
5717 (dejavu-font "DejaVuSans-Bold.ttf")
5718 (music-file "hyperrogue-music.txt"))
5719 ;; Fix font and music paths.
5720 (substitute* "basegraph.cpp"
5722 (string-append dejavu-dir "/" dejavu-font)))
5723 (substitute* music-file
5725 (string-append share-dir "/sounds/")))
5726 (substitute* "sound.cpp"
5727 (("musicfile = \"\"")
5728 (string-append "musicfile = \""
5729 share-dir "/" music-file "\"")))
5730 ;; Disable build machine CPU optimizations and warnings treated
5732 (substitute* "Makefile"
5733 (("-march=native") "")
5737 (lambda* (#:key inputs outputs #:allow-other-keys)
5738 (let* ((out (assoc-ref outputs "out"))
5739 (bin (string-append out "/bin"))
5740 (share-dir (string-append out "/share/hyperrogue")))
5742 (install-file "hyperrogue" bin)
5743 (install-file "hyperrogue-music.txt" share-dir))
5745 (add-after 'install 'install-data
5746 (lambda* (#:key inputs outputs #:allow-other-keys)
5747 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5748 (out (assoc-ref outputs "out"))
5749 (sounds (string-append out "/share/hyperrogue/sounds"))
5750 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5751 ;; Extract media license information into sounds directory.
5752 (invoke unzip "-j" data
5755 (string-join (string-split ,version #\.) "")
5756 "/sounds/credits.txt") "-d" sounds)
5757 ;; Extract sounds and music into sounds directory.
5758 (invoke "unzip" "-j" data
5761 (string-join (string-split ,version #\.) "")
5762 "/*.ogg") "-d" sounds)))))))
5764 `(("hyperrogue-data"
5769 "https://www.roguetemple.com/z/hyper/hyperrogue"
5770 (string-join (string-split version #\.) "")
5774 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5777 `(("font-dejavu" ,font-dejavu)
5780 ("sdl-union" ,(sdl-union (list sdl
5784 (home-page "https://www.roguetemple.com/z/hyper/")
5785 (synopsis "Non-euclidean graphical rogue-like game")
5787 "HyperRogue is a game in which the player collects treasures and fights
5788 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5789 plane and not in euclidean space.
5791 In HyperRogue, the player can move through different parts of the world, which
5792 are home to particular creatures and may be subject to their own rules of
5795 While the game can use ASCII characters to display the the classical rogue
5796 symbols, it still needs graphics to render the non-euclidean world.")
5797 (license (list license:bsd-3 ; glew.c, mtrand.*
5798 license:cc-by-sa3.0 ; music
5799 license:cc-by-sa4.0 ; sounds
5801 license:public-domain ; direntx.*, some sounds
5802 license:zlib ; savepng.*
5803 license:gpl2+)))) ; remaining files
5805 (define-public kobodeluxe
5811 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5812 version ".tar.bz2"))
5815 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5816 (patches (search-patches
5817 "kobodeluxe-const-charp-conversion.patch"
5818 "kobodeluxe-enemies-pipe-decl.patch"
5819 "kobodeluxe-graphics-window-signed-char.patch"
5820 "kobodeluxe-manpage-minus-not-hyphen.patch"
5821 "kobodeluxe-midicon-segmentation-fault.patch"
5822 "kobodeluxe-paths.patch"))))
5823 (build-system gnu-build-system)
5826 (list (string-append "CPPFLAGS=-I"
5827 (assoc-ref %build-inputs "sdl-union")
5831 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5832 (synopsis "Shooter with space station destruction")
5834 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5835 for Un*x systems with X11.")
5836 (home-page "http://olofson.net/kobodl/")
5837 (license license:gpl2+)))
5839 (define-public freeciv
5846 (uri (list (string-append
5847 "http://files.freeciv.org/stable/freeciv-"
5850 "mirror://sourceforge/freeciv/Freeciv%20"
5851 (version-major+minor version) "/" version
5852 "/freeciv-" version ".tar.bz2")))
5854 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5855 (build-system gnu-build-system)
5858 ("cyrus-sasl" ,cyrus-sasl)
5860 ("sdl-mixer" ,sdl-mixer)
5863 `(("pkg-config" ,pkg-config)))
5864 (home-page "http://www.freeciv.org/")
5865 (synopsis "Turn-based empire building strategy game")
5866 (description "Freeciv is a turn-based empire building strategy game
5867 inspired by the history of human civilization. The game commences in
5868 prehistory and your mission is to lead your tribe from the Stone Age
5869 into the Space Age.")
5870 (license license:gpl2+)))
5872 (define-public no-more-secrets
5874 (name "no-more-secrets")
5880 (url "https://github.com/bartobri/no-more-secrets")
5881 (commit (string-append "v" version))))
5882 (file-name (git-file-name name version))
5884 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5885 (build-system gnu-build-system)
5888 #:make-flags (list "CC=gcc" "all-ncurses"
5889 (string-append "prefix="
5890 (assoc-ref %outputs "out")))
5892 (modify-phases %standard-phases
5893 (delete 'configure))))
5895 `(("ncurses" ,ncurses)))
5896 (home-page "https://github.com/bartobri/no-more-secrets")
5897 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5899 "@code{No More Secrets} provides a command line tool called \"nms\"
5900 that recreates the famous data decryption effect seen on screen in the 1992
5903 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5904 it will apply the hollywood effect, initially showing encrypted data, then
5905 starting a decryption sequence to reveal the original plaintext characters.")
5906 (license license:expat)))
5908 (define-public megaglest-data
5910 (name "megaglest-data")
5916 "https://github.com/MegaGlest/megaglest-data"
5917 "/releases/download/" version "/megaglest-data-"
5921 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5922 (build-system cmake-build-system)
5925 (home-page "https://megaglest.org/")
5926 (synopsis "Data files for MegaGlest")
5927 (description "This package contains the data files required for MegaGlest.")
5928 (license license:cc-by-sa3.0)))
5930 (define-public megaglest
5938 "https://github.com/MegaGlest/megaglest-source"
5939 "/releases/download/" version "/megaglest-source-"
5943 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5944 (build-system cmake-build-system)
5947 ("fontconfig" ,fontconfig)
5950 ("libjpeg-turbo" ,libjpeg-turbo)
5951 ("megaglest-data" ,megaglest-data)
5953 ("miniupnpc" ,miniupnpc)
5955 ("libircclient" ,libircclient)
5957 ("libvorbis" ,libvorbis)
5960 ("wxwidgets" ,wxwidgets)))
5962 `(("cppunit" ,cppunit)
5963 ("pkg-config" ,pkg-config)))
5966 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5967 (assoc-ref %build-inputs "megaglest-data")
5969 "-DBUILD_MEGAGLEST_TESTS=ON")
5971 (modify-phases %standard-phases
5972 (add-after 'unpack 'fix-ini-search-path
5973 (lambda* (#:key outputs #:allow-other-keys)
5974 (substitute* "source/glest_game/global/config.cpp"
5975 (("/usr/share/megaglest/")
5976 (string-append (assoc-ref outputs "out")
5977 "/share/megaglest/"))))))
5978 #:test-target "megaglest_tests"))
5979 (home-page "https://megaglest.org/")
5980 (synopsis "3D real-time strategy (RTS) game")
5981 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5982 game, where you control the armies of one of seven different factions: Tech,
5983 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5984 (license license:gpl2+)))
5986 (define-public freegish
5987 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5991 (version (string-append "0-" revision "." (string-take commit 9)))
5995 (url "https://github.com/freegish/freegish")
5997 (file-name (git-file-name name version))
6000 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6001 (modules '((guix build utils)))
6002 ;; The audio files in the "music" directory are licensed under
6003 ;; CC-BY-NC, so we delete them.
6006 (delete-file-recursively "music")
6008 (build-system cmake-build-system)
6010 `(#:tests? #f ; no tests included
6012 (list "-DCMAKE_INSTALL_FHS=ON")
6014 (modify-phases %standard-phases
6015 (add-after 'unpack 'set-DATAPATH
6016 (lambda* (#:key outputs #:allow-other-keys)
6017 (substitute* "CMakeLists.txt"
6018 (("^option\\(INSTALL_FHS" line)
6019 (string-append "add_definitions(-DDATAPATH=\""
6020 (assoc-ref outputs "out") "/share/freegish\")\n"
6024 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6026 ("libvorbis" ,libvorbis)
6031 (home-page "https://github.com/freegish/freegish")
6032 (synopsis "Side-scrolling physics platformer with a ball of tar")
6033 (description "In FreeGish you control Gish, a ball of tar who lives
6034 happily with his girlfriend Brea, until one day a mysterious dark creature
6035 emerges from a sewer hole and pulls her below ground.")
6036 ;; The textures are available under the Expat license. All other assets
6037 ;; (including levels) are covered under CC-BY-SA or public domain. The
6038 ;; source code is under GPLv2+.
6039 (license (list license:gpl2+
6041 license:public-domain
6042 license:cc-by-sa3.0)))))
6044 (define-public cdogs-sdl
6052 (url "https://github.com/cxong/cdogs-sdl")
6054 (file-name (git-file-name name version))
6056 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6057 (build-system cmake-build-system)
6060 (list (string-append "-DCDOGS_DATA_DIR="
6061 (assoc-ref %outputs "out")
6062 "/share/cdogs-sdl/"))))
6064 `(("pkg-config" ,pkg-config)))
6069 ("sdl2-image" ,sdl2-image)
6070 ("sdl2-mixer" ,sdl2-mixer)))
6071 (home-page "https://cxong.github.io/cdogs-sdl/")
6072 (synopsis "Classic overhead run-and-gun game")
6073 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6074 supporting up to 4 players in co-op and deathmatch modes. Customize your
6075 player, choose from many weapons, and blast, slide and slash your way through
6076 over 100 user-created campaigns.")
6077 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6078 ;; CC0/CC-BY/CC-BY-SA for assets.
6079 (license (list license:gpl2+
6084 license:cc-by-sa3.0))))
6092 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6093 version "/kiki-" version "-src.tgz"))
6096 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6097 (modules '((guix build utils)))
6100 (for-each delete-file (find-files "." "\\.dll$"))
6103 (search-patches "kiki-level-selection-crash.patch"
6104 "kiki-makefile.patch"
6105 "kiki-missing-includes.patch"
6106 "kiki-portability-64bit.patch"))))
6107 (build-system gnu-build-system)
6109 `(#:tests? #f ; there are no tests
6110 #:make-flags '("CXX=g++")
6112 (modify-phases %standard-phases
6114 (lambda* (#:key inputs outputs #:allow-other-keys)
6115 (setenv "CPLUS_INCLUDE_PATH"
6116 (string-append (assoc-ref inputs "sdl-union")
6118 (assoc-ref inputs "python")
6119 "/include/python2.7:"
6120 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6121 (substitute* "src/main/main.cpp"
6122 (("#include <SDL.h>" line)
6123 (string-append line "
6124 #define K_INCLUDE_GLUT
6125 #include \"KIncludeTools.h\""))
6126 (("// initialize SDL" line)
6127 (string-append "glutInit(&argc,argv);\n" line)))
6128 (substitute* "src/main/KikiController.cpp"
6129 (("getenv\\(\"KIKI_HOME\"\\)")
6130 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6131 (substitute* "linux/Makefile"
6133 (string-append line " -fpermissive"))
6134 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6136 (string-append "PYTHONHOME = "
6137 (assoc-ref inputs "python")
6139 (("\\$\\(GLLIBS\\)" line)
6140 (string-append line " -lm -lpython2.7")))
6141 (substitute* "src/main/KikiPythonWidget.h"
6142 (("#define __KikiPythonWidget" line)
6143 (string-append line "\n#include \"KikiPython.h\"")))
6145 (add-before 'build 'build-kodilib
6146 (lambda* (#:key make-flags #:allow-other-keys)
6147 (with-directory-excursion "kodilib/linux"
6148 (apply invoke "make" make-flags))))
6149 (add-after 'build-kodilib 'chdir
6150 (lambda _ (chdir "linux") #t))
6152 (lambda* (#:key outputs #:allow-other-keys)
6153 (let* ((out (assoc-ref outputs "out"))
6154 (bin (string-append out "/bin"))
6155 (share (string-append out "/share/kiki")))
6158 (install-file "kiki" bin)
6159 (copy-recursively "../py" (string-append share "/py"))
6160 (copy-recursively "../sound" (string-append share "/sound"))
6164 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6165 ("freeglut" ,freeglut-2.8)
6166 ("sdl-union" ,(sdl-union (list sdl
6169 ("python" ,python-2)))
6172 (home-page "http://kiki.sourceforge.net/")
6173 (synopsis "3D puzzle game")
6174 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6175 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6176 small robot living in the nano world, repair its maker.")
6177 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6178 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6179 ;; for a statement from the author.
6180 (license license:public-domain)))
6182 (define-public teeworlds
6189 (url "https://github.com/teeworlds/teeworlds")
6191 ;; There are two submodules in datasrc/{languages,maps}
6193 (file-name (git-file-name name version))
6196 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6197 (modules '((guix build utils)
6202 (snippet ; remove bundled libraries except md5
6203 '(let ((base-dir "src/engine/external/"))
6204 (for-each (compose (cut delete-file-recursively <>)
6205 (cut string-append base-dir <>))
6206 (remove (cut string-match "(^.)|(^md5$)" <>)
6207 (scandir base-dir)))
6209 (build-system cmake-build-system)
6211 `(#:tests? #f ; no tests included
6213 (modify-phases %standard-phases
6214 (add-after 'unpack 'patch-paths
6215 (lambda* (#:key outputs #:allow-other-keys)
6216 ;; Embed path to assets.
6217 (substitute* "src/engine/shared/storage.cpp"
6218 (("#define DATA_DIR.*")
6219 (string-append "#define DATA_DIR \""
6220 (assoc-ref outputs "out")
6221 "/share/teeworlds/data"
6225 `(("freetype" ,freetype)
6227 ("json-parser" ,json-parser)
6229 ("pnglite" ,pnglite)
6231 ("sdl2-image" ,sdl2-image)
6232 ("sdl2-mixer" ,sdl2-mixer)
6233 ("wavpack" ,wavpack)
6234 ("openssl" ,openssl)
6237 `(("python" ,python-wrapper)
6238 ("pkg-config" ,pkg-config)))
6239 (home-page "https://www.teeworlds.com")
6240 (synopsis "2D retro multiplayer shooter game")
6241 (description "Teeworlds is an online multiplayer game. Battle with up to
6242 16 players in a variety of game modes, including Team Deathmatch and Capture
6243 The Flag. You can even design your own maps!")
6244 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6246 (define-public enigma
6252 (uri (string-append "mirror://sourceforge/enigma-game/"
6253 "Release%20" version "/enigma-"
6257 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6258 (build-system gnu-build-system)
6261 (list "--with-system-enet")
6263 (modify-phases %standard-phases
6264 (add-after 'unpack 'fix-build-with-new-gcc
6266 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6267 ;; to NULL. Can be removed for versions > 1.21.
6268 (substitute* "src/lev/Proxy.cc"
6272 (add-after 'unpack 'find-sdl
6274 (substitute* "configure"
6275 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6276 (substitute* '("tools/ttf2bmf.cc"
6277 "lib-src/enigma-core/ecl_font.cc"
6278 "lib-src/enigma-core/ecl_video.cc"
6279 "lib-src/enigma-core/ecl_buffer.hh"
6280 "src/SoundEngine.cc"
6281 "src/SoundEngine.hh"
6282 "src/MusicManager.cc"
6283 "src/MusicManager.hh"
6287 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6288 (string-append "#include \"SDL/SDL_" header ".h\"")))
6289 (substitute* "src/main.cc"
6290 (("#include <SDL_(image|ttf|mixer).h>" line header)
6291 (string-append "#include \"SDL/SDL_" header ".h\"")))
6294 `(("xerces-c" ,xerces-c)
6295 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6299 `(("pkg-config" ,pkg-config)
6300 ("imagemagick" ,imagemagick)))
6301 (home-page "https://www.nongnu.org/enigma")
6302 (synopsis "Puzzle game with a dexterity component")
6303 (description "Enigma is a puzzle game with 550 unique levels. The object
6304 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6305 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6306 and most of all, countless hairy puzzles usually block your direct way to the
6307 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6308 get bored) interact in many unexpected ways, and since many of them follow the
6309 laws of physics (Enigma’s special laws of physics, that is), controlling them
6310 with the mouse isn’t always trivial.")
6311 (license license:gpl2+)))
6313 (define-public chroma
6319 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6320 version ".tar.bz2"))
6323 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
6324 (build-system gnu-build-system)
6326 `(#:tests? #f ; no tests included
6327 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6329 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6330 ("freetype" ,freetype)
6331 ("ncurses" ,ncurses)
6332 ("fontconfig" ,fontconfig)
6333 ("libxft" ,libxft)))
6335 `(("pkg-config" ,pkg-config)))
6336 (home-page "http://level7.org.uk/chroma/")
6337 (synopsis "Abstract puzzle game")
6338 (description "Chroma is an abstract puzzle game. A variety of colourful
6339 shapes are arranged in a series of increasingly complex patterns, forming
6340 fiendish traps that must be disarmed and mysterious puzzles that must be
6341 manipulated in order to give up their subtle secrets. Initially so
6342 straightforward that anyone can pick it up and begin to play, yet gradually
6343 becoming difficult enough to tax even the brightest of minds.")
6344 (license license:gpl2+)))
6346 (define-public fillets-ng
6352 (uri (string-append "mirror://sourceforge/fillets/"
6353 "Fish%20Fillets%20-%20Next%20Generation/"
6354 version "/fillets-ng-" version ".tar.gz"))
6357 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6358 (build-system gnu-build-system)
6361 (list (string-append "--with-lua="
6362 (assoc-ref %build-inputs "lua")))
6364 (list (string-append "CFLAGS=-I"
6365 (assoc-ref %build-inputs "sdl-union")
6367 (string-append "CXXFLAGS=-I"
6368 (assoc-ref %build-inputs "sdl-union")
6371 (modify-phases %standard-phases
6372 ;; Lua 5.1 does not provide it.
6373 (add-after 'unpack 'do-not-link-with-lualib
6375 (substitute* "configure"
6378 (add-after 'install 'install-data
6379 (lambda* (#:key inputs outputs #:allow-other-keys)
6380 (let ((data (string-append (assoc-ref outputs "out")
6381 "/share/games/fillets-ng")))
6383 (invoke "tar" "-xvf"
6384 (assoc-ref inputs "fillets-ng-data")
6385 "--strip-components=1"
6388 `(("sdl-union" ,(sdl-union (list sdl
6392 ("fribidi" ,fribidi)
6396 `(("pkg-config" ,pkg-config)
6400 (uri (string-append "mirror://sourceforge/fillets/"
6401 "Fish%20Fillets%20-%20Next%20Generation/"
6402 version "/fillets-ng-data-" version ".tar.gz"))
6405 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6406 (home-page "http://fillets.sourceforge.net/")
6407 (synopsis "Puzzle game")
6408 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6409 every of the seventy levels is always the same: find a safe way out. The fish
6410 utter witty remarks about their surroundings, the various inhabitants of their
6411 underwater realm quarrel among themselves or comment on the efforts of your
6412 fish. The whole game is accompanied by quiet, comforting music.")
6413 (license license:gpl2+)))
6415 (define-public crawl
6422 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6423 version "/stone_soup-" version "-nodeps.tar.xz"))
6425 (base32 "1d8p2np2q5951wqphq2f4dyvv976m2lh82b0qp7w9pp1h8zzi1ff"))
6426 (patches (search-patches "crawl-upgrade-saves.patch"))))
6427 (build-system gnu-build-system)
6429 `(("lua51" ,lua-5.1)
6430 ("ncurses" ,ncurses)
6437 ("python" ,python-wrapper)
6438 ("python-pyyaml" ,python-pyyaml)
6439 ("pkg-config" ,pkg-config)))
6442 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6443 (out (assoc-ref %outputs "out")))
6444 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6445 (string-append "prefix=" out)
6447 ;; Don't compile with SSE on systems which don't have it.
6448 ,@(match (%current-system)
6449 ((or "i686-linux" "x86_64-linux")
6451 (_ '("NOSSE=TRUE")))
6452 ;; don't build any bundled dependencies
6458 (modify-phases %standard-phases
6459 (add-after 'unpack 'find-SDL-image
6461 (substitute* "source/windowmanager-sdl.cc"
6462 (("SDL_image.h") "SDL2/SDL_image.h"))
6466 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6467 (setenv "HOME" (getcwd))
6468 ;; Fake a terminal for the test cases.
6469 (setenv "TERM" "xterm-256color")
6470 ;; Run the tests that don't require a debug build.
6471 (apply invoke "make" "nondebugtest"
6472 (format #f "-j~d" (parallel-job-count))
6473 ;; Force command line build for test cases.
6474 (append make-flags '("GAME=crawl" "TILES="))))))))
6475 (synopsis "Roguelike dungeon crawler game")
6476 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6477 for short) is a roguelike adventure through dungeons filled with dangerous
6478 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6479 (home-page "https://crawl.develz.org")
6480 (license (list license:gpl2+
6488 ;; The linter here claims that patch file names should start with the package
6489 ;; name. But, in this case, the patches are inherited from crawl with the
6490 ;; "crawl-" prefix instead of "crawl-tiles-".
6491 (define-public crawl-tiles
6494 (name "crawl-tiles")
6496 (substitute-keyword-arguments
6497 (package-arguments crawl)
6498 ((#:make-flags flags)
6499 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6501 (string-append "PROPORTIONAL_FONT=" dejavu
6502 "/share/fonts/truetype/DejaVuSans.ttf")
6503 (string-append "MONOSPACED_FONT=" dejavu
6504 "/share/fonts/truetype/DejaVuSansMono.ttf")
6506 ;; Rename the executable to allow parallel installation with crawl.
6510 `(,@(package-inputs crawl)
6511 ("font-dejavu" ,font-dejavu)
6512 ("freetype6" ,freetype)
6516 ("sdl2-image" ,sdl2-image)
6517 ("sdl2-mixer" ,sdl2-mixer)))
6519 `(,@(package-native-inputs crawl)
6520 ("pngcrush" ,pngcrush)
6522 (synopsis "Graphical roguelike dungeon crawler game")))
6524 (define-public lugaru
6530 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6531 "lugaru-" version ".tar.xz"))
6534 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6535 (build-system cmake-build-system)
6538 (list "-DSYSTEM_INSTALL=ON")
6542 `(("pkg-config" ,pkg-config)))
6546 ("libjpeg" ,libjpeg-turbo)
6549 ("vorbis" ,libvorbis)
6551 (home-page "https://osslugaru.gitlab.io")
6552 (synopsis "Cross-platform third-person action game")
6553 (description "Lugaru is a third-person action game. The main character,
6554 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6555 In his quest to find those responsible for slaughtering his village, he uncovers
6556 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6557 and the starving wolves from a nearby den. Turner takes it upon himself to
6558 fight against their plot and save his fellow rabbits from slavery.")
6559 (license (list license:gpl2+ ; code
6562 license:cc-by-sa4.0))))
6564 (define-public 0ad-data
6567 (version "0.0.23b-alpha")
6571 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6572 version "-unix-data.tar.xz"))
6573 (file-name (string-append name "-" version ".tar.xz"))
6576 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6577 (modules '((guix build utils)))
6580 (for-each (lambda (name)
6581 (let* ((dir (string-append "binaries/data/mods/" name))
6582 (file (string-append dir "/" name ".zip"))
6583 (unzip #$(file-append unzip "/bin/unzip")))
6584 (invoke unzip "-d" dir file)
6585 (delete-file file)))
6588 (build-system trivial-build-system)
6589 (native-inputs `(("tar" ,tar)
6592 `(#:modules ((guix build utils))
6595 (use-modules (guix build utils))
6596 (let ((out (assoc-ref %outputs "out"))
6597 (source (assoc-ref %build-inputs "source"))
6598 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6599 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6600 (setenv "PATH" xz-path)
6602 (invoke tar "xvf" source "-C" out "--strip=3")))))
6603 (synopsis "Data files for 0ad")
6604 (description "0ad-data provides the data files required by the game 0ad.")
6605 (home-page "https://play0ad.com")
6606 (license (list (license:fsdg-compatible
6607 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6608 "Similar to the license of the Bitstream Vera fonts.")
6609 (license:fsdg-compatible
6610 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6620 (version "0.0.23b-alpha")
6624 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6625 version "-unix-build.tar.xz"))
6626 (file-name (string-append name "-" version ".tar.xz"))
6629 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6630 ;; A snippet here would cause a build failure because of timestamps
6631 ;; reset. See https://bugs.gnu.org/26734.
6633 `(("0ad-data" ,0ad-data)
6639 ("libsodium" ,libsodium)
6640 ("libvorbis" ,libvorbis)
6641 ("libxcursor" ,libxcursor)
6642 ("libxml2" ,libxml2)
6643 ("miniupnpc" ,miniupnpc)
6644 ("mozjs-38" ,mozjs-38)
6647 ("wxwidgets" ,wxwidgets)
6651 ("cmake" ,cmake-minimal)
6653 ("pkg-config" ,pkg-config)
6654 ("python-2" ,python-2)))
6655 (build-system gnu-build-system)
6657 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6659 (modify-phases %standard-phases
6660 (add-after 'unpack 'delete-bundles
6662 (delete-file-recursively "libraries/source/spidermonkey")
6664 (add-after 'unpack 'fix-x11-includes
6666 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6667 (("<Xlib.h>") "<X11/Xlib.h>"))
6668 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6669 (("<Xatom.h>") "<X11/Xatom.h>"))
6670 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6671 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6674 (lambda* (#:key inputs outputs #:allow-other-keys)
6675 (let* ((jobs (number->string (parallel-job-count)))
6676 (out (assoc-ref outputs "out"))
6677 (lib (string-append out "/lib"))
6678 (data (string-append out "/share/0ad")))
6679 (setenv "JOBS" (string-append "-j" jobs))
6681 (with-directory-excursion "build/workspaces"
6682 (invoke "./update-workspaces.sh"
6683 (string-append "--libdir=" lib)
6684 (string-append "--datadir=" data)
6685 ;; TODO: "--with-system-nvtt"
6686 "--with-system-mozjs38")))))
6689 (lambda* (#:key inputs outputs #:allow-other-keys)
6691 (let* ((out (assoc-ref outputs "out"))
6692 (bin (string-append out "/bin"))
6693 (lib (string-append out "/lib"))
6694 (data (string-append out "/share/0ad"))
6695 (applications (string-append out "/share/applications"))
6696 (pixmaps (string-append out "/share/pixmaps"))
6697 (0ad-data (assoc-ref inputs "0ad-data")))
6699 (copy-recursively "data" data)
6700 (for-each (lambda (file)
6701 (symlink (string-append 0ad-data "/" file)
6702 (string-append data "/" file)))
6703 '("config" "mods/mod" "mods/public" "tools"))
6705 (for-each (lambda (file)
6706 (install-file file lib))
6707 (find-files "system" "\\.so$"))
6709 (install-file "system/pyrogenesis" bin)
6710 (with-directory-excursion bin
6711 (symlink "pyrogenesis" "0ad"))
6713 (with-directory-excursion "../build/resources"
6714 (install-file "0ad.desktop" applications)
6715 (install-file "0ad.png" pixmaps))
6717 (add-after 'install 'check
6719 (with-directory-excursion "system"
6720 (invoke "./test")))))))
6721 (home-page "https://play0ad.com")
6722 (synopsis "3D real-time strategy game of ancient warfare")
6723 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6724 warfare. It's a historically-based war/economy game that allows players to
6725 relive or rewrite the history of twelve ancient civilizations, each depicted
6726 at their peak of economic growth and military prowess.
6728 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6729 (license (list license:bsd-2
6740 (define-public open-adventure
6742 (name "open-adventure")
6748 (url "https://gitlab.com/esr/open-adventure")
6750 (file-name (git-file-name name version))
6752 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6753 (build-system gnu-build-system)
6755 `(#:make-flags (list "CC=gcc")
6757 (modify-phases %standard-phases
6758 (delete 'configure) ;no configure script
6759 (add-before 'build 'use-echo
6761 (substitute* "tests/Makefile"
6762 (("/bin/echo") (which "echo")))
6764 (add-after 'build 'build-manpage
6766 ;; This target is missing a dependency
6767 (substitute* "Makefile"
6769 (string-append line " advent.adoc")))
6770 (invoke "make" ".adoc.6")))
6771 ;; There is no install target.
6773 (lambda* (#:key outputs #:allow-other-keys)
6774 (let* ((out (assoc-ref outputs "out"))
6775 (bin (string-append out "/bin"))
6776 (man (string-append out "/share/man/man6")))
6777 (install-file "advent" bin)
6778 (install-file "advent.6" man))
6781 `(("asciidoc" ,asciidoc)
6782 ("libedit" ,libedit)
6783 ("pkg-config" ,pkg-config)
6784 ("python" ,python-wrapper)
6785 ("python-pyyaml" ,python-pyyaml)))
6786 (home-page "https://gitlab.com/esr/open-adventure")
6787 (synopsis "Colossal Cave Adventure")
6789 "The original Colossal Cave Adventure from 1976 was the origin of all
6790 text adventures, dungeon-crawl (computer) games, and computer-hosted
6791 roleplaying games. This is a forward port of the last version released by
6792 Crowther & Woods, its original authors, in 1995. It has been known as
6793 ``adventure 2.5'' and ``430-point adventure''.")
6794 (license license:bsd-2)))
6796 (define-public open-adventure-2.5
6798 (inherit open-adventure)
6800 (properties `((superseded . ,open-adventure)))))
6802 (define-public tome4
6806 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6810 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6811 version ".tar.bz2"))
6813 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6814 (modules '((guix build utils)))
6817 (substitute* '("src/music.h" "src/tSDL.h")
6818 (("#elif defined(__FreeBSD__)" line)
6820 line " || defined(__GNUC__)")))
6821 (substitute* '("src/tgl.h")
6822 (("#include <GL/glext.h>") ""))
6824 (build-system gnu-build-system)
6826 `(("unzip" ,unzip)))
6828 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6830 ("premake4" ,premake4)
6832 ("vorbis" ,libvorbis)
6833 ("luajit" ,luajit)))
6836 (list (string-append "CC=" ,(cc-for-target))
6838 ;; XXX: Building in parallel occasionally causes this build failure:
6839 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6840 ;; No such file or directory
6841 #:parallel-build? #f
6842 #:phases (modify-phases %standard-phases
6846 (invoke "premake4" "gmake")
6848 (add-after 'set-paths 'set-sdl-paths
6849 (lambda* (#:key inputs #:allow-other-keys)
6851 (string-append (assoc-ref inputs "sdl-union")
6853 (or (getenv "CPATH") "")))
6856 ;; premake doesn't provide install target
6858 (lambda* (#:key inputs outputs #:allow-other-keys)
6859 (let* ((out (assoc-ref outputs "out"))
6860 (usr (string-append out "/usr"))
6861 (bin (string-append out "/bin"))
6862 (licenses (string-append out "/share/licenses"))
6863 (documents (string-append out "/share/doc"))
6864 (pixmaps (string-append out "/share/pixmaps"))
6865 (icon "te4-icon.png")
6866 (data (string-append out "/share/" ,name))
6867 (applications (string-append
6868 out "/share/applications"))
6869 (unzip (string-append
6870 (assoc-ref inputs "unzip") "/bin/unzip"))
6871 (wrapper (string-append bin "/" ,name)))
6876 "game/engines/te4-" ,version ".teae")
6878 "data/gfx/" icon) "-d" pixmaps)
6880 (install-file "t-engine" data)
6882 (with-output-to-file wrapper
6887 ;; No bootstrap code found,
6888 ;; defaulting to working directory
6891 "exec -a tome4 ./t-engine \"$@\"\n"))))
6892 (chmod wrapper #o555)
6894 (for-each (lambda (file)
6895 (install-file file licenses))
6896 '("COPYING" "COPYING-MEDIA"))
6898 (for-each (lambda (file)
6899 (install-file file documents))
6900 '("CONTRIBUTING" "CREDITS"))
6902 (copy-recursively "bootstrap" (string-append
6904 (copy-recursively "game" (string-append data "/game"))
6906 (mkdir-p applications)
6907 (make-desktop-entry-file
6908 (string-append applications "/" ,name ".desktop")
6913 #:categories '("Game" "RolePlaying")))
6915 (home-page "https://te4.org")
6916 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6917 combat and advanced character building. Play as one of many unique races and
6918 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6919 challenging battles, and developing characters with your own tailored mix of
6920 abilities and powers. With a modern graphical and customisable interface,
6921 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6922 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6923 (license license:gpl3+)))
6925 (define-public quakespasm
6932 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6935 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6938 #:make-flags '("CC=gcc"
6941 "USE_CODEC_MIKMOD=1"
6944 #:phases (modify-phases %standard-phases
6946 (add-after 'unpack 'fix-makefile-paths
6947 (lambda* (#:key outputs #:allow-other-keys)
6948 (let ((out (assoc-ref outputs "out")))
6949 (mkdir-p (string-append out "/bin"))
6950 (substitute* "Quake/Makefile"
6951 (("/usr/local/games")
6952 (string-append out "/bin")))
6954 (build-system gnu-build-system)
6955 (inputs `(("libmikmod" ,libmikmod)
6956 ("libvorbis" ,libvorbis)
6961 (synopsis "First person shooter engine for Quake 1")
6962 (description "Quakespasm is a modern engine for id software's Quake 1.
6963 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6964 some graphical niceities, and numerous bug-fixes and other improvements.")
6965 (home-page "http://quakespasm.sourceforge.net/")
6966 (license license:gpl2+)))
6968 (define-public vkquake
6970 (inherit quakespasm)
6977 (url "https://github.com/Novum/vkQuake")
6979 (file-name (git-file-name name version))
6981 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6984 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6985 "vulkan-loader") "/lib")))
6989 "USE_CODEC_MIKMOD=1"
6991 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6993 #:phases (modify-phases %standard-phases
6994 (add-after 'unpack 'patch-for-new-vulkan
6996 ;; Mimic upstream commit a869a22d9b51c68e for
6997 ;; compatibility with newer vulkan-headers.
6998 (substitute* "Quake/gl_rmisc.c"
6999 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7003 (add-after 'unpack 'fix-makefile-paths
7004 (lambda* (#:key outputs #:allow-other-keys)
7005 (let ((vulkan (assoc-ref %build-inputs
7007 (out (assoc-ref outputs "out")))
7008 (mkdir-p (string-append out "/bin"))
7009 (substitute* "Quake/Makefile" ((" /usr")
7010 (string-append " " out)))
7011 (substitute* "Quake/Makefile" (("/games")
7012 (string-append "/bin")))
7013 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7015 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7016 (package-arguments quakespasm))))
7017 (inputs `(("vulkan-headers" ,vulkan-headers)
7018 ("vulkan-loader" ,vulkan-loader)
7019 ,@(package-inputs quakespasm)))
7020 (description "vkquake is a modern engine for id software's Quake 1.
7021 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7022 some graphical niceities, and numerous bug-fixes and other improvements.")
7023 (home-page "https://github.com/Novum/vkQuake")))
7025 (define-public yamagi-quake2
7027 (name "yamagi-quake2")
7032 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7035 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7036 (build-system gnu-build-system)
7041 ;; link openAL instead of using dlopen at runtime
7042 "DLOPEN_OPENAL=\"no\""
7043 ;; an optional directory where it will look for quake2 data files
7044 ;; in addition to the current working directory
7045 "WITH_SYSTEMWIDE=yes"
7046 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7048 (modify-phases %standard-phases
7051 (lambda* (#:key outputs #:allow-other-keys)
7052 (let ((out (assoc-ref outputs "out")))
7053 (mkdir-p (string-append out "/lib"))
7054 (mkdir-p (string-append out "/bin"))
7055 ;; The yamagi-quake2 binary must be in the same directory
7056 ;; as it's engine libraries, but symlinking it to /bin is okay
7057 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7058 (copy-recursively "release"
7059 (string-append out "/lib/yamagi-quake2"))
7060 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7061 (string-append out "/bin/yamagi-quake2"))
7062 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7063 (string-append out "/bin/yamagi-q2ded"))))))))
7065 `(("pkg-config" ,pkg-config)))
7067 `(("curl" ,curl-minimal)
7068 ("libvorbis" ,libvorbis)
7073 (synopsis "First person shooter engine based on quake2")
7074 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7075 The main focus is an unchanged single player experience like back in 1997,
7076 thus the gameplay and the graphics are unaltered. However the user may use one
7077 of the unofficial retexturing packs. In comparison with the official client,
7078 over 1000 bugs were fixed and an extensive code audit done,
7079 making Yamagi Quake II one of the most solid Quake II implementations available.")
7080 (home-page "https://www.yamagi.org/quake2/")
7081 (license (list license:gpl2+ ; game and server
7082 (license:non-copyleft ; info-zip
7084 "See Info-Zip section.")
7085 license:public-domain)))) ; stb
7087 (define-public nudoku
7095 (url "https://github.com/jubalh/nudoku")
7097 (file-name (git-file-name name version))
7099 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7100 (build-system gnu-build-system)
7102 `(("autoconf" ,autoconf)
7103 ("automake" ,automake)
7104 ("gettext" ,gettext-minimal)
7105 ("pkg-config" ,pkg-config)))
7107 `(("ncurses" ,ncurses)))
7108 (home-page "https://jubalh.github.io/nudoku/")
7109 (synopsis "Sudoku for your terminal")
7110 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7111 (license license:gpl3+)))
7113 (define-public the-butterfly-effect
7115 (name "the-butterfly-effect")
7121 (url "https://github.com/the-butterfly-effect/tbe")
7122 (commit (string-append "v" version))))
7123 (file-name (git-file-name name version))
7126 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7127 (build-system gnu-build-system)
7130 (modify-phases %standard-phases
7132 ;; There is no "install" phase. By default, tbe is installed
7133 ;; in the build directory. Provide our own installation.
7135 (lambda* (#:key outputs #:allow-other-keys)
7136 (let* ((out (assoc-ref outputs "out"))
7137 (bin (string-append out "/bin"))
7138 (share (string-append out "/share")))
7139 (install-file "usr/games/tbe" bin)
7141 (copy-recursively "usr/share" share)
7143 ;; Test suite requires a running Xorg server. Even when
7144 ;; provided, it fails with "D-Bus library appears to be
7145 ;; incorrectly set up; failed to read machine uuid: Failed to
7146 ;; open "/etc/machine-id": No such file or directory" along
7147 ;; with multiple "QPainter:: ... Painter not active" warnings.
7150 `(("qtbase" ,qtbase)
7153 `(("cmake" ,cmake-minimal)
7154 ("gettext-minimal" ,gettext-minimal)
7155 ("qttools" ,qttools)))
7156 (synopsis "Realistic physics puzzle game")
7157 (description "The Butterfly Effect (tbe) is a game that uses
7158 realistic physics simulations to combine lots of simple mechanical
7159 elements to achieve a simple goal in the most complex way possible.")
7160 (home-page "http://the-butterfly-effect.org/")
7161 ;; Main license is GPL2-only. However, artwork is distributed
7162 ;; under various licenses, listed here.
7163 (license (list license:gpl2 license:public-domain license:expat
7164 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7166 (define-public pioneer
7169 (version "20210203")
7173 (url "https://github.com/pioneerspacesim/pioneer")
7175 (file-name (git-file-name name version))
7178 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7179 (build-system cmake-build-system)
7181 `(("pkg-config" ,pkg-config)))
7183 `(("assimp" ,assimp)
7185 ("freetype" ,freetype)
7189 ("libsigc++" ,libsigc++)
7190 ("libvorbis" ,libvorbis)
7191 ("lua" ,lua-5.2) ;not compatible with 5.3
7193 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7195 `(#:tests? #f ;tests are broken
7196 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7197 (string-append "-DPIONEER_DATA_DIR="
7198 %output "/share/games/pioneer"))))
7199 (home-page "https://pioneerspacesim.net")
7200 (synopsis "Game of lonely space adventure")
7202 "Pioneer is a space adventure game set in our galaxy at the turn of the
7203 31st century. The game is open-ended, and you are free to eke out whatever
7204 kind of space-faring existence you can think of. Look for fame or fortune by
7205 exploring the millions of star systems. Turn to a life of crime as a pirate,
7206 smuggler or bounty hunter. Forge and break alliances with the various
7207 factions fighting for power, freedom or self-determination. The universe is
7208 whatever you make of it.")
7209 (license license:gpl3)))
7211 (define-public badass
7212 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7216 (version (git-version "0.0" revision commit))
7220 (url "https://github.com/umayr/badass")
7222 (file-name (git-file-name name version))
7225 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7226 (build-system go-build-system)
7228 '(#:import-path "github.com/umayr/badass"))
7229 (synopsis "Hacking contribution graphs in git")
7231 "Badass generates false commits for a range of dates, essentially
7232 hacking the gamification of contribution graphs on platforms such as
7234 (home-page "https://github.com/umayr/badass")
7235 (license license:expat))))
7237 (define-public colobot
7240 (version "0.1.12-alpha")
7245 (url "https://github.com/colobot/colobot")
7246 (commit (string-append "colobot-gold-" version))
7247 (recursive? #t))) ;for "data/" subdir
7248 (file-name (git-file-name name version))
7251 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7252 (build-system cmake-build-system)
7254 `(#:tests? #f ;no test
7256 (modify-phases %standard-phases
7257 (add-after 'unpack 'make-git-checkout-writable
7259 (for-each make-file-writable (find-files "."))
7261 (add-after 'unpack 'fix-directories
7263 (substitute* "CMakeLists.txt"
7264 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7265 (string-append prefix "/bin"))
7266 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7267 (string-append prefix "/colobot")))
7269 (add-after 'fix-directories 'install-music
7270 ;; Retrieve and install music files.
7271 (lambda* (#:key inputs #:allow-other-keys)
7272 ;; Installation process tries to download music files using
7273 ;; "wget" if not already present. Since we are going another
7274 ;; route, skip "wget" command check.
7275 (substitute* "data/music/CMakeLists.txt"
7276 (("find_program\\(WGET wget\\)") ""))
7277 ;; Populate "music/" directory.
7278 (let ((data (assoc-ref inputs "colobot-music")))
7279 (invoke "tar" "-xvf" data "-Cdata/music"))
7285 (uri (string-append "https://colobot.info/files/music/"
7286 "colobot-music_ogg_" version ".tar.gz"))
7289 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7290 ("gettext" ,gettext-minimal)
7291 ("librsvg" ,librsvg)
7293 ("python" ,python-wrapper)))
7299 ("libsndfile" ,libsndfile)
7300 ("libvorbis" ,libvorbis)
7303 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7304 (synopsis "Educational programming strategy game")
7305 (description "Colobot: Gold Edition is a real-time strategy game, where
7306 you can program your units (bots) in a language called CBOT, which is similar
7307 to C++ and Java. Your mission is to find a new planet to live and survive.
7308 You can save humanity and get programming skills!")
7309 (home-page "https://colobot.info")
7310 (license license:gpl3+)))
7312 (define-public gzdoom
7320 (url "https://github.com/coelckers/gzdoom")
7321 (commit (string-append "g" version))))
7322 (file-name (git-file-name name version))
7324 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7325 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7326 "gzdoom-find-system-libgme.patch"))
7327 (modules '((guix build utils)))
7330 ;; Remove some bundled libraries. XXX There are more, but removing
7331 ;; them would require, at least, patching the build system.
7332 (with-directory-excursion "libraries"
7333 (delete-file-recursively "bzip2")
7334 (delete-file-recursively "game-music-emu")
7335 (delete-file-recursively "jpeg")
7336 (delete-file-recursively "zlib"))
7341 (let ((out (assoc-ref %outputs "out")))
7344 "-DCMAKE_CXX_FLAGS:="
7345 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7346 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7348 ;; The build requires some extra convincing not to use the bundled
7349 ;; libgme previously deleted in the soure snippet.
7350 "-DFORCE_INTERNAL_GME=OFF"
7352 ;; Link libraries at build time instead of loading them at run time.
7354 "-DDYN_FLUIDSYNTH=OFF"
7357 "-DDYN_SNDFILE=OFF"))
7359 (modify-phases %standard-phases
7360 (add-before 'configure 'fix-referenced-paths
7361 (lambda* (#:key inputs outputs #:allow-other-keys)
7362 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7363 (timidity++ (assoc-ref inputs "timidity++"))
7364 (out (assoc-ref outputs "out")))
7367 "src/CMakeLists.txt"
7368 (("COMMAND /bin/sh")
7369 (string-append "COMMAND " (which "sh"))))
7372 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7373 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7374 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7377 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7378 (("exename = \"timidity\"")
7379 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7381 (build-system cmake-build-system)
7382 (inputs `(("bzip2" ,bzip2)
7383 ("fluid-3" ,fluid-3)
7384 ("fluidsynth" ,fluidsynth)
7387 ("libjpeg" ,libjpeg-turbo)
7388 ("libsndfile" ,libsndfile)
7393 ("timidity++" ,timidity++)
7395 (native-inputs `(("pkg-config" ,pkg-config)
7397 (synopsis "Modern Doom 2 source port")
7398 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7399 renderer. It improves modding support with ZDoom's advanced mapping features
7400 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7401 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7402 (home-page "https://zdoom.org/index")
7403 ;; The source uses x86 assembly
7404 (supported-systems '("x86_64-linux" "i686-linux"))
7405 (license (list license:gpl3+ ; gzdoom game
7406 license:lgpl3+ ; gzdoom renderer
7407 license:expat ; gdtoa
7408 (license:non-copyleft ; modified dumb
7409 "file://dumb/licence.txt"
7410 "Dumb license, explicitly GPL compatible.")))))
7412 (define-public odamex
7420 "mirror://sourceforge/odamex/Odamex/" version "/"
7421 "odamex-src-" version ".tar.gz"))
7423 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7424 (build-system cmake-build-system)
7425 (arguments `(#:tests? #f)) ; no tests
7428 ("sdl-mixer" ,sdl-mixer)
7431 ("alsa-lib" ,alsa-lib)))
7432 (home-page "https://odamex.net/")
7433 (synopsis "Multiplayer Doom port")
7434 (description "Odamex is a modification of the Doom engine that
7435 allows players to easily join servers dedicated to playing Doom
7437 (license license:gpl2+)))
7439 (define-public chocolate-doom
7441 (name "chocolate-doom")
7445 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7452 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7453 (build-system gnu-build-system)
7454 (inputs `(("sdl2-net" ,sdl2-net)
7455 ("sdl2-mixer" , sdl2-mixer)
7458 `(("pkg-config" ,pkg-config)))
7459 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7462 "Chocolate Doom takes a different approach to other source ports. Its
7463 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7464 a conservative, historically accurate Doom source port, which is compatible
7465 with the thousands of mods and levels that were made before the Doom source
7466 code was released. Rather than flashy new graphics, Chocolate Doom's main
7467 features are its accurate reproduction of the game as it was played in the
7468 1990s. The project is developed around a carefully-considered philosophy that
7469 intentionally restricts which features may be added (and rejects any that
7471 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7472 (license license:gpl2)))
7474 (define-public crispy-doom
7476 (inherit chocolate-doom)
7477 (name "crispy-doom")
7482 (url "https://github.com/fabiangreffrath/crispy-doom")
7483 (commit (string-append "crispy-doom-" version))))
7484 (file-name (git-file-name name version))
7486 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7489 (package-native-inputs chocolate-doom)
7490 `(("automake" ,automake)
7491 ("autoreconf" ,autoconf))))
7494 (modify-phases %standard-phases
7496 ;; The bundled autogen.sh script unconditionally runs ./configure.
7497 (lambda _ (invoke "autoreconf" "-vif"))))))
7498 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7501 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7502 display resolution, removes the static limits of the Doom engine and offers
7503 further optional visual, tactical and physical enhancements while remaining
7504 entirely config file, savegame, netplay and demo compatible with the
7506 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7508 (define shlomif-cmake-modules
7511 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7512 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7513 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7515 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7517 (define-public rinutils
7524 (url "https://github.com/shlomif/rinutils")
7526 (file-name (git-file-name name version))
7529 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7532 ;; The following is only needed for tests.
7533 ("perl-file-find-object" ,perl-file-find-object)
7534 ("perl-test-differences" ,perl-test-differences)
7535 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7536 ("perl-io-all" ,perl-io-all)
7537 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7538 ("cmake-rules" ,shlomif-cmake-modules)
7539 ("pkg-config" ,pkg-config)))
7541 `(("cmocka" ,cmocka)
7542 ("perl-env-path" ,perl-env-path)
7543 ("perl-inline" ,perl-inline)
7544 ("perl-inline-c" ,perl-inline-c)
7545 ("perl-string-shellquote" ,perl-string-shellquote)
7546 ("perl-test-trailingspace" ,perl-test-trailingspace)
7547 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7548 ("perl-text-glob" ,perl-text-glob)
7549 ("perl-number-compare" ,perl-number-compare)
7550 ("perl-moo" ,perl-moo)))
7553 (modify-phases %standard-phases
7554 (add-after 'unpack 'fix-build-env
7555 (lambda* (#:key inputs #:allow-other-keys)
7556 (use-modules (guix build utils))
7557 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7558 (copy-file cmake-rules
7559 (string-append "cmake/"
7560 (strip-store-file-name cmake-rules)))
7564 (with-directory-excursion "../source"
7565 (setenv "FCS_TEST_BUILD" "1")
7566 (setenv "RINUTILS_TEST_BUILD" "1")
7567 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7568 ;; which requires tidy-all.
7569 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7570 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7571 (build-system cmake-build-system)
7572 (home-page "https://www.shlomifish.org/open-source/projects/")
7573 (synopsis "C11 / gnu11 utilities C library")
7574 (description "This package provides C11 / gnu11 utilities C library")
7575 (license license:expat)))
7577 (define-public fortune-mod
7579 (name "fortune-mod")
7585 (url "https://github.com/shlomif/fortune-mod")
7586 (commit (string-append "fortune-mod-" version))))
7587 (file-name (git-file-name name version))
7589 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7590 (build-system cmake-build-system)
7592 `(#:test-target "check"
7594 (modify-phases %standard-phases
7595 (add-after 'unpack 'fix-build-env
7596 (lambda* (#:key inputs #:allow-other-keys)
7597 (use-modules (guix build utils))
7598 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7599 (copy-file cmake-rules
7600 (string-append "fortune-mod/cmake/"
7601 (strip-store-file-name cmake-rules)))
7602 (chdir "fortune-mod")
7603 ;; TODO: Valgrind tests fail for some reason.
7604 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7605 (delete-file "tests/t/valgrind.t")
7607 (add-after 'install 'fix-install-directory
7608 (lambda* (#:key outputs #:allow-other-keys)
7609 ;; Move binary from "games/" to "bin/" and remove the latter. This
7610 ;; is easier than patching CMakeLists.txt since the tests hard-code
7611 ;; the location as well.
7612 (let* ((out (assoc-ref outputs "out"))
7613 (bin (string-append out "/bin"))
7614 (games (string-append out "/games")))
7615 (rename-file (string-append games "/fortune")
7616 (string-append bin "/fortune"))
7619 (inputs `(("recode" ,recode)))
7622 ;; The following is only needed for tests.
7623 ("perl-file-find-object" ,perl-file-find-object)
7624 ("perl-test-differences" ,perl-test-differences)
7625 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7626 ("perl-io-all" ,perl-io-all)
7627 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7628 ("cmake-rules" ,shlomif-cmake-modules)
7629 ("rinutils" ,rinutils)))
7630 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7631 (synopsis "The Fortune Cookie program from BSD games")
7632 (description "Fortune is a command-line utility which displays a random
7633 quotation from a collection of quotes.")
7634 (license license:bsd-4)))
7636 (define xonotic-data
7638 (name "xonotic-data")
7643 (uri (string-append "http://dl.xonotic.org/xonotic-"
7645 (file-name (string-append name "-" version ".zip"))
7648 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7649 (build-system trivial-build-system)
7651 `(("unzip" ,unzip)))
7653 `(#:modules ((guix build utils))
7656 (use-modules (guix build utils))
7657 (let* ((out (assoc-ref %outputs "out"))
7658 (xonotic (string-append out "/share/xonotic"))
7659 (source (assoc-ref %build-inputs "source"))
7660 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7661 (copy-file source (string-append ,name "-" ,version ".zip"))
7662 (invoke unzip (string-append ,name "-" ,version ".zip"))
7666 (copy-recursively "data"
7667 (string-append xonotic "/data"))
7668 (copy-recursively "server"
7669 (string-append xonotic "/server"))
7670 (install-file "key_0.d0pk" xonotic)))))
7671 (home-page "http://xonotic.org")
7672 (synopsis "Data files for Xonotic")
7674 "Xonotic-data provides the data files required by the game Xonotic.")
7675 (license (list license:gpl2+
7676 (license:x11-style "file://server/rcon.pl")))))
7678 (define-public xonotic
7685 (uri (string-append "http://dl.xonotic.org/xonotic-"
7686 version "-source.zip"))
7687 (file-name (string-append name "-" version ".zip"))
7690 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7691 (build-system gnu-build-system)
7693 `(#:configure-flags (list (string-append "--prefix="
7694 (assoc-ref %outputs "out"))
7695 "--disable-rijndael")
7697 (modify-phases %standard-phases
7698 (add-before 'configure 'make-darkplaces
7699 (lambda* (#:key outputs #:allow-other-keys)
7700 (let* ((out (assoc-ref outputs "out"))
7701 (sharedir (string-append out "/share/xonotic/")))
7702 (invoke "make" "-C" "source/darkplaces"
7703 (string-append "DP_FS_BASEDIR="
7705 "DP_LINK_TO_LIBJPEG=1"
7710 (invoke "make" "-C" "source/darkplaces"
7711 (string-append "DP_FS_BASEDIR="
7713 "DP_LINK_TO_LIBJPEG=1"
7718 (invoke "make" "-C" "source/darkplaces"
7719 (string-append "DP_FS_BASEDIR="
7721 "DP_LINK_TO_LIBJPEG=1"
7726 (add-before 'configure 'bootstrap
7728 (chdir "source/d0_blind_id")
7729 (invoke "sh" "autogen.sh")))
7730 (add-after 'build 'install-desktop-entry
7731 (lambda* (#:key outputs #:allow-other-keys)
7732 ;; Add .desktop files for the 2 variants and the symlink
7733 (let* ((output (assoc-ref outputs "out"))
7734 (apps (string-append output "/share/applications")))
7736 (with-output-to-file
7737 (string-append apps "/xonotic-glx.desktop")
7742 Comment=Xonotic glx~@
7743 Exec=~a/bin/xonotic-glx~@
7744 TryExec=~@*~a/bin/xonotic-glx~@
7749 (with-output-to-file
7750 (string-append apps "/xonotic-sdl.desktop")
7755 Comment=Xonotic sdl~@
7756 Exec=~a/bin/xonotic-sdl~@
7757 TryExec=~@*~a/bin/xonotic-sdl~@
7762 (with-output-to-file
7763 (string-append apps "/xonotic.desktop")
7769 Exec=~a/bin/xonotic-glx~@
7770 TryExec=~@*~a/bin/xonotic~@
7776 (add-after 'install-desktop-entry 'install-icons
7777 (lambda* (#:key outputs #:allow-other-keys)
7778 (let ((out (assoc-ref outputs "out")))
7779 (with-directory-excursion "../../misc/logos/icons_png/"
7782 (let* ((size (string-filter char-numeric? file))
7783 (icons (string-append out "/share/icons/hicolor/"
7784 size "x" size "/apps")))
7786 (copy-file file (string-append icons "/xonotic.png"))))
7787 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7788 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7789 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7790 (add-after 'install-icons 'install-binaries
7791 (lambda* (#:key outputs #:allow-other-keys)
7792 (let ((out (assoc-ref outputs "out")))
7793 (define (install src dst)
7794 (let ((dst (string-append out dst)))
7795 (mkdir-p (dirname dst))
7796 (copy-file src dst)))
7797 (mkdir-p (string-append out "/bin"))
7798 (install "../darkplaces/darkplaces-dedicated"
7799 "/bin/xonotic-dedicated")
7800 (install "../darkplaces/darkplaces-glx"
7802 (install "../darkplaces/darkplaces-sdl"
7804 ;; Provide a default xonotic executable, defaulting to SDL.
7805 (symlink (string-append out "/bin/xonotic-sdl")
7806 (string-append out "/bin/xonotic"))
7808 (add-after 'install-binaries 'install-data
7809 (lambda* (#:key outputs inputs #:allow-other-keys)
7810 (let* ((out (assoc-ref outputs "out"))
7811 (data (assoc-ref inputs "xonotic-data")))
7812 (symlink (string-append data "/share/xonotic")
7813 (string-append out "/share/xonotic"))
7815 (add-after 'install-binaries 'wrap-binaries
7816 (lambda* (#:key outputs inputs #:allow-other-keys)
7817 ;; Curl and libvorbis need to be wrapped so that we get
7818 ;; sound and networking.
7819 (let* ((out (assoc-ref outputs "out"))
7820 (bin (string-append out "/bin/xonotic"))
7821 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7822 (bin-glx (string-append out "/bin/xonotic-glx"))
7823 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7824 (curl (assoc-ref inputs "curl"))
7825 (vorbis (assoc-ref inputs "libvorbis")))
7827 `("LD_LIBRARY_PATH" ":" prefix
7828 (,(string-append curl "/lib:" vorbis "/lib"))))
7829 (wrap-program bin-sdl
7830 `("LD_LIBRARY_PATH" ":" prefix
7831 (,(string-append curl "/lib:" vorbis "/lib"))))
7832 (wrap-program bin-glx
7833 `("LD_LIBRARY_PATH" ":" prefix
7834 (,(string-append curl "/lib:" vorbis "/lib"))))
7835 (wrap-program bin-dedicated
7836 `("LD_LIBRARY_PATH" ":" prefix
7837 (,(string-append curl "/lib:" vorbis "/lib"))))
7840 `(("xonotic-data" ,xonotic-data)
7841 ("alsa-lib" ,alsa-lib)
7843 ("libjpeg" ,libjpeg-turbo)
7844 ("libmodplug" ,libmodplug)
7845 ("libvorbis" ,libvorbis)
7848 ("libxxf86dga" ,libxxf86dga)
7849 ("libxxf86vm" ,libxxf86vm)
7851 ("libxext" ,libxext)
7853 ("libxdmcp" ,libxdmcp)
7856 ("freetype" ,freetype)
7859 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7862 ("autoconf" ,autoconf)
7863 ("automake" ,automake)
7864 ("pkg-config" ,pkg-config)
7865 ("libtool" ,libtool)
7867 (home-page "https://xonotic.org")
7868 (synopsis "Fast-paced first-person shooter game")
7870 "Xonotic is a free, fast-paced first-person shooter.
7871 The project is geared towards providing addictive arena shooter
7872 gameplay which is all spawned and driven by the community itself.
7873 Xonotic is a direct successor of the Nexuiz project with years of
7874 development between them, and it aims to become the best possible
7875 open-source FPS of its kind.")
7876 (license (list license:gpl2+
7877 license:bsd-3 ; /source/d0_blind_id folder and others
7878 (license:x11-style "" "See file rcon.pl.")))))
7880 (define-public frotz
7886 (uri (list (string-append
7887 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7888 "frotz/frotz-" version ".tar.gz")
7890 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7891 "frotz/frotz-" version ".tar.gz")))
7894 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7895 (build-system gnu-build-system)
7897 `(#:tests? #f ; there are no tests
7899 (modify-phases %standard-phases
7901 (add-before 'build 'curses
7903 (substitute* "Makefile"
7904 (("lcurses") "lncurses"))
7907 (lambda* (#:key outputs #:allow-other-keys)
7908 (let* ((out (assoc-ref outputs "out"))
7909 (bin (string-append out "/bin"))
7910 (man (string-append out "/share/man/man6")))
7911 (install-file "frotz" bin)
7913 (install-file "doc/frotz.6" man)
7915 (inputs `(("libmodplug" ,libmodplug)
7916 ("libsamplerate" ,libsamplerate)
7917 ("libsndfile" ,libsndfile)
7918 ("libvorbis" ,libvorbis)
7919 ("ncurses" ,ncurses)))
7920 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7921 (description "Frotz is an interpreter for Infocom games and other Z-machine
7922 games in the text adventure/interactive fiction genre. This version of Frotz
7923 complies with standard 1.0 of Graham Nelson's specification. It plays all
7924 Z-code games V1-V8, including V6, with sound support through libao, and uses
7925 ncurses for text display.")
7926 (home-page "http://frotz.sourceforge.net")
7927 (license license:gpl2+)))
7929 (define-public frotz-dumb-terminal
7931 (name "frotz-dumb-terminal")
7935 (uri (list (string-append
7936 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7937 "frotz/frotz-" version ".tar.gz")
7939 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7940 "frotz/frotz-" version ".tar.gz")))
7943 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7944 (build-system gnu-build-system)
7946 `(#:tests? #f ; there are no tests
7948 (modify-phases %standard-phases
7952 (invoke "make" "dumb")))
7954 (lambda* (#:key outputs #:allow-other-keys)
7955 (let* ((out (assoc-ref outputs "out"))
7956 (bin (string-append out "/bin"))
7957 (man (string-append out "/share/man/man6")))
7958 (install-file "dfrotz" bin)
7960 (install-file "doc/dfrotz.6" man)
7962 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7963 (description "Frotz is an interpreter for Infocom games and
7964 other Z-machine games in the text adventure/interactive fiction genre.
7965 dfrotz is the dumb interface version. You get no screen control; everything
7966 is just printed to the terminal line by line. The terminal handles all the
7967 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7968 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7969 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7970 to play games on webpages. It can also be made into a chat bot.")
7971 (home-page "http://frotz.sourceforge.net")
7972 (license license:gpl2+)))
7974 (define-public frotz-sdl
7975 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7982 (url "https://gitlab.com/DavidGriffith/frotz")
7986 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7987 (file-name (git-file-name name version))))
7988 (build-system gnu-build-system)
7990 `(#:tests? #f ; there are no tests
7992 (modify-phases %standard-phases
7994 (add-before 'build 'patch-makefile
7996 (substitute* "Makefile"
7997 (("lcurses") "lncurses")
7998 (("^BUILD_DATE_TIME =.*$")
7999 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8003 (invoke "make" "sdl")))
8005 (lambda* (#:key outputs #:allow-other-keys)
8006 (let* ((out (assoc-ref outputs "out"))
8007 (bin (string-append out "/bin"))
8008 (man (string-append out "/share/man/man6")))
8009 (install-file "sfrotz" bin)
8011 (install-file "doc/sfrotz.6" man)
8014 `(("pkg-config" ,pkg-config)
8017 (inputs `(("sdl2" ,sdl2)
8018 ("sdl2-mixer" ,sdl2-mixer)
8019 ("libmodplug" ,libmodplug)
8020 ("libsamplerate" ,libsamplerate)
8021 ("libsndfile" ,libsndfile)
8022 ("libvorbis" ,libvorbis)
8023 ("ncurses" ,ncurses)
8024 ("freetype" ,freetype)
8025 ("libjpeg-turbo" ,libjpeg-turbo)))
8026 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8027 (description "Frotz is an interpreter for Infocom games and other Z-machine
8028 games in the text adventure/interactive fiction genre. This version of Frotz
8029 using SDL fully supports all these versions of the Z-Machine including the
8030 graphical version 6. Graphics and sound are created through the use of the SDL
8031 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8032 when packaged in Blorb container files or optionally from individual files.")
8033 (home-page "http://frotz.sourceforge.net")
8034 (license license:gpl2+))))
8036 (define-public frozen-bubble
8037 ;; Last official release is very outdated (2010). Use latest commit (2017).
8038 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8041 (name "frozen-bubble")
8042 (version (git-version "2.2.1" revision commit))
8047 (url "https://github.com/kthakore/frozen-bubble")
8049 (file-name (git-file-name name version))
8051 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8052 (build-system perl-build-system)
8055 (modify-phases %standard-phases
8056 ;; Build process needs to create files in the "server"
8058 (add-after 'unpack 'fix-permissions
8060 (for-each make-file-writable
8061 (find-files "server" "." #:directories? #t))))
8062 ;; By default, build stops at warnings.
8063 (add-after 'unpack 'prevent-build-error
8065 (substitute* "inc/My/Builder.pm"
8068 (add-after 'install 'install-desktop-file-and-icons
8069 (lambda* (#:key outputs #:allow-other-keys)
8070 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8071 (hicolor (string-append share "/icons/hicolor")))
8072 ;; Create desktop entry.
8073 (make-desktop-entry-file
8074 (string-append share "/applications/" ,name ".desktop")
8075 #:name "Frozen Bubble"
8076 #:comment "Frozen Bubble arcade game"
8079 #:categories '("Game" "ArcadeGame"))
8081 (with-directory-excursion "share/icons"
8084 (let* ((dim (string-append size "x" size))
8085 (dir (string-append hicolor "/" dim "/apps")))
8088 (string-append "frozen-bubble-icon-" dim ".png")
8089 (string-append dir "/frozen-bubble.png"))))
8090 '("16" "32" "48" "64"))))
8092 (add-after 'install 'wrap-perl-libs
8093 (lambda* (#:key outputs #:allow-other-keys)
8094 (let ((out (assoc-ref outputs "out"))
8095 (perl5lib (getenv "PERL5LIB")))
8096 (for-each (lambda (prog)
8097 (wrap-program (string-append out "/" prog)
8098 `("PERL5LIB" ":" prefix
8099 (,(string-append perl5lib ":" out
8100 "/lib/perl5/site_perl")))))
8101 (find-files "bin" ".")))
8104 `(("perl-alien-sdl" ,perl-alien-sdl)
8105 ("perl-capture-tiny" ,perl-capture-tiny)
8106 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8107 ("perl-module-build" ,perl-module-build)
8108 ("pkg-config" ,pkg-config)))
8111 ("perl-compress-bzip2" ,perl-compress-bzip2)
8112 ("perl-file-sharedir" ,perl-file-sharedir)
8113 ("perl-file-slurp" ,perl-file-slurp)
8114 ("perl-file-which" ,perl-file-which)
8115 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8116 ("perl-sdl" ,perl-sdl)
8117 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8118 (home-page "http://frozen-bubble.org/")
8119 (synopsis "Puzzle with bubbles")
8121 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8122 you attempt to shoot bubbles into groups of the same color to cause them to
8125 Players compete as penguins and must use the arrow keys to aim a colored
8126 bubble at groups of bubbles. The objective is to clear all the bubbles off
8127 the screen before a bubble passes below a line at the bottom.
8129 It features 100 single-player levels, a two-player mode, music and striking
8130 graphics. A level editor is also included to allow players to create and play
8132 (license license:gpl2))))
8134 (define-public libmanette
8140 (uri (string-append "mirror://gnome/sources/libmanette/"
8141 (version-major+minor version) "/"
8142 "libmanette-" version ".tar.xz"))
8145 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8146 (build-system meson-build-system)
8148 `(("glib" ,glib "bin") ; for glib-compile-resources
8149 ("gobject-introspection" ,gobject-introspection)
8150 ("pkg-config" ,pkg-config)
8153 `(("libevdev" ,libevdev)
8154 ("libgudev" ,libgudev)))
8155 (home-page "https://wiki.gnome.org/Apps/Games")
8156 (synopsis "Game controller library")
8157 (description "Libmanette is a small GObject library giving you simple
8158 access to game controllers. It supports the de-facto standard gamepads as
8159 defined by the W3C standard Gamepad specification or as implemented by the SDL
8161 (license license:lgpl2.1+)))
8163 (define-public quadrapassel
8165 (name "quadrapassel")
8169 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8170 (version-major+minor version) "/"
8171 "quadrapassel-" version ".tar.xz"))
8174 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8175 (build-system meson-build-system)
8179 (modify-phases %standard-phases
8180 (add-after 'unpack 'skip-gtk-update-icon-cache
8181 ;; Don't create 'icon-theme.cache'.
8183 (substitute* "build-aux/meson_post_install.py"
8184 (("gtk-update-icon-cache") (which "true")))
8187 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8188 ("gettext" ,gettext-minimal)
8189 ("glib" ,glib "bin") ;for glib-compile-resources
8190 ("itstool" ,itstool)
8191 ("libxml2" ,libxml2) ;for xmllint
8192 ("pkg-config" ,pkg-config)
8195 `(("clutter" ,clutter)
8196 ("clutter-gtk" ,clutter-gtk)
8199 ("libcanberra" ,libcanberra)
8200 ("libmanette" ,libmanette)
8201 ("librsvg" ,librsvg)))
8202 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8203 (synopsis "GNOME version of Tetris")
8204 (description "Quadrapassel comes from the classic falling-block game,
8205 Tetris. The goal of the game is to create complete horizontal lines of
8206 blocks, which will disappear. The blocks come in seven different shapes made
8207 from four blocks each: one straight, two L-shaped, one square, and two
8208 S-shaped. The blocks fall from the top center of the screen in a random
8209 order. You rotate the blocks and move them across the screen to drop them in
8210 complete lines. You score by dropping blocks fast and completing lines. As
8211 your score gets higher, you level up and the blocks fall faster.")
8212 (license license:gpl2+)))
8214 (define-public endless-sky
8216 (name "endless-sky")
8222 (url "https://github.com/endless-sky/endless-sky")
8223 (commit (string-append "v" version))))
8224 (file-name (git-file-name name version))
8226 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8227 (build-system scons-build-system)
8229 `(#:scons ,scons-python2
8230 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8231 #:tests? #f ; no tests
8233 (modify-phases %standard-phases
8234 (add-after 'unpack 'patch-resource-locations
8235 (lambda* (#:key outputs #:allow-other-keys)
8236 (substitute* "source/Files.cpp"
8238 (string-append (assoc-ref outputs "out") "/")))
8240 (add-after 'unpack 'patch-scons
8242 (substitute* "SConstruct"
8243 ;; Keep environmental variables
8244 (("Environment\\(\\)")
8245 "Environment(ENV = os.environ)")
8246 ;; Install into %out/bin
8247 (("games\"") "bin\""))
8251 ("libjpeg" ,libjpeg-turbo)
8256 (home-page "https://endless-sky.github.io/")
8257 (synopsis "2D space trading and combat game")
8258 (description "Endless Sky is a 2D space trading and combat game. Explore
8259 other star systems. Earn money by trading, carrying passengers, or completing
8260 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8261 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8262 leave human space behind and hope to find friendly aliens whose culture is more
8263 civilized than your own.")
8264 (license (list license:gpl3+
8267 license:public-domain))))
8269 (define-public stepmania
8272 (version "5.1.0-b2")
8277 (url "https://github.com/stepmania/stepmania")
8278 (commit (string-append "v" version))))
8279 (file-name (git-file-name name version))
8282 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8283 (modules '((guix build utils)))
8286 ;; Remove song files, which are licensed under a non-commercial
8287 ;; clause, and a course pointing to them.
8288 (for-each delete-file-recursively
8289 '("Songs/StepMania 5/Goin' Under"
8290 "Songs/StepMania 5/MechaTribe Assault"
8291 "Songs/StepMania 5/Springtime"))
8292 (for-each delete-file '("Courses/Default/Jupiter.crs"
8293 "Courses/Default/Jupiter.png"))
8295 (substitute* "extern/CMakeLists.txt"
8296 (("include\\(CMakeProject-png.cmake\\)") ""))
8297 (delete-file-recursively "extern/libpng")
8299 (build-system cmake-build-system)
8301 `(#:tests? #f ;FIXME: couldn't find how to run tests
8302 #:build-type "Release"
8303 #:out-of-source? #f ;for the 'install-desktop' phase
8305 (list "-DWITH_SYSTEM_FFMPEG=1"
8306 ;; SSE instructions are available on Intel systems only.
8307 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8311 '("-DWITH_SSE2=NO"))
8312 ;; Configuration cannot find GTK2 without the two following
8314 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8315 (assoc-ref %build-inputs "gtk+")
8316 "/lib/gtk-2.0/include")
8317 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8318 (assoc-ref %build-inputs "glib")
8319 "/lib/glib-2.0/include"))
8321 (modify-phases %standard-phases
8322 (add-after 'unpack 'ensure-application-files-can-be-found
8323 (lambda* (#:key outputs #:allow-other-keys)
8324 (let ((out (assoc-ref outputs "out")))
8325 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8326 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8327 (string-append "\"" out
8328 "/share/stepmania/GtkModule.so\"")))
8329 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8330 (("Root = sDirOfExecutable")
8331 (string-append "Root = \"" out "/share/stepmania/\""))
8332 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8333 (string-append "\"" out "/share/stepmania/" dir "\"")))
8334 (substitute* "src/RageFileManager.cpp"
8335 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8336 (string-append "\"" out "/share/stepmania/\""))))
8338 (add-after 'unpack 'fix-install-subdir
8339 ;; Installation would be done in "%out/stepmania-X.Y", but we
8340 ;; prefer the more common layout "%out/share/stepmania".
8342 (substitute* "src/CMakeLists.txt"
8343 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8345 (add-after 'unpack 'unbundle-libpng
8346 (lambda* (#:key inputs #:allow-other-keys)
8347 (substitute* "src/CMakeLists.txt"
8348 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8349 (string-append (assoc-ref inputs "libpng") "/include")))
8351 (add-after 'install 'install-executable
8352 (lambda* (#:key outputs #:allow-other-keys)
8353 (let* ((out (assoc-ref outputs "out"))
8354 (bin (string-append out "/bin"))
8355 (exe (string-append out "/share/stepmania/stepmania")))
8357 (symlink exe (string-append bin "/stepmania"))
8359 (add-after 'install-executable 'install-desktop
8360 (lambda* (#:key outputs #:allow-other-keys)
8361 (let* ((out (assoc-ref outputs "out"))
8362 (share (string-append out "/share"))
8363 (applications (string-append share "/applications"))
8364 (icons (string-append share "/icons")))
8365 (install-file "stepmania.desktop" applications)
8367 (copy-recursively "icons" icons)
8369 ;; Move documentation in a more usual place, i.e.,
8370 ;; "%out/share/doc/stepmania/".
8371 (add-after 'install-desktop 'install-doc
8372 (lambda* (#:key outputs #:allow-other-keys)
8373 (let* ((out (assoc-ref outputs "out"))
8374 (share (string-append out "/share")))
8375 (with-directory-excursion share
8377 (symlink "../stepmania/Docs" "doc/stepmania"))
8380 `(("pkg-config" ,pkg-config)
8383 `(("alsa-lib" ,alsa-lib)
8384 ;; Per upstream, StepMania is only guaranteed to work with a very
8385 ;; specific FFmpeg version, which is included in the repository as
8386 ;; a Git submodule. This particular version requirement usually
8387 ;; changes every few years.
8388 ("ffmpeg" ,ffmpeg-for-stepmania)
8392 ("jsoncpp" ,jsoncpp)
8394 ("libjpeg" ,libjpeg-turbo)
8398 ("libvorbis" ,libvorbis)
8399 ("libxinerama" ,libxinerama)
8400 ("libxrandr" ,libxrandr)
8403 ("pulseaudio" ,pulseaudio)
8407 (synopsis "Advanced rhythm game designed for both home and arcade use")
8408 (description "StepMania is a dance and rhythm game. It features 3D
8409 graphics, keyboard and dance pad support, and an editor for creating your own
8412 This package provides the core application, but no song is shipped. You need
8413 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8414 (home-page "https://www.stepmania.com")
8415 (license license:expat)))
8425 (url "https://github.com/fmang/oshu")
8427 (file-name (git-file-name name version))
8430 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8431 (build-system cmake-build-system)
8434 (modify-phases %standard-phases
8435 (add-before 'check 'pre-check
8436 ;; `make test' doesn't actually build the test executable
8437 (lambda _ (invoke "make" "zerotokei"))))))
8439 `(("pkg-config" ,pkg-config)))
8445 ("sdl2-image" ,sdl2-image)))
8446 (home-page "https://github.com/fmang/oshu/")
8447 (synopsis "Rhythm game in which you click on circles")
8448 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8449 which is played by pressing buttons and following along sliders as they appear
8450 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8452 This package provides the core application, but no beatmaps. You need to
8453 download and unpack them separately.")
8454 (license license:gpl3+)))
8456 (define-public btanks
8459 (version "0.9.8083")
8463 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8464 "btanks-" version ".tar.bz2"))
8467 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8468 (build-system scons-build-system)
8470 `(#:tests? #f ; there are none
8471 #:scons ,scons-python2
8472 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8474 (modify-phases %standard-phases
8475 (add-after 'unpack 'replace-removed-scons-syntax
8477 (substitute* "SConstruct"
8478 (("Options") "Variables")
8479 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8480 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8482 (add-after 'set-paths 'set-sdl-paths
8483 (lambda* (#:key inputs #:allow-other-keys)
8485 (string-append (assoc-ref inputs "sdl")
8487 (or (getenv "CPATH") "")))
8489 (add-after 'unpack 'fix-compilation-errors
8491 (substitute* "mrt/base_file.h"
8492 (("#include <string>" m)
8493 (string-append m "\n#include <sys/types.h>")))
8494 (substitute* '("engine/sl08/sl08.h"
8495 "engine/sl08/sl08.py")
8496 (("signal = NULL") "signal = 0")
8497 (("object\\(NULL\\)") "object(0)")
8498 (("func\\(NULL\\)") "func(0)")
8499 ((" connect\\(signal_ref\\)")
8500 " this->connect(signal_ref)"))
8501 (substitute* "math/range_list.h"
8502 ((" lower_bound\\(value\\)")
8503 " this->lower_bound(value)")
8506 (substitute* "clunk/source.cpp"
8507 (("using namespace clunk" m)
8508 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8510 (add-after 'unpack 'find-lua
8512 (substitute* "engine/SConscript"
8513 (("lua5.1") "lua-5.1")
8514 (("bt_libs.append\\(lua\\)")
8515 "bt_libs.append(\"lua\")"))
8520 ("libsmpeg" ,libsmpeg-with-sdl1)
8521 ("libvorbis" ,libvorbis)
8523 ("sdl" ,(sdl-union (list sdl
8529 `(("pkg-config" ,pkg-config)
8531 (home-page "http://btanks.sourceforge.net")
8532 (synopsis "Multiplayer tank battle game")
8533 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8534 game, where you can choose one of three vehicles and eliminate your enemy
8535 using the whole arsenal of weapons. It has original cartoon-like graphics and
8536 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8538 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8539 ;; released under GPLv2 or later. It comes with extra exceptions for the
8541 (license (list license:gpl2+ license:lgpl2.1+))))
8543 (define-public slimevolley
8545 (name "slimevolley")
8550 (uri (string-append "https://download.tuxfamily.org/slime/"
8551 "slimevolley_" version ".tar.gz"))
8553 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8554 (build-system cmake-build-system)
8556 `(#:tests? #f ;no test
8557 ;; Work around build failure: "error adding symbols: DSO
8558 ;; missing from command line".
8559 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8561 `(("gettext" ,gettext-minimal)))
8563 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8564 (home-page "https://slime.tuxfamily.org/")
8565 (synopsis "Unrealistic 2D volleyball simulation")
8567 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8568 the spirit of some Java games of the same name.
8570 Two teams, 1-3 players each, try to be the first to get 10 points.
8571 This happens when the one ball touches the floor on the other side of
8572 the net. There can be 1 to 8 balls in game. Once one ball touches
8573 the ground, the set ends and all balls are served again.")
8574 (license license:gpl3+)))
8576 (define-public slingshot
8584 (url "https://github.com/ryanakca/slingshot")
8586 (file-name (git-file-name name version))
8589 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8590 (build-system python-build-system)
8592 `(#:python ,python-2))
8594 `(("python-pygame" ,python2-pygame)))
8595 (home-page "https://github.com/ryanakca/slingshot")
8596 (synopsis "Simple 2D shooting strategy game set in space")
8597 (description "Slingshot is a two-dimensional strategy game where two
8598 players attempt to shoot one another through a section of space populated by
8599 planets. The main feature of the game is that the shots, once fired, are
8600 affected by the gravity of the planets.")
8601 (license license:gpl2+)))
8603 (define-public 4dtris
8610 (uri (string-append "https://launchpad.net/4dtris/"
8611 (version-major+minor version)
8612 "/" version "/+download/4dtris_"
8613 version ".orig.tar.gz"))
8616 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8617 (build-system gnu-build-system)
8620 (modify-phases %standard-phases
8621 (add-after 'unpack 'fix-install-directories
8622 (lambda* (#:key outputs #:allow-other-keys)
8623 (let ((out (assoc-ref outputs "out")))
8624 (substitute* "Makefile.in"
8625 (("bindir = /usr/games")
8626 (string-append "bindir = " out "/bin"))
8627 (("/usr/share/applications")
8628 (string-append out "/share/applications"))
8629 (("/usr/share/games/4dtris")
8630 (string-append out "/share/4dtris"))))
8632 (add-after 'set-paths 'set-sdl-paths
8633 (lambda* (#:key inputs #:allow-other-keys)
8635 (string-append (assoc-ref inputs "sdl")
8637 (or (getenv "CPATH") "")))
8640 `(("fontconfig" ,fontconfig)
8641 ("freeglut" ,freeglut)
8642 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8643 (home-page "https://launchpad.net/4dtris/")
8644 (synopsis "4D Tetris")
8645 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8646 game field is extended to 4D space, which has to filled up by the gamer with
8648 (license license:gpl3)))
8650 (define-public arx-libertatis
8652 (name "arx-libertatis")
8657 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8661 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8662 (build-system cmake-build-system)
8663 (outputs '("out" "installer"))
8665 '(#:tests? #f ; No tests.
8667 (modify-phases %standard-phases
8668 (add-after 'unpack 'fix-install-helper-paths
8669 (lambda* (#:key inputs #:allow-other-keys)
8670 (let ((p7zip (assoc-ref inputs "p7zip"))
8671 (innoextract (assoc-ref inputs "innoextract"))
8672 (wget (assoc-ref inputs "wget"))
8673 (zenity (assoc-ref inputs "zenity")))
8674 (substitute* "scripts/arx-install-data"
8675 (("have innoextract")
8676 (string-append "have " innoextract "/bin/innoextract"))
8677 (("then innoextract")
8678 (string-append "then " innoextract "/bin/innoextract"))
8679 (("else innoextract")
8680 (string-append "else " innoextract "/bin/innoextract"))
8681 (("for _extract_zip_sz in 7za 7z")
8682 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8683 (("else if have 7z")
8684 (string-append "else if have " p7zip "/bin/7za"))
8686 (string-append p7zip "/bin/7z x -tiso"))
8688 (string-append "if have " wget "/bin/wget"))
8690 (string-append wget "/bin/wget -O"))
8691 (("for backend in \\$preferred zenity")
8692 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8693 (("zenity +--title")
8694 (string-append zenity "/bin/zenity --title"))
8696 (string-append zenity "/bin/zenity)"))))
8698 (add-after 'install 'move-installer
8699 (lambda* (#:key outputs #:allow-other-keys)
8700 (let ((out (assoc-ref outputs "out"))
8701 (installer (assoc-ref outputs "installer")))
8702 (mkdir-p (string-append installer "/bin"))
8703 (rename-file (string-append out "/bin/arx-install-data")
8704 (string-append installer "/bin/arx-install-data"))))))))
8706 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8707 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8713 ("freetype" ,freetype)
8714 ;; The following are only needed by the arx-install-data script.
8715 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8716 ("zenity" ,zenity) ; GUI for install-helper.
8717 ("wget" ,wget) ; Used by the install-helper to download the patch.
8718 ;; The install-helper needs it to extract the patch.
8719 ("innoextract" ,innoextract)))
8720 (home-page "https://arx-libertatis.org/")
8721 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8722 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8723 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8724 This port however does not include the game data, so you need to obtain a copy
8725 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8726 features crafting, melee and ranged combat, as well as a unique casting system
8727 where the player draws runes in real time to effect the desired spell.")
8728 (license license:gpl3+)))
8730 (define-public edgar
8738 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8739 version "/edgar-" version "-1.tar.gz"))
8741 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8742 (build-system gnu-build-system)
8743 (arguments '(#:tests? #f ; there are no tests
8746 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8747 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8749 (modify-phases %standard-phases
8751 (add-before 'build 'fix-env
8752 (lambda* (#:key inputs #:allow-other-keys)
8754 (string-append (assoc-ref inputs "sdl2-union")
8756 (or (getenv "CPATH") "")))
8759 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8762 `(("pkg-config" ,pkg-config)
8763 ("autoconf" ,autoconf)
8764 ("automake" ,automake)
8765 ("gnu-gettext" ,gettext-minimal)
8766 ("libtool" ,libtool)
8768 (synopsis "2d action platformer game")
8769 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8770 When Edgar's father fails to return home after venturing out one dark and stormy night,
8771 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8772 a fortress beyond the forbidden swamp.")
8773 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8774 (license license:gpl2+)))
8776 (define-public openclonk
8783 "https://www.openclonk.org/builds/release/" version "/"
8784 "openclonk-" version "-src.tar.bz2"))
8787 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8788 (build-system cmake-build-system)
8790 `(#:configure-flags '("-DAudio_TK=OpenAL")
8791 #:test-target "tests"
8793 (modify-phases %standard-phases
8794 (add-after 'unpack 'prepare-gmock
8795 (lambda* (#:key inputs #:allow-other-keys)
8797 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8798 (substitute* "tests/CMakeLists.txt"
8800 (string-append (getcwd) "/gmock/googlemock"))
8802 (string-append (getcwd) "/gmock/googletest"))
8803 (("PATH_SUFFIXES \"src\" \"gtest\"")
8804 "PATH_SUFFIXES \"src\""))
8806 (add-after 'unpack 'adjust-backward-cpp-includes
8808 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8809 ;; that includes external libraries such as libdl from glibc.
8810 ;; By default, CMake interface includes are treated as "system
8811 ;; headers", and GCC behaves poorly when glibc is passed as a
8812 ;; system header (causing #include_next failures).
8814 ;; Here we prevent targets that consume the Backward::Backward
8815 ;; interface from treating it as "system includes".
8816 (substitute* "CMakeLists.txt"
8817 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8818 (string-append "set_property(TARGET " target " PROPERTY "
8819 "NO_SYSTEM_FROM_IMPORTED true)\n"
8822 (add-after 'unpack 'add-libiberty
8823 ;; Build fails upon linking executables without this.
8825 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8826 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8827 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8829 (add-after 'add-libiberty 'lax-freealut-requirement
8830 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8831 ;; it as 1.0.1. Force minimal version.
8833 (substitute* "cmake/FindAudio.cmake"
8834 (("freealut>=1.1.0") "freealut>=1.0.1"))
8836 (add-after 'lax-freealut-requirement 'fix-directories
8837 ;; Prefer "$out/share/openclonk" over
8838 ;; "$out/share/games/openclonk". Also install "openclonk"
8839 ;; binary in "bin/", not "games/".
8841 (substitute* "CMakeLists.txt"
8842 (("share/games/openclonk") "share/openclonk")
8843 (("TARGETS openclonk DESTINATION games")
8844 "TARGETS openclonk DESTINATION bin"))
8847 `(("googlemock" ,(package-source googletest))
8848 ("googletest" ,googletest)
8849 ("pkg-config" ,pkg-config)))
8851 `(("freealut" ,freealut)
8852 ("freetype" ,freetype)
8854 ("libiberty" ,libiberty)
8855 ("libjpeg" ,libjpeg-turbo)
8858 ("libvorbis" ,libvorbis)
8859 ("libxrandr" ,libxrandr)
8861 ("miniupnpc" ,miniupnpc)
8864 ("readline" ,readline)
8866 ("tinyxml" ,tinyxml)
8868 (home-page "https://www.openclonk.org/")
8870 "Multiplayer action game where you control small and nimble humanoids")
8871 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8872 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8873 antfarm-style landscape, the player controls a crew of Clonks, small but
8874 robust humanoid beings. The game encourages free play but the normal goal is
8875 to either exploit valuable resources from the earth by building a mine or
8876 fight each other on an arena-like map.")
8877 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8878 (license (list license:isc license:cc-by3.0))))
8880 (define-public flare-engine
8882 (name "flare-engine")
8887 (url "https://github.com/flareteam/flare-engine")
8888 (commit (string-append "v" version))))
8889 (file-name (git-file-name name version))
8892 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8893 (build-system cmake-build-system)
8895 `(#:tests? #f ;no test
8896 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8898 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8899 ("python" ,python-wrapper)
8900 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8901 (home-page "http://www.flarerpg.org/")
8902 (synopsis "Action Roleplaying Engine")
8903 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8904 game engine built to handle a very specific kind of game: single-player 2D
8906 (license license:gpl3+)))
8908 (define-public flare-game
8915 (url "https://github.com/flareteam/flare-game")
8916 (commit (string-append "v" version))))
8917 (file-name (git-file-name name version))
8920 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8921 (build-system cmake-build-system)
8923 `(#:tests? #f ;no test
8924 #:configure-flags '("-DDATADIR=share/flare")
8926 (modify-phases %standard-phases
8927 ;; Flare expects the mods to be located in the same folder.
8928 ;; Yet, "default" mod is in the engine, whereas the others
8929 ;; are in the current package. Merge everything here with
8931 (add-after 'install 'add-default-mod
8932 (lambda* (#:key inputs outputs #:allow-other-keys)
8933 (let* ((out (assoc-ref outputs "out"))
8934 (mods (string-append out "/share/flare/mods")))
8935 (with-directory-excursion mods
8936 (symlink (string-append (assoc-ref inputs "flare-engine")
8937 "/share/flare/mods/default")
8940 (add-after 'install 'install-executable
8941 ;; The package only provides assets for the game, the
8942 ;; executable coming from "flare-engine". Since more than
8943 ;; one game may use the engine, we create a new executable,
8944 ;; "flare-game", which launches the engine with appropriate
8946 (lambda* (#:key inputs outputs #:allow-other-keys)
8947 (let* ((out (assoc-ref outputs "out"))
8948 (bash (string-append (assoc-ref inputs "bash")
8950 (flare (string-append (assoc-ref inputs "flare-engine")
8952 (script (string-append out "/bin/flare-game")))
8953 (mkdir-p (dirname script))
8954 (call-with-output-file script
8958 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8962 (chmod script #o755))
8965 `(("flare-engine" ,flare-engine)))
8966 (home-page "http://www.flarerpg.org/")
8967 (synopsis "Fantasy action RPG using the FLARE engine")
8968 (description "Flare is a single-player 2D action RPG with
8969 fast-paced action and a dark fantasy style.")
8970 (license license:cc-by-sa3.0)))
8972 (define-public meritous
8979 (url "https://gitlab.com/meritous/meritous.git")
8980 (commit (string-append "v" version))))
8981 (file-name (git-file-name name version))
8984 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8985 (build-system gnu-build-system)
8987 `(#:tests? #f ;no test
8990 (string-append "prefix=" (assoc-ref %outputs "out")))
8992 (modify-phases %standard-phases
8994 (add-after 'unpack 'fix-sdl-path
8995 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8996 ;; directory, not SDL-union provided as an input to the package.
8997 ;; We force the latter with "--prefix=" option.
8998 (lambda* (#:key inputs #:allow-other-keys)
8999 (substitute* "Makefile"
9000 (("sdl-config" command)
9001 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9003 (add-after 'unpack 'fix-crash
9004 ;; XXX: Songs are not present in the repository, due to licensing
9005 ;; issues. Yet, the game tries to load them, and, since it cannot
9006 ;; find them, crashes. Users cannot add them back, the store being
9007 ;; read-only, so we turn off background music altogether.
9009 (substitute* "src/audio.c"
9010 (("PlayBackgroundMusic\\(new_track\\);" all)
9011 (string-append "// " all)))
9014 `(("intltool" ,intltool)))
9016 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9018 (home-page "https://gitlab.com/meritous/meritous")
9019 (synopsis "Action-adventure dungeon crawl game")
9020 (description "Far below the surface of the planet is a place of limitless
9021 power. Those that seek to control such a utopia will soon bring an end to
9022 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9023 journeys into the hallowed Orcus Dome in search of answers.
9025 Meritous is a action-adventure game with simple controls but a challenge to
9026 find a balance of power versus recovery time during real-time battles. Set in
9027 a procedurally generated world, the player can explore thousands of rooms in
9028 search of powerful artifacts, tools to help them, and to eventually free the
9029 Orcus Dome from evil.")
9030 (license license:gpl3+)))
9032 (define-public marble-marcher
9033 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9036 (name "marble-marcher")
9037 (version (git-version "0" revision commit))
9041 (url "https://github.com/HackerPoet/MarbleMarcher")
9043 (file-name (git-file-name name version))
9046 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9047 (build-system cmake-build-system)
9049 `(#:tests? #f ; there are none
9051 (modify-phases %standard-phases
9052 (add-after 'unpack 'embed-asset-directory
9053 (lambda* (#:key outputs #:allow-other-keys)
9054 (let ((assets (string-append (assoc-ref outputs "out")
9055 "/share/marble-marcher/assets/")))
9056 ;; Some of the files we're patching are
9057 ;; ISO-8859-1-encoded, so choose it as the default
9058 ;; encoding so the byte encoding is preserved.
9059 (with-fluids ((%default-port-encoding #f))
9060 (substitute* "src/Resource.rc"
9061 (("../assets/icon.ico")
9062 (string-append assets "icon.ico")))
9063 (substitute* "src/Res.h"
9064 (("assets/") assets))))
9067 (lambda* (#:key outputs #:allow-other-keys)
9068 (let* ((out (assoc-ref outputs "out"))
9069 (assets (string-append out "/share/marble-marcher/assets"))
9070 (bin (string-append out "/bin/")))
9073 (copy-recursively "../source/assets" assets)
9074 (install-file "MarbleMarcher" bin))
9081 `(("pkg-config" ,pkg-config)))
9082 (home-page "https://codeparade.itch.io/marblemarcher")
9083 (synopsis "Guide a marble across fractal landscapes")
9084 (description "Marble Marcher is a video game that uses a fractal physics
9085 engine and fully procedural rendering to produce beautiful and unique
9086 gameplay. The game is played on the surface of evolving fractals. The goal
9087 of the game is to get your marble to the flag as quickly as possible. But be
9088 careful not to fall off the level or get crushed by the fractal! There are 24
9090 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9091 (license (list license:gpl2+
9093 license:cc-by-sa3.0)))))
9095 ;; This must be updated together with flightgear.
9099 (version "2018.3.5")
9103 (uri (string-append "mirror://sourceforge/flightgear/release-"
9104 (version-major+minor version) "/"
9105 "simgear-" version ".tar.bz2"))
9107 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9108 (build-system cmake-build-system)
9111 (modify-phases %standard-phases
9114 ;; Skip tests that require internet access.
9115 (invoke "ctest" "-E" "(http|dns)"))))))
9117 `(("boost" ,boost-for-mysql) ; fails with 1.69
9122 ("openscenegraph" ,openscenegraph-3.4)
9124 (home-page "https://home.flightgear.org/")
9125 (synopsis "Libraries for 3D simulations and games")
9126 (description "SimGear is a set of libraries designed to be used as
9127 building blocks for quickly assembling 3D simulations, games, and
9128 visualization applications. SimGear is developed by the FlightGear project
9129 and also provides the base for the FlightGear Flight Simulator.")
9130 (license license:lgpl2.0+)))
9132 (define-public flightgear
9135 (version (package-version simgear))
9139 (uri (string-append "mirror://sourceforge/flightgear/release-"
9140 (version-major+minor version) "/"
9141 "flightgear-" version ".tar.bz2"))
9143 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9144 (modules '((guix build utils)))
9147 ;; There are some bundled libraries.
9148 (for-each delete-file-recursively
9149 '("3rdparty/sqlite3/"))
9151 (build-system cmake-build-system)
9154 (list "-DSYSTEM_SQLITE=ON"
9155 (string-append "-DFG_DATA_DIR="
9156 (assoc-ref %outputs "out")
9157 "/share/flightgear"))
9158 ;; TODO: test cannot be run because the "run_test_suite" executable
9159 ;; does not seem to be built.
9162 (modify-phases %standard-phases
9163 (add-after 'install 'wrap-executable
9164 (lambda* (#:key inputs outputs #:allow-other-keys)
9165 (let ((out (assoc-ref outputs "out")))
9166 (wrap-program (string-append out "/bin/fgfs")
9167 `("QT_PLUGIN_PATH" ":" prefix
9168 ,(map (lambda (label)
9169 (string-append (assoc-ref inputs label)
9170 "/lib/qt5/plugins"))
9171 '("qtbase" "qtdeclarative" "qtsvg")))
9172 `("QML2_IMPORT_PATH" ":" prefix
9173 ,(map (lambda (label)
9174 (string-append (assoc-ref inputs label)
9176 '("qtdeclarative" "qtsvg"))))
9178 (add-after 'install 'install-data
9179 (lambda* (#:key inputs outputs #:allow-other-keys)
9180 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9182 (with-directory-excursion share
9183 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9184 "--strip-components=1")))
9187 `(("boost" ,boost-for-mysql) ; same as simgear
9190 ("freeglut" ,freeglut)
9191 ("freetype" ,freetype)
9195 ("openscenegraph" ,openscenegraph-3.4)
9198 ("qtdeclarative" ,qtdeclarative)
9200 ("simgear" ,simgear)
9201 ("speexdsp" ,speexdsp)
9205 `(("cppunit" ,cppunit)
9206 ("pkg-config" ,pkg-config)
9207 ("qttools" ,qttools)
9211 (uri (string-append "mirror://sourceforge/flightgear/release-"
9212 (version-major+minor version) "/"
9213 "FlightGear-" version "-data.tar.bz2"))
9216 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9217 (home-page "https://home.flightgear.org/")
9218 (synopsis "Flight simulator")
9219 (description "The goal of the FlightGear project is to create a
9220 sophisticated flight simulator framework for use in research or academic
9221 environments, pilot training, as an industry engineering tool, for DIY-ers to
9222 pursue their favorite interesting flight simulation idea, and last but
9223 certainly not least as a fun, realistic, and challenging desktop flight
9225 (license license:gpl2+)))
9227 (define-public jumpnbump
9234 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9236 (file-name (git-file-name name version))
9239 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9240 (build-system gnu-build-system)
9244 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9245 #:tests? #f ;no test
9247 (modify-phases %standard-phases
9248 (delete 'configure) ;no configure script
9249 (add-after 'unpack 'fix-sdl-path
9250 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9251 ;; directory, not SDL-union provided as an input to the package.
9252 ;; We force the latter with "--prefix=" option.
9253 (lambda* (#:key inputs #:allow-other-keys)
9254 (substitute* "Makefile"
9255 (("sdl2-config" command)
9256 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9260 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9263 `(("gettext" ,gettext-minimal))) ;for msgfmt
9264 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9265 (synopsis "Multiplayer platform game with bunnies")
9266 (description "You, as a bunny, have to jump on your opponents to make them
9267 explode. It is a true multiplayer game; you cannot play this alone. You can
9268 play with up to four players simultaneously. It has network support.")
9269 (license license:gpl2+)))
9271 (define-public hedgewars
9277 (uri (string-append "https://www.hedgewars.org/download/releases/"
9278 "hedgewars-src-" version ".tar.bz2"))
9281 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9282 (build-system cmake-build-system)
9284 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9285 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9286 ;; a Pascal to C translator and Clang instead.
9287 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9288 "-Dhaskell_flags=-dynamic;-fPIC")
9290 (modify-phases %standard-phases
9291 (add-before 'configure 'fix-sources
9293 ;; Fix a missing 'include'.
9294 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9295 (("#include <QSizePolicy>")
9296 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9298 (lambda _ (invoke "ctest")))
9299 (add-after 'install 'install-icon
9301 ;; Install icon for the desktop file.
9302 (let* ((out (assoc-ref %outputs "out"))
9303 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9304 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9305 (install-file "misc/hedgewars.png" icons)))
9308 `(("ffmpeg" ,ffmpeg)
9309 ("freeglut" ,freeglut)
9310 ("ghc-entropy" ,ghc-entropy)
9311 ("ghc-hslogger" ,ghc-hslogger)
9312 ("ghc-network" ,ghc-network)
9313 ("ghc-random" ,ghc-random)
9314 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9315 ("ghc-sandi" ,ghc-sandi)
9316 ("ghc-sha" ,ghc-sha)
9317 ("ghc-utf8-string" ,ghc-utf8-string)
9318 ("ghc-vector" ,ghc-vector)
9319 ("ghc-zlib" ,ghc-zlib)
9326 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9330 ("pkg-config" ,pkg-config)
9331 ("qttools" ,qttools)))
9332 (home-page "https://hedgewars.org/")
9333 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9335 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9336 featuring the antics of pink hedgehogs with attitude as they battle from the
9337 depths of hell to the depths of space.
9339 As commander, it's your job to assemble your crack team of hedgehog soldiers
9340 and bring the war to your enemy.")
9341 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9342 ;; scripts are distributed under various terms.
9343 (license (list license:gpl2
9344 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9345 license:expat license:fdl1.3+ license:public-domain
9348 (define-public harmonist
9355 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9356 (commit (string-append "v" version))))
9357 (file-name (git-file-name name version))
9360 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9361 (build-system go-build-system)
9363 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9365 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9366 (home-page "https://harmonist.tuxfamily.org/")
9367 (synopsis "Stealth coffee-break roguelike game")
9368 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9369 coffee-break roguelike game. The game has a heavy focus on tactical
9370 positioning, light and noise mechanisms, making use of various terrain types
9371 and cones of view for monsters. Aiming for a replayable streamlined experience,
9372 the game avoids complex inventory management and character building, relying
9373 on items and player adaptability for character progression.")
9374 (license license:isc)))
9376 (define-public harmonist-tk
9379 (name "harmonist-tk")
9382 (package-arguments harmonist)
9384 (modify-phases %standard-phases
9387 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9388 "git.tuxfamily.org/harmonist/harmonist")))
9391 (invoke "go" "test" "--tags" "tk"
9392 "git.tuxfamily.org/harmonist/harmonist")))))))
9394 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9396 (define-public drascula
9402 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9403 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9404 "drascula-" version ".zip"))
9407 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9408 (build-system trivial-build-system)
9410 `(#:modules ((guix build utils))
9413 (use-modules (guix build utils)
9415 (let* ((out (assoc-ref %outputs "out"))
9416 (share (string-append out "/share/drascula"))
9417 (scummvm (assoc-ref %build-inputs "scummvm")))
9419 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9421 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9426 (assoc-ref %build-inputs input)
9428 ;; Every input provides "readme.txt", and we want to
9429 ;; preserve them all. Therefore we rename them first.
9432 (rename-file "readme.txt" "readme-international.txt"))
9434 (rename-file "readme.txt" "readme-audio.txt"))
9436 ;; Install documentation.
9437 (for-each (lambda (f) (install-file f doc))
9438 (find-files "." "\\.(txt|doc)$"))
9440 (for-each (lambda (f) (install-file f share))
9441 (find-files "." "\\.(ogg|00[0-9])$")))
9442 '("drascula-audio" "drascula-int" "source")))
9443 ;; Create standalone executable.
9444 (let* ((bin (string-append out "/bin"))
9445 (executable (string-append bin "/drascula"))
9446 (bash (string-append (assoc-ref %build-inputs "bash")
9449 (with-output-to-file executable
9451 (format #t "#!~a~%" bash)
9453 "exec ~a/bin/scummvm --path=~a drascula~%"
9455 (chmod executable #o755))
9456 ;; Create desktop file. There is no dedicated icon for the
9457 ;; game, so we borrow SCUMMVM's.
9458 (let ((apps (string-append out "/share/applications")))
9460 (make-desktop-entry-file
9461 (string-append apps "/drascula.desktop")
9462 #:name "Drascula: The Vampire Strikes Back"
9463 #:generic-name "Drascula"
9464 #:exec (string-append out "/bin/drascula")
9465 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9466 #:categories '("AdventureGame" "Game" "RolePlaying")
9467 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9468 #:comment '((#f "Classic 2D point and click adventure game")
9469 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9470 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9471 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9477 `(("scummvm" ,scummvm)
9479 ,(let ((version "1.1"))
9482 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9483 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9484 "drascula-int-" version ".zip"))
9487 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9489 ,(let ((version "2.0"))
9492 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9493 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9494 "drascula-audio-" version ".zip"))
9497 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9498 (home-page "https://www.scummvm.org")
9499 (synopsis "Classic 2D point and click adventure game")
9500 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9501 point and click adventure game.
9503 In Drascula you play the role of John Hacker, a British estate agent, that
9504 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9505 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9506 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9507 the World and demonstrating that he is even more evil than his brother Vlad.")
9508 ;; Drascula uses a BSD-like license.
9509 (license (license:non-copyleft "file:///readme.txt"))))
9511 (define (make-lure-package name language hash)
9519 "mirror://sourceforge/scummvm/extras/"
9520 "Lure%20of%20the%20Temptress/"
9521 name "-" version ".zip"))
9524 (build-system trivial-build-system)
9526 `(#:modules ((guix build utils))
9529 (use-modules (guix build utils))
9530 (let* ((out (assoc-ref %outputs "out"))
9531 (share (string-append out "/share"))
9532 (data (string-append share "/" ,name "/" ,language))
9533 (apps (string-append share "/applications"))
9534 (bin (string-append out "/bin"))
9535 (executable (string-append bin "/" ,name))
9536 (scummvm (assoc-ref %build-inputs "scummvm")))
9537 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9539 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9540 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9541 (for-each (lambda (f) (install-file f doc))
9542 (find-files "." "\\.(txt|PDF|pdf)$")))
9543 (for-each (lambda (f) (install-file f data))
9544 (find-files "." "\\.(vga|VGA)$"))
9545 ;; Build the executable.
9547 (let ((bash (assoc-ref %build-inputs "bash")))
9548 (with-output-to-file executable
9550 (format #t "#!~a/bin/bash~%" bash)
9551 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9552 scummvm ,language data))))
9553 (chmod executable #o755)
9554 ;; Create desktop file. There is no dedicated
9555 ;; icon for the game, so we borrow SCUMMVM's.
9557 (with-output-to-file (string-append apps "/" ,name ".desktop")
9561 Name=Lure of the Temptress~@
9564 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9565 Categories=AdventureGame;Game;RolePlaying;~@
9566 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9567 Comment=Classic 2D point and click adventure game~@
9568 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9569 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9570 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9572 executable scummvm)))
9575 `(("unzip" ,unzip)))
9578 ("scummvm" ,scummvm)))
9579 (home-page "https://www.scummvm.org")
9580 (synopsis "2D point and click fantasy adventure game")
9582 "Lure of the Temptress is a classic 2D point and click adventure game.
9584 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9585 intents and purposes, a good man. After decades of unrest the King has united
9586 the warring factions in his kingdom and all his lands are at peace, except
9587 a remote region around a town called Turnvale. A revolt has recently taken
9588 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9589 Selena, the titular temptress. The king calls together his finest horsemen
9590 and heads off (with you in tow) to Turnvale just to witness how hellish
9591 mercenary monsters called Skorl are invading the town.
9593 The king's men are defeated, the king is killed and you fall of your horse and
9594 bang your head heavily on the ground. You have been *unconscious for a while
9595 when you realize that you are in a dingy cell guarded by a not so friendly
9596 Skorl. Maybe it would be an idea to try and escape...")
9597 (license (license:non-copyleft "file:///README"))))
9601 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9603 (define-public lure-de
9605 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9607 (define-public lure-es
9609 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9611 (define-public lure-fr
9613 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9615 (define-public lure-it
9617 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9619 (define (make-queen-package name file-prefix release language hash)
9626 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9627 "Flight%20of%20the%20Amazon%20Queen/"
9628 file-prefix release ".zip"))
9631 (build-system trivial-build-system)
9633 `(#:modules ((guix build utils))
9636 (use-modules (guix build utils))
9637 (let* ((out (assoc-ref %outputs "out"))
9638 (share (string-append out "/share"))
9639 (data (string-append share "/" ,name))
9640 (apps (string-append share "/applications"))
9641 (bin (string-append out "/bin"))
9642 (executable (string-append bin "/" ,name))
9643 (scummvm (assoc-ref %build-inputs "scummvm")))
9644 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9646 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9647 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9648 (install-file "readme.txt" doc))
9649 (install-file "queen.1c" data)
9651 (let ((bash (assoc-ref %build-inputs "bash")))
9652 (with-output-to-file executable
9654 (format #t "#!~a/bin/bash~%" bash)
9655 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9657 (chmod executable #o755)
9658 ;; Create desktop file. There is no dedicated
9659 ;; icon for the game, so we borrow SCUMMVM's.
9661 (with-output-to-file (string-append apps "/" ,name ".desktop")
9665 Name=Flight of the Amazon Queen~@
9667 Comment=Embark on a quest to rescue a kidnapped princess and in the process, discover the true sinister intentions of a suspiciously located Lederhosen company~@
9668 Comment[de]=Begib dich auf ein Abenteuer, um eine entführte Prinzessin zu retten und entdecke die wahren, finsteren Absichten eines verdächtig erscheinenden Lederhosen-Unternehmens~@
9671 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9672 Categories=AdventureGame;Game;RolePlaying;~@
9673 Keywords=adventure;game;roleplaying;fantasy;~%"
9674 executable scummvm))))
9677 `(("unzip" ,unzip)))
9680 ("scummvm" ,scummvm)))
9681 (home-page "https://www.scummvm.org/")
9682 (synopsis "Classic 2D point and click adventure game")
9683 (description "Flight of the Amazon Queen is a 2D point-and-click
9684 adventure game set in the 1940s.
9686 You assume the role of Joe King, a pilot for hire who is given the job
9687 of flying Faye Russell (a famous movie star) into the Amazon jungle
9688 for a photo shoot. Of course, things never go according to plans.
9689 After an unfortunate turn of events they find themselves stranded in
9690 the heart of the Amazon jungle, where Joe will embark on a quest to
9691 rescue a kidnapped princess and in the process, discover the true
9692 sinister intentions of a suspiciously located Lederhosen company. In
9693 a rich 2D environment, Joe will cross paths with a variety of unlikely
9694 jungle inhabitants including, but not limited to, a tribe of Amazon
9695 women and 6-foot-tall pygmies.")
9696 (license (license:non-copyleft "file:///readme.txt"))))
9698 (define-public queen
9700 "queen" "FOTAQ_Talkie-" "1.1" "en"
9701 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9703 (define-public queen-de
9705 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9706 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9708 (define-public queen-fr
9710 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9711 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9713 (define-public queen-it
9715 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9716 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9721 (version "1.2") ;1.3 is floppy version
9725 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9726 "Beneath%20a%20Steel%20Sky/"
9727 "bass-cd-" version ".zip"))
9729 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9730 (build-system trivial-build-system)
9732 `(#:modules ((guix build utils))
9735 (use-modules (guix build utils))
9736 (let* ((out (assoc-ref %outputs "out"))
9737 (share (string-append out "/share"))
9738 (data (string-append share "/" ,name))
9739 (apps (string-append share "/applications"))
9740 (bin (string-append out "/bin"))
9741 (executable (string-append bin "/" ,name))
9742 (scummvm (assoc-ref %build-inputs "scummvm")))
9743 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9745 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9746 (let ((doc (string-append share "/doc/bass-" ,version)))
9747 (install-file "readme.txt" doc))
9748 (for-each (lambda (f) (install-file f data))
9749 (find-files "." "^sky\\."))
9750 ;; Build the executable.
9752 (let ((bash (assoc-ref %build-inputs "bash")))
9753 (with-output-to-file executable
9755 (format #t "#!~a/bin/bash~%" bash)
9756 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9757 (chmod executable #o755)
9758 ;; Create desktop file. There is no dedicated
9759 ;; icon for the game, so we borrow SCUMMVM's.
9761 (with-output-to-file (string-append apps "/" ,name ".desktop")
9765 Name=Beneath a Steel Sky~@
9768 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9769 Categories=AdventureGame;Game;RolePlaying;~@
9770 Keywords=adventure;game;roleplaying;cyberpunk;~@
9771 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9772 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9773 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9775 executable scummvm)))
9778 `(("unzip" ,unzip)))
9781 ("scummvm" ,scummvm)))
9782 (home-page "https://www.scummvm.org/")
9783 (synopsis "Classic 2D point and click science-fiction adventure game")
9785 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9786 post-apocalyptic vision of the future. It revolves around Union City,
9787 where selfishness, rivalry, and corruption by its citizens seems to be
9788 all too common, those who can afford it live underground, away from
9789 the pollution and social problems which are plaguing the city.
9791 You take on the role of Robert Foster, an outcast of sorts from the
9792 city since a boy who was raised in a remote environment outside of
9793 Union City simply termed ``the gap''. Robert's mother took him away
9794 from Union City as a child on their way to ``Hobart'' but the
9795 helicopter crashed on its way. Unfortunately, Robert's mother died,
9796 but he survived and was left to be raised by a local tribe from the
9799 Years later, Union City security drops by and abducts Robert, killing
9800 his tribe in the process; upon reaching the city the helicopter taking
9801 him there crashes with him escaping, high upon a tower block in the
9802 middle of the city. He sets out to discover the truth about his past,
9803 and to seek vengeance for the killing of his tribe.")
9804 (license (license:non-copyleft "file:///readme.txt"))))
9806 (define-public gnurobots
9813 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9817 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9818 (build-system gnu-build-system)
9823 ("readline" ,readline)
9824 ("guile" ,guile-1.8)))
9826 `(("pkg-config" ,pkg-config)))
9830 ;; Do not abort build on "deprecated-declarations" warnings.
9831 "CFLAGS=-Wno-error=deprecated-declarations"
9832 ;; Find readline headers in sub-directory.
9833 (string-append "READLINE_CFLAGS=-I"
9834 (assoc-ref %build-inputs "readline")
9835 "/include/readline/"))
9837 (modify-phases %standard-phases
9838 (add-after 'install 'install-doc
9839 (lambda* (#:key outputs #:allow-other-keys)
9840 (install-file "doc/Robots-HOWTO"
9841 (string-append (assoc-ref outputs "out")
9842 "/share/doc/gnurobots-"
9845 (home-page "https://www.gnu.org/software/gnurobots/")
9846 (synopsis "Program a little robot and watch it explore a world")
9848 "GNU Robots is a game in which you program a robot to explore a world
9849 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9850 the game is to stay alive and collect prizes. The robot program conveniently
9851 may be written in a plain text file in the Scheme programming language.")
9852 (license license:gpl3+)))
9854 (define-public ri-li
9860 (uri (string-append "mirror://sourceforge/ri-li/"
9861 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9862 "Ri-li-" version ".tar.bz2"))
9865 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9867 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9868 ;; It doesn't build otherwise.
9869 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9870 (build-system gnu-build-system)
9873 (modify-phases %standard-phases
9874 ;; Remove "gentoo" subdirectory from Makefile, as it is
9875 ;; missing a make file and generates a build failure.
9876 (add-after 'configure 'fix-build
9878 (substitute* "Makefile"
9881 (add-after 'install 'install-desktop-file
9882 (lambda* (#:key outputs #:allow-other-keys)
9883 (let* ((out (assoc-ref outputs "out"))
9884 (apps (string-append out "/share/applications"))
9885 (pixmaps (string-append out "/share/pixmaps")))
9886 (for-each (lambda (f) (install-file f pixmaps))
9887 (find-files "data" "\\.(png|ico)$"))
9889 (with-output-to-file (string-append apps "/ri-li.desktop")
9895 Icon=~a/Ri-li-icon-32x32.png~@
9896 Categories=Game;ArcadeGame;~@
9897 Keywords=toy;train;wooden;snake-like;engine;~@
9898 Comment=a toy simulator game~@
9899 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9900 Comment[fr]=un jeu de petit train~@
9901 Comment[ro_RO]=un joc cu un tren de jucărie~@
9906 (add-after 'install-desktop-file 'remove-spurious-files
9907 ;; Delete redundant files already installed somewhere else.
9908 (lambda* (#:key outputs #:allow-other-keys)
9909 (let ((out (assoc-ref outputs "out")))
9910 (for-each delete-file
9911 (find-files (string-append out "/share/Ri-li")
9912 "\\.(png|ico)|COPYING"))
9915 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9916 (home-page "http://www.ri-li.org")
9917 (synopsis "Toy train simulation game")
9918 (description "Ri-li is a game in which you drive a wooden toy
9919 steam locomotive across many levels and collect all the coaches to
9921 ;; The project is dual-licensed GPL2+ and GPL3+.
9922 (license (list license:gpl2+ license:gpl3+))))
9924 (define-public freeorion
9931 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9932 "download/v" version "/FreeOrion_v" version
9933 "_2020-07-10.f3d403e_Source.tar.gz"))
9935 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9936 (modules '((guix build utils)))
9939 ;; There are some bundled fonts.
9940 (for-each delete-file-recursively '("default/data/fonts"))
9942 (build-system cmake-build-system)
9944 '(#:tests? #f ;no test
9946 (modify-phases %standard-phases
9947 (add-after 'unpack 'unbundle-fonts
9948 (lambda* (#:key inputs #:allow-other-keys)
9949 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9950 "/share/fonts/truetype/")))
9951 (substitute* "UI/ClientUI.cpp"
9952 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9954 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9958 ("boost_signals" ,boost-signals2)
9959 ("font-dejavu" ,font-dejavu)
9960 ("font-roboto" ,font-google-roboto)
9961 ("freetype2" ,freetype)
9966 ("libvorbis" ,libvorbis)
9971 (home-page "https://www.freeorion.org/index.php/Main_Page")
9972 (synopsis "Turn-based space empire and galactic conquest computer game")
9974 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9975 computer game being designed and built by the FreeOrion project. Control an
9976 empire with the goal of exploring the galaxy, expanding your territory,
9977 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9978 inspired by the tradition of the Master of Orion games, but is not a clone or
9979 remake of that series or any other game.")
9980 ;; Source code is released under gpl2. Artwork, music and sounds, and
9981 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9982 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9983 ;; released under lgpl2.1+.
9984 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9986 (define-public leela-zero
9994 (url "https://github.com/leela-zero/leela-zero")
9995 (commit (string-append "v" version))))
9996 (file-name (git-file-name name version))
9999 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10000 (patches (search-patches "leela-zero-gtest.patch"))))
10001 (build-system cmake-build-system)
10003 `(("googletest" ,googletest)))
10006 ("ocl-icd" ,ocl-icd)
10007 ("openblas" ,openblas)
10008 ("opencl-headers" ,opencl-headers)
10012 '(#:configure-flags '("-DUSE_BLAS=YES")
10013 #:phases (modify-phases %standard-phases
10014 (add-before 'configure 'fix-tests
10015 (lambda* (#:key outputs #:allow-other-keys)
10016 (let ((home (getcwd)))
10017 (setenv "HOME" home)
10018 (substitute* "src/tests/gtests.cpp"
10019 (("\\.\\./src/tests/0k\\.txt")
10020 (string-append home "/src/tests/0k.txt"))
10021 (("cfg_gtp_mode = true;")
10022 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10026 (invoke "./tests"))))))
10027 (home-page "https://github.com/leela-zero/leela-zero")
10028 (synopsis "Program playing the game of Go")
10030 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10031 the AlphaGo Zero paper. The current best network weights file for the engine
10032 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10033 (license license:gpl3+)))
10035 (define-public q5go
10041 (uri (git-reference
10042 (url "https://github.com/bernds/q5Go")
10043 (commit (string-append "q5go-" version))))
10044 (file-name (git-file-name name version))
10047 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10048 (build-system gnu-build-system)
10050 `(("pkg-config" ,pkg-config)))
10052 `(("qtbase" ,qtbase)
10053 ("qtmultimedia" ,qtmultimedia)
10057 (modify-phases %standard-phases
10058 (add-after 'unpack 'fix-configure-script
10060 ;; Bypass the unavailable qtchooser program.
10061 (substitute* "configure"
10062 (("test -z \"QTCHOOSER\"")
10064 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10067 (add-after 'unpack 'fix-paths
10069 (substitute* '("src/pics/Makefile.in"
10070 "src/translations/Makefile.in")
10071 (("\\$\\(datadir\\)/qGo/")
10072 "$(datadir)/q5go/"))
10074 (add-after 'install 'install-desktop-file
10075 (lambda* (#:key outputs #:allow-other-keys)
10076 (let* ((out (assoc-ref outputs "out"))
10077 (apps (string-append out "/share/applications"))
10078 (pics (string-append out "/share/q5go/pics")))
10079 (delete-file-recursively (string-append out "/share/applnk"))
10080 (delete-file-recursively (string-append out "/share/mimelnk"))
10081 (install-file "../source/src/pics/Bowl.ico" pics)
10083 (with-output-to-file (string-append apps "/q5go.desktop")
10091 Comment=Game of Go~@
10092 Comment[de]=Spiel des Go~@
10094 Comment[es]=Juego de Go~@
10095 Comment[fr]=Jeu de Go~@
10100 Type=Application~%"
10103 (synopsis "Qt GUI to play the game of Go")
10105 "This a tool for Go players which performs the following functions:
10108 @item Analysis frontend for Leela Zero (or compatible engines),
10109 @item GTP interface (to play against an engine),
10110 @item IGS client (to play on the internet),
10111 @item Export games to a variety of formats.
10113 (home-page "https://github.com/bernds/q5Go")
10114 (license license:gpl2+)))
10116 (define-public ktuberling
10118 (name "ktuberling")
10119 (version "20.12.0")
10123 (uri (string-append "mirror://kde/stable/release-service/" version
10124 "/src/ktuberling-" version ".tar.xz"))
10126 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10127 (build-system qt-build-system)
10129 `(("extra-cmake-modules" ,extra-cmake-modules)
10130 ("kdoctools" ,kdoctools)
10133 `(("kcompletion" ,kcompletion)
10134 ("kconfigwidgets" ,kconfigwidgets)
10135 ("kcoreaddons" ,kcoreaddons)
10137 ("kdbusaddons" ,kdbusaddons)
10140 ("kwidgetsaddons" ,kwidgetsaddons)
10141 ("kxmlgui" ,kxmlgui)
10142 ("libkdegames" ,libkdegames)
10143 ("python" ,python-wrapper)
10145 ("qtmultimedia" ,qtmultimedia)
10146 ("qtdeclarative" ,qtdeclarative)
10148 (home-page "https://games.kde.org/")
10149 (synopsis "Stamp drawing toy")
10150 (description "KTuberling is a drawing toy intended for small children and
10151 adults who remain young at heart. The game has no winner; the only purpose is
10152 to make the funniest faces you can. Several activities are possible, e.g.:
10155 @item Give the potato a funny face, clothes, and other goodies
10156 @item Build a small town, complete with school, zoo, and fire department
10157 @item Create a fantastic moonscape with spaceships and aliens
10161 KTuberling can speak the name of each the object in several languages,
10162 to assist in learning basic vocabulary.
10164 This package is part of the KDE games module.")
10165 (license (list license:gpl2+ license:fdl1.2+))))
10167 (define-public picmi
10170 (version "20.12.0")
10174 (uri (string-append "mirror://kde/stable/release-service/" version
10175 "/src/picmi-" version ".tar.xz"))
10177 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10178 (build-system qt-build-system)
10180 `(("extra-cmake-modules" ,extra-cmake-modules)
10181 ("kdoctools" ,kdoctools)))
10183 `(("kcoreaddons" ,kcoreaddons)
10185 ("kdbusaddons" ,kdbusaddons)
10186 ("kdeclarative" ,kdeclarative)
10189 ("knewstuff" ,knewstuff)
10190 ("kxmlgui" ,kxmlgui)
10191 ("libkdegames" ,libkdegames)
10193 ("qtdeclarative" ,qtdeclarative)
10195 (home-page "https://games.kde.org/")
10196 (synopsis "Number logic game")
10197 (description "Picmi is a number logic game in which cells in a grid have
10198 to be colored or left blank according to numbers given at the side of the
10199 grid. The aim is to reveal a hidden picture.
10201 This package is part of the KDE games module.")
10202 (license (list license:gpl2+ license:fdl1.2+))))
10204 (define-public kolf
10207 (version "20.12.0")
10211 (uri (string-append "mirror://kde/stable/release-service/" version
10212 "/src/kolf-" version ".tar.xz"))
10214 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10215 (build-system qt-build-system)
10217 `(("extra-cmake-modules" ,extra-cmake-modules)
10218 ("kdoctools" ,kdoctools)))
10220 `(("kcompletion" ,kcompletion)
10221 ("kconfigwidgets" ,kconfigwidgets)
10222 ("kcoreaddons" ,kcoreaddons)
10224 ("kdbusaddons" ,kdbusaddons)
10227 ("kwidgetsaddons" ,kwidgetsaddons)
10228 ("kxmlgui" ,kxmlgui)
10229 ("ktextwidgets" ,ktextwidgets)
10230 ("libkdegames" ,libkdegames)
10232 ("qtdeclarative" ,qtdeclarative)))
10233 (home-page "https://games.kde.org/")
10234 (synopsis "Miniature golf game")
10235 (description "Kolf is a miniature golf game for one to ten players. The
10236 game is played from an overhead view, with a short bar representing the golf
10237 club. Kolf features many different types of objects, such as water hazards,
10238 slopes, sand traps, and black holes (warps), among others.
10242 @item Single and Multi-player (up to ten players) modes
10243 @item High scores table
10244 @item Dynamic courses
10245 @item Third-party courses
10246 @item Course editor
10249 This package is part of the KDE games module.")
10250 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10252 (define-public libkmahjongg
10254 (name "libkmahjongg")
10255 (version "20.12.0")
10259 (uri (string-append "mirror://kde/stable/release-service/"
10260 version "/src/libkmahjongg-" version ".tar.xz"))
10262 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10263 (build-system qt-build-system)
10265 `(("extra-cmake-modules" ,extra-cmake-modules)))
10268 ("kcompletion" ,kcompletion)
10269 ;("kconfig" ,kconfig)
10270 ("kcodecs" ,kcodecs)
10271 ("kconfigwidgets" ,kconfigwidgets)
10272 ("kcoreaddons" ,kcoreaddons)
10274 ("kwidgetsaddons" ,kwidgetsaddons)
10277 (home-page "https://games.kde.org/")
10278 (synopsis "Shared library for kmahjongg and kshisen")
10279 (description "Shared library and common files for kmahjongg, kshisen and
10280 other Mah Jongg like games.")
10281 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10283 (define-public kmahjongg
10286 (version "20.12.0")
10290 (uri (string-append "mirror://kde/stable/release-service/"
10291 version "/src/kmahjongg-" version ".tar.xz"))
10293 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10294 (build-system qt-build-system)
10296 `(("extra-cmake-modules" ,extra-cmake-modules)
10297 ("kdoctools" ,kdoctools)))
10299 `(("kcompletion" ,kcompletion)
10301 ("kdbusaddons" ,kdbusaddons)
10302 ("kdeclarative" ,kdeclarative)
10304 ("knewstuff" ,knewstuff)
10305 ("kxmlgui" ,kxmlgui)
10306 ("libkdegames" ,libkdegames)
10307 ("libkmahjongg" ,libkmahjongg)
10309 ("qtdeclarative" ,qtdeclarative)
10311 (home-page "https://games.kde.org/")
10312 (synopsis "Tile laying patience")
10313 (description "In KMahjongg the tiles are scrambled and staked on top of
10314 each other to resemble a certain shape. The player is then expected to remove
10315 all the tiles off the game board by locating each tile's matching pair.
10317 A variety of tile layouts are included, as well as an editor to create new
10320 This package is part of the KDE games module.")
10321 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10323 (define-public kshisen
10326 (version "20.12.0")
10330 (uri (string-append "mirror://kde/stable/release-service/"
10331 version "/src/kshisen-" version ".tar.xz"))
10333 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10334 (build-system qt-build-system)
10336 `(("extra-cmake-modules" ,extra-cmake-modules)
10338 ;("pkg-config" ,pkg-config)
10339 ("kdoctools" ,kdoctools)))
10342 ("kcompletion" ,kcompletion)
10343 ("kconfigwidgets" ,kconfigwidgets)
10344 ("kcoreaddons" ,kcoreaddons)
10346 ("kdbusaddons" ,kdbusaddons)
10348 ("kxmlgui" ,kxmlgui)
10349 ("libkdegames" ,libkdegames)
10350 ("libkmahjongg" ,libkmahjongg)
10352 ("qtdeclarative" ,qtdeclarative)))
10353 (home-page "https://games.kde.org/")
10354 (synopsis "Shisen-Sho solitaire game")
10355 (description "KShisen is a solitaire-like game played using the standard
10356 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10359 This package is part of the KDE games module.")
10360 (license license:gpl2+)))
10362 (define-public kajongg
10365 (version "20.12.0")
10369 (uri (string-append "mirror://kde/stable/release-service/"
10370 version "/src/kajongg-" version ".tar.xz"))
10372 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10373 (build-system qt-build-system)
10376 (modify-phases %standard-phases
10377 (add-after 'install 'wrap
10378 (lambda* (#:key outputs #:allow-other-keys)
10379 (let ((out (assoc-ref outputs "out")))
10380 (wrap-program (string-append out "/bin/kajongg")
10381 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10384 `(("extra-cmake-modules" ,extra-cmake-modules)
10386 ("kdoctools" ,kdoctools)))
10388 `(("kconfig" ,kconfig)
10389 ("kconfigwidgets" ,kconfigwidgets)
10390 ("kcoreaddons" ,kcoreaddons)
10392 ("libkmahjongg" ,libkmahjongg)
10394 ("python-twisted" ,python-twisted)
10395 ("python-pyqt" ,python-pyqt)
10398 (home-page "https://games.kde.org/")
10399 (synopsis "Classical Mah Jongg game for 4 players")
10400 (description "Kajongg is the ancient Chinese board game for 4 players.
10402 If you are looking for the Mah Jongg solitaire please use the application
10405 Kajongg can be used in two different ways: Scoring a manual game where you
10406 play as always and use Kajongg for the computation of scores and for
10407 bookkeeping. Or you can use Kajongg to play against any combination of other
10408 human players or computer players.
10410 This package is part of the KDE games module.")
10411 (license (list license:gpl2+ license:fdl1.2+))))
10413 (define-public kbreakout
10416 (version "20.12.0")
10420 (uri (string-append "mirror://kde/stable/release-service/" version
10421 "/src/kbreakout-" version ".tar.xz"))
10423 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10424 (build-system qt-build-system)
10426 `(("extra-cmake-modules" ,extra-cmake-modules)
10427 ("kdoctools" ,kdoctools)))
10429 `(("kcompletion" ,kcompletion)
10430 ("kconfig" ,kconfig)
10431 ("kconfigwidgets" ,kconfigwidgets)
10432 ("kcoreaddons" ,kcoreaddons)
10434 ("kdbusaddons" ,kdbusaddons)
10436 ("kwidgetsaddons" ,kwidgetsaddons)
10437 ("kxmlgui" ,kxmlgui)
10438 ("libkdegames" ,libkdegames)
10440 ("qtdeclarative" ,qtdeclarative)))
10441 (home-page "https://games.kde.org/")
10442 (synopsis "Breakout like game")
10443 (description "KBreakout is similar to the classics breakout and xboing,
10444 featuring a number of added graphical enhancements and effects. You control a
10445 paddle at the bottom of the playing-field, and must destroy bricks at the top
10446 by bouncing balls against them.
10448 This package is part of the KDE games module.")
10449 (license (list license:gpl2+ license:fdl1.2+))))
10451 (define-public kmines
10454 (version "20.12.0")
10458 (uri (string-append "mirror://kde/stable/release-service/" version
10459 "/src/kmines-" version ".tar.xz"))
10461 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10462 (build-system qt-build-system)
10464 `(("extra-cmake-modules" ,extra-cmake-modules)
10465 ("kdoctools" ,kdoctools)))
10467 `(("kcompletion" ,kcompletion)
10468 ("kconfig" ,kconfig)
10469 ("kconfigwidgets" ,kconfigwidgets)
10470 ("kcoreaddons" ,kcoreaddons)
10472 ("kdbusaddons" ,kdbusaddons)
10474 ("ktextwidgets" ,ktextwidgets)
10475 ("kwidgetsaddons" ,kwidgetsaddons)
10476 ("kxmlgui" ,kxmlgui)
10477 ("libkdegames" ,libkdegames)
10479 ("qtdeclarative" ,qtdeclarative)))
10480 (home-page "https://games.kde.org/")
10481 (synopsis "Classical mine sweeper game")
10482 (description "KMines is a classic Minesweeper game. The idea is to
10483 uncover all the squares without blowing up any mines. When a mine is blown
10484 up, the game is over.
10486 This package is part of the KDE games module.")
10487 (license (list license:gpl2+ license:fdl1.2+))))
10489 (define-public konquest
10492 (version "20.12.0")
10496 (uri (string-append "mirror://kde/stable/release-service/"
10497 version "/src/konquest-" version ".tar.xz"))
10499 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10500 (build-system qt-build-system)
10502 `(("extra-cmake-modules" ,extra-cmake-modules)
10503 ("kdoctools" ,kdoctools)))
10505 `(("kcompletion" ,kcompletion)
10506 ("kconfig" ,kconfig)
10507 ("kcoreaddons" ,kcoreaddons)
10509 ("kdbusaddons" ,kdbusaddons)
10510 ("kguiaddons" ,kguiaddons)
10512 ("kwidgetsaddons" ,kwidgetsaddons)
10513 ("kxmlgui" ,kxmlgui)
10514 ("libkdegames" ,libkdegames)
10516 ("qtdeclarative" ,qtdeclarative)
10518 (home-page "https://games.kde.org/")
10519 (synopsis "Simple turn-based strategy game")
10520 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10521 conquer other planets by sending ships to them. The goal is to build an
10522 interstellar empire and ultimately conquer all other player's planets. The
10523 game can be played with up to nine empires, commanded either by the computer
10524 or by puny earthlings.
10526 This package is part of the KDE games module.")
10527 (license (list license:gpl2+ license:fdl1.2+))))
10529 (define-public kbounce
10532 (version "20.12.0")
10536 (uri (string-append "mirror://kde/stable/release-service/"
10537 version "/src/kbounce-" version ".tar.xz"))
10539 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10540 (build-system qt-build-system)
10542 `(("extra-cmake-modules" ,extra-cmake-modules)
10543 ("kdoctools" ,kdoctools)))
10545 `(("kcompletion" ,kcompletion)
10546 ("kconfigwidgets" ,kconfigwidgets)
10547 ("kcoreaddons" ,kcoreaddons)
10549 ("kdbusaddons" ,kdbusaddons)
10552 ("kwidgetsaddons" ,kwidgetsaddons)
10553 ("kxmlgui" ,kxmlgui)
10554 ("libkdegames" ,libkdegames)
10556 ("qtdeclarative" ,qtdeclarative)
10558 (home-page "https://games.kde.org/")
10559 (synopsis "Jezzball arcade game")
10560 (description "KBounce is a single player arcade game with the elements of
10561 puzzle. It is played on a field, surrounded by wall, with two or more balls
10562 bouncing around within the walls. The object of the game is to build new
10563 walls to decrease the size of the active field.
10565 This package is part of the KDE games module.")
10566 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10568 (define-public kblocks
10571 (version "20.12.0")
10575 (uri (string-append "mirror://kde/stable/release-service/"
10576 version "/src/kblocks-" version ".tar.xz"))
10578 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10579 (build-system qt-build-system)
10581 `(("extra-cmake-modules" ,extra-cmake-modules)
10582 ("kdoctools" ,kdoctools)))
10584 `(("kcompletion" ,kcompletion)
10585 ("kconfig" ,kconfig)
10586 ("kconfigwidgets" ,kconfigwidgets)
10587 ("kcoreaddons" ,kcoreaddons)
10589 ("kdbusaddons" ,kdbusaddons)
10591 ("kwidgetsaddons" ,kwidgetsaddons)
10592 ("kxmlgui" ,kxmlgui)
10593 ("libkdegames" ,libkdegames)
10595 ("qtdeclarative" ,qtdeclarative)
10597 (home-page "https://games.kde.org/")
10598 (synopsis "Single player falling blocks puzzle game")
10599 (description "KBlocks is the classic Tetris-like falling blocks game.
10601 The idea is to stack the falling blocks to create horizontal lines without any
10602 gaps. When a line is completed it is removed, and more space is available in
10603 the play area. When there is not enough space for blocks to fall, the game is
10606 This package is part of the KDE games module.")
10607 (license (list license:gpl2+ license:fdl1.2+))))
10609 (define-public ksudoku
10612 (version "20.12.0")
10616 (uri (string-append "mirror://kde/stable/release-service/"
10617 version "/src/ksudoku-" version ".tar.xz"))
10619 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10620 (build-system qt-build-system)
10622 `(("extra-cmake-modules" ,extra-cmake-modules)
10623 ("kdoctools" ,kdoctools)))
10625 `(("karchive" ,karchive)
10626 ("kconfig" ,kconfig)
10627 ("kconfigwidgets" ,kconfigwidgets)
10628 ("kcoreaddons" ,kcoreaddons)
10630 ("kguiaddons" ,kguiaddons)
10632 ("kiconthemes" ,kiconthemes)
10634 ("kwidgetsaddons" ,kwidgetsaddons)
10635 ("kxmlgui" ,kxmlgui)
10636 ("libkdegames" ,libkdegames)
10639 ("qtdeclarative" ,qtdeclarative)
10641 (home-page "https://games.kde.org/")
10642 (synopsis "Sudoku puzzle game and solver")
10643 (description "KSudoku is a Sudoku game and solver, supporting a range of
10644 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10645 puzzle sheets and find the solution to any Sudoku puzzle.
10647 The word Sudoku means \"single number in an allotted place\" in Japanese.
10648 These are the basic rules: Every Sudoku is a square divided into 3x3
10649 subsquares with 3x3 cells each.
10651 Some cells are filled with a number at the beginning. The remaining ones are
10652 to be filled by the player using numbers from 1 to 9, without repeating a
10653 number twice on each column, row or subsquare (each of them must contain only
10654 one 1, one 2, one 3, and so on). The game requires logic and patience.
10655 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10658 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10659 board we use letters): arithmetic relationships between numbers are
10662 This program supports also 16x16 games with numbers from 1 to 16 and 256
10663 cells with 16 cols, rows and subsquares!
10665 More information at http://en.wikipedia.org/wiki/Sudoku
10667 This package is part of the KDE games module.")
10668 (license (list license:gpl2+ license:fdl1.2+))))
10670 (define-public klines
10673 (version "20.12.0")
10677 (uri (string-append "mirror://kde/stable/release-service/" version
10678 "/src/klines-" version ".tar.xz"))
10680 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10681 (build-system qt-build-system)
10683 `(("extra-cmake-modules" ,extra-cmake-modules)
10684 ("kdoctools" ,kdoctools)))
10686 `(("kcompletion" ,kcompletion)
10687 ("kconfigwidgets" ,kconfigwidgets)
10688 ("kcoreaddons" ,kcoreaddons)
10690 ("kdbusaddons" ,kdbusaddons)
10692 ("kwidgetsaddons" ,kwidgetsaddons)
10693 ("kxmlgui" ,kxmlgui)
10694 ("libkdegames" ,libkdegames)
10696 ("qtdeclarative" ,qtdeclarative)))
10697 (home-page "https://games.kde.org/")
10698 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10699 (description "KLines is a simple but highly addictive one player game.
10701 The player has to move the colored balls around the game board, gathering them
10702 into the lines of the same color by five. Once the line is complete it is
10703 removed from the board, therefore freeing precious space. In the same time
10704 the new balls keep arriving by three after each move, filling up the game
10707 KLines is a single-player game where the player removes colored balls from the
10708 board by arranging them into lines of five or more. However, every time the
10709 player moves a ball, three more balls are added to the board.
10711 This package is part of the KDE games module.")
10712 (license (list license:gpl2+ license:fdl1.2+))))
10714 (define-public kgoldrunner
10716 (name "kgoldrunner")
10717 (version "20.12.0")
10721 (uri (string-append "mirror://kde/stable/release-service/" version
10722 "/src/kgoldrunner-" version ".tar.xz"))
10724 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10725 (build-system qt-build-system)
10727 `(("extra-cmake-modules" ,extra-cmake-modules)
10728 ("kdoctools" ,kdoctools)))
10730 `(("kcompletion" ,kcompletion)
10731 ("kcoreaddons" ,kcoreaddons)
10733 ("kdbusaddons" ,kdbusaddons)
10736 ("kwidgetsaddons" ,kwidgetsaddons)
10737 ("kxmlgui" ,kxmlgui)
10738 ("libkdegames" ,libkdegames)
10740 ("qtdeclarative" ,qtdeclarative)))
10741 (home-page "https://games.kde.org/")
10742 (synopsis "Action and puzzle solving game")
10743 (description "KGoldrunner is an action game where the hero runs through a
10744 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10745 gold nuggets and escape to the next level. Your enemies are also after the
10746 gold. Worse still, they are after you!.
10748 KGoldrunner is a fast-paced platform game where the player must navigate a
10749 maze while collecting gold nuggets and avoiding enemies. A variety of level
10750 packs are included, as well as an editor to create new levels.
10752 This package is part of the KDE games module.")
10753 (license (list license:gpl2+ license:fdl1.2+))))
10755 (define-public kdiamond
10758 (version "20.12.0")
10762 (uri (string-append "mirror://kde/stable/release-service/" version
10763 "/src/kdiamond-" version ".tar.xz"))
10765 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10766 (build-system qt-build-system)
10768 `(("extra-cmake-modules" ,extra-cmake-modules)
10769 ("kdoctools" ,kdoctools)))
10771 `(("kcompletion" ,kcompletion)
10772 ("kconfig" ,kconfig)
10773 ("kconfigwidgets" ,kconfigwidgets)
10774 ("kcoreaddons" ,kcoreaddons)
10776 ("kdbusaddons" ,kdbusaddons)
10778 ("knotifications" ,knotifications)
10779 ("knotifyconfig" ,knotifyconfig)
10780 ("kwidgetsaddons" ,kwidgetsaddons)
10781 ("kxmlgui" ,kxmlgui)
10782 ("libkdegames" ,libkdegames)
10784 ("qtdeclarative" ,qtdeclarative)))
10785 (home-page "https://games.kde.org/")
10786 (synopsis "Three-in-a-row game")
10787 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10788 features unlimited fun with randomly generated games and five difficulty
10789 levels with varying number of diamond colors and board sizes.
10791 This package is part of the KDE games module.")
10792 (license (list license:gpl2+ license:fdl1.2+))))
10794 (define-public kfourinline
10796 (name "kfourinline")
10797 (version "20.12.0")
10801 (uri (string-append "mirror://kde/stable/release-service/" version
10802 "/src/kfourinline-" version ".tar.xz"))
10804 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10805 (build-system qt-build-system)
10807 `(("extra-cmake-modules" ,extra-cmake-modules)
10808 ("kdoctools" ,kdoctools)))
10810 `(("kcompletion" ,kcompletion)
10811 ("kconfig" ,kconfig)
10812 ("kconfigwidgets" ,kconfigwidgets)
10813 ("kcoreaddons" ,kcoreaddons)
10817 ("kxmlgui" ,kxmlgui)
10818 ("libkdegames" ,libkdegames)
10820 ("qtdeclarative" ,qtdeclarative)
10822 (home-page "https://games.kde.org/")
10823 (synopsis "Place 4 pieces in a row")
10824 (description "KFourInLine is a board game for two players based on the
10827 KFourInLine is a game where two players take turns dropping pieces into a
10828 grid, the winner being the first to place four pieces in a line.
10830 This package is part of the KDE games module.")
10831 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10833 (define-public kblackbox
10836 (version "20.12.0")
10840 (uri (string-append "mirror://kde/stable/release-service/" version
10841 "/src/kblackbox-" version ".tar.xz"))
10843 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10844 (build-system qt-build-system)
10846 `(("extra-cmake-modules" ,extra-cmake-modules)
10847 ("kdoctools" ,kdoctools)))
10849 `(("karchive" ,karchive)
10850 ("kcompletion" ,kcompletion)
10851 ("kconfig" ,kconfig)
10852 ("kcoreaddons" ,kcoreaddons)
10854 ("kdbusaddons" ,kdbusaddons)
10856 ("ktextwidgets" ,ktextwidgets)
10857 ("kxmlgui" ,kxmlgui)
10858 ("libkdegames" ,libkdegames)
10860 ("qtdeclarative" ,qtdeclarative)
10862 (home-page "https://games.kde.org/")
10863 (synopsis "Find atoms in a grid by shooting electrons")
10864 (description "KBlackbox is a game of hide and seek played on a grid of
10865 boxes where the computer has hidden several balls. The position of the hidden
10866 balls can be deduced by shooting beams into the box
10868 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10869 player shoots rays into the grid to deduce the positions of hidden objects.
10871 This package is part of the KDE games module.")
10872 (license (list license:gpl2+ license:fdl1.2+))))
10874 (define-public knetwalk
10877 (version "20.12.0")
10881 (uri (string-append "mirror://kde/stable/release-service/" version
10882 "/src/knetwalk-" version ".tar.xz"))
10884 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10885 (build-system qt-build-system)
10887 `(("extra-cmake-modules" ,extra-cmake-modules)
10888 ("kdoctools" ,kdoctools)))
10890 `(("kcompletion" ,kcompletion)
10891 ("kconfig" ,kconfig)
10892 ("kconfigwidgets" ,kconfigwidgets)
10893 ("kcoreaddons" ,kcoreaddons)
10895 ("kdbusaddons" ,kdbusaddons)
10897 ("ktextwidgets" ,ktextwidgets)
10898 ("kwidgetsaddons" ,kwidgetsaddons)
10899 ("kxmlgui" ,kxmlgui)
10900 ("libkdegames" ,libkdegames)
10902 ("qtdeclarative" ,qtdeclarative)))
10903 (home-page "https://games.kde.org/")
10904 (synopsis "Turn the board pieces to get all computers connected")
10905 (description "KNetWalk is a small game where you have to build up a
10906 computer network by rotating the wires to connect the terminals to the server.
10907 When the network is build, a highscore-list comes up where competitions can be
10910 KNetwalk is a puzzle game where the player arranges sections of wire to
10911 connect all the computers on the board.
10913 This package is part of the KDE games module.")
10914 (license (list license:gpl2+ license:fdl1.2+))))
10916 (define-public bomber
10919 (version "20.12.0")
10923 (uri (string-append "mirror://kde/stable/release-service/" version
10924 "/src/bomber-" version ".tar.xz"))
10926 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10927 (build-system qt-build-system)
10929 `(("extra-cmake-modules" ,extra-cmake-modules)
10930 ("kdoctools" ,kdoctools)))
10932 `(("kcompletiom" ,kcompletion)
10933 ("kconfig" ,kconfig)
10934 ("kcoreaddons" ,kcoreaddons)
10936 ("kdbusaddons" ,kdbusaddons)
10938 ("kxmlgui" ,kxmlgui)
10939 ("libkdegames" ,libkdegames)
10941 ("qtdeclarative" ,qtdeclarative)))
10942 (home-page "https://games.kde.org/")
10943 (synopsis "Arcade bombing game")
10944 (description "Bomber is a single player arcade game.
10946 The player is invading various cities in a plane that is decreasing in height.
10947 The goal of the game is to destroy all the buildings and advance to the next
10948 level. Each level gets a bit harder by increasing the speed of the plane and
10949 the height of the buildings.
10951 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10952 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10953 not destroyed a building in your path, you will crash into it.
10955 This package is part of the KDE games module.")
10956 (license (list license:gpl2+ license:fdl1.2+))))
10958 (define-public granatier
10961 (version "20.12.0")
10965 (uri (string-append "mirror://kde/stable/release-service/" version
10966 "/src/granatier-" version ".tar.xz"))
10968 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10969 (build-system qt-build-system)
10971 `(("extra-cmake-modules" ,extra-cmake-modules)
10972 ("kdoctools" ,kdoctools)))
10974 `(("kcompletion" ,kcompletion)
10975 ("kconfig" ,kconfig)
10976 ("kconfigwidgets" ,kconfigwidgets)
10977 ("kcoreaddons" ,kcoreaddons)
10979 ("kdbusaddons" ,kdbusaddons)
10981 ("knewstuff" ,knewstuff)
10982 ("kwidgetsaddons" ,kwidgetsaddons)
10983 ("kxmlgui" ,kxmlgui)
10984 ("libkdegames" ,libkdegames)
10986 ("qtdeclarative" ,qtdeclarative)
10988 (home-page "https://games.kde.org/")
10989 (synopsis "Bomberman clone")
10990 (description "Granatier is a clone of the classic Bomberman game,
10991 inspired by the work of the Clanbomber clone.
10993 This package is part of the KDE games module.")
10994 (license (list license:gpl2+ license:fdl1.2+))))
10996 (define-public ksirk
10999 (version "20.12.0")
11003 (uri (string-append "mirror://kde/stable/release-service/" version
11004 "/src/ksirk-" version ".tar.xz"))
11006 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11007 (build-system qt-build-system)
11009 `(("extra-cmake-modules" ,extra-cmake-modules)
11010 ("kdoctools" ,kdoctools)))
11012 `(("kcrash" ,kcrash)
11014 ("kiconthemes" ,kiconthemes)
11016 ("knewstuff" ,knewstuff)
11017 ("kwallet" ,kwallet)
11018 ("kxmlgui" ,kxmlgui)
11019 ("libkdegames" ,libkdegames)
11023 ("qtdeclarative" ,qtdeclarative)
11026 (home-page "https://games.kde.org/")
11027 (synopsis "Computerized version of the well known strategy board game
11029 (description "KsirK is a multi-player network-enabled game. The goal of
11030 the game is simply to conquer the world by attacking your neighbors with your
11033 At the beginning of the game, countries are distributed to all the players.
11034 Each country contains one army represented by an infantryman. Each player has
11035 some armies to distribute to his countries. On each turn, each player can
11036 attack his neighbours, eventually conquering one or more countries. At the
11037 end of each turn, some bonus armies are distributed to the players in function
11038 of the number of countries they own. The winner is the player that conquered
11043 @item Support for 1-6 human or computer players
11044 @item Multi-player gaming over a network
11045 @item You can easily create new skins with SVG graphics and the skin editor
11046 @item Hot New Stuff support. You can easily download and install new skins
11049 This package is part of the KDE games module.")
11050 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11052 (define-public palapeli
11055 (version "20.12.0")
11059 (uri (string-append "mirror://kde/stable/release-service/" version
11060 "/src/palapeli-" version ".tar.xz"))
11062 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11063 (build-system qt-build-system)
11065 `(("extra-cmake-modules" ,extra-cmake-modules)
11066 ("kdoctools" ,kdoctools)))
11068 `(("karchive" ,karchive)
11069 ("kcompletion" ,kcompletion)
11070 ("kconfig" ,kconfig)
11071 ("kconfigwidgets" ,kconfigwidgets)
11072 ("kcoreaddons" ,kcoreaddons)
11078 ("kitemviews" ,kitemviews)
11079 ("knotifications" ,knotifications)
11080 ("kservice" ,kservice)
11081 ("kwidgetsaddons" ,kwidgetsaddons)
11082 ("kxmlgui" ,kxmlgui)
11083 ("libkdegames" ,libkdegames)
11085 ("qtdeclarative" ,qtdeclarative)
11087 ("shared-mime-info" ,shared-mime-info)))
11088 (home-page "https://games.kde.org/")
11089 (synopsis "Jigsaw puzzle game")
11090 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11091 that genre, you are not limited to aligning pieces on imaginary grids. The
11092 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11093 everything you do is saved on your disk immediately.
11095 Palapeli is the Finnish word for jigsaw puzzle.
11097 This package is part of the KDE games module.")
11098 (license license:gpl2+)))
11100 (define-public kiriki
11103 (version "20.12.0")
11107 (uri (string-append "mirror://kde/stable/release-service/" version
11108 "/src/kiriki-" version ".tar.xz"))
11110 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11111 (build-system qt-build-system)
11113 `(("extra-cmake-modules" ,extra-cmake-modules)
11114 ("kdoctools" ,kdoctools)))
11116 `(("kcompletion" ,kcompletion)
11117 ("kconfig" ,kconfig)
11118 ("kconfigwidgets" ,kconfigwidgets)
11119 ("kcoreaddons" ,kcoreaddons)
11121 ("kdbusaddons" ,kdbusaddons)
11123 ("kiconthemes" ,kiconthemes)
11124 ("kxmlgui" ,kxmlgui)
11125 ("libkdegames" ,libkdegames)
11127 ("qtdeclarative" ,qtdeclarative)))
11128 (home-page "https://games.kde.org/")
11129 (synopsis "Yahtzee dice game")
11130 (description "Kiriki is an addictive and fun dice game, designed to be
11131 played by as many as six players.
11133 Participants have to collect points by rolling five dice for up to three times
11134 per single turn to make combinations with the highest score.
11136 This package is part of the KDE games module.")
11137 (license (list license:gpl2+ license:fdl1.2+))))
11139 (define-public kigo
11142 (version "20.12.0")
11146 (uri (string-append "mirror://kde/stable/release-service/" version
11147 "/src/kigo-" version ".tar.xz"))
11149 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11150 (build-system qt-build-system)
11152 `(("extra-cmake-modules" ,extra-cmake-modules)
11153 ("kdoctools" ,kdoctools)))
11155 `(("kconfig" ,kconfig)
11156 ("kconfigwidgets" ,kconfigwidgets)
11157 ("kcoreaddons" ,kcoreaddons)
11159 ("kdbusaddons" ,kdbusaddons)
11162 ("knewstuff" ,knewstuff)
11163 ("ktextwidgets" ,ktextwidgets)
11164 ("kxmlgui" ,kxmlgui)
11165 ("libkdegames" ,libkdegames)
11167 ("qtdeclarative" ,qtdeclarative)
11169 (home-page "https://games.kde.org/")
11170 (synopsis "Go board game")
11171 (description "Kigo is an open-source implementation of the popular Go
11174 Go is a strategic board game for two players. It is also known as
11175 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11176 for being rich in strategic complexity despite its simple rules. The game is
11177 played by two players who alternately place black and white stones (playing
11178 pieces, now usually made of glass or plastic) on the vacant intersections of a
11179 grid of 19x19 lines (9x9 or 13x13 for easier games).
11181 You also need to install a go engine, e.g. @code{gnugo}.
11183 This package is part of the KDE games module.")
11184 (license license:gpl3+)))
11186 (define-public kubrick
11189 (version "20.12.0")
11193 (uri (string-append "mirror://kde/stable/release-service/" version
11194 "/src/kubrick-" version ".tar.xz"))
11196 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11197 (build-system qt-build-system)
11199 `(("extra-cmake-modules" ,extra-cmake-modules)
11200 ("kdoctools" ,kdoctools)))
11203 ("kconfig" ,kconfig)
11204 ("kconfigwidgets" ,kconfigwidgets)
11205 ("kcoreaddons" ,kcoreaddons)
11209 ("kwidgetsaddons" ,kwidgetsaddons)
11210 ("kxmlgui" ,kxmlgui)
11211 ("libkdegames" ,libkdegames)
11213 ("qtdeclarative" ,qtdeclarative)
11215 (home-page "https://games.kde.org/")
11216 (synopsis "Game based on Rubik's Cube")
11217 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11219 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11220 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11221 selection of puzzles at several levels of difficulty, as well as demos of
11222 pretty patterns and solution moves, or you can make up your own puzzles. The
11223 game has unlimited undo, redo, save and reload capabilities.
11225 This package is part of the KDE games module.")
11226 (license (list license:gpl2+ license:fdl1.2+))))
11228 (define-public lskat
11231 (version "20.12.0")
11235 (uri (string-append "mirror://kde/stable/release-service/" version
11236 "/src/lskat-" version ".tar.xz"))
11238 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11239 (build-system qt-build-system)
11241 `(("extra-cmake-modules" ,extra-cmake-modules)
11242 ("kdoctools" ,kdoctools)))
11244 `(("kcompletion" ,kcompletion)
11245 ("kconfig" ,kconfig)
11246 ("kcoreaddons" ,kcoreaddons)
11248 ("kguiaddons" ,kguiaddons)
11250 ("kwidgetsaddons" ,kwidgetsaddons)
11251 ("kxmlgui" ,kxmlgui)
11252 ("libkdegames" ,libkdegames)
11254 ("qtdeclarative" ,qtdeclarative)
11256 (home-page "https://games.kde.org/")
11257 (synopsis "Lieutnant Skat card game")
11258 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11259 engaging card game for two players, where the second player is either live
11260 opponent, or a built in artificial intelligence.
11262 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11264 This package is part of the KDE games module.")
11265 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11267 (define-public kapman
11270 (version "20.12.0")
11274 (uri (string-append "mirror://kde/stable/release-service/" version
11275 "/src/kapman-" version ".tar.xz"))
11277 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11278 (build-system qt-build-system)
11280 `(("extra-cmake-modules" ,extra-cmake-modules)
11281 ("kdoctools" ,kdoctools)))
11283 `(("kcompletion" ,kcompletion)
11284 ("kconfig" ,kconfig)
11285 ("kconfigwidgets" ,kconfigwidgets)
11286 ("kcoreaddons" ,kcoreaddons)
11288 ("kdbusaddons" ,kdbusaddons)
11290 ("kxmlgui" ,kxmlgui)
11291 ("libkdegames" ,libkdegames)
11293 ("qtdeclarative" ,qtdeclarative)
11295 (home-page "https://games.kde.org/")
11296 (synopsis "Pac-Man clone")
11297 (description "Kapman is a clone of the well known game Pac-Man.
11299 You must run through the maze to eat all pills without being captured by a
11300 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11301 few seconds. When a stage is cleared of pills and energizer the player is
11302 taken to the next stage with slightly increased game speed
11304 This package is part of the KDE games module.")
11305 (license (list license:gpl2+ license:fdl1.2+))))
11307 (define-public kspaceduel
11309 (name "kspaceduel")
11310 (version "20.12.0")
11314 (uri (string-append "mirror://kde/stable/release-service/" version
11315 "/src/kspaceduel-" version ".tar.xz"))
11317 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11318 (build-system qt-build-system)
11320 `(("extra-cmake-modules" ,extra-cmake-modules)
11321 ("kdoctools" ,kdoctools)))
11323 `(("kcompletion" ,kcompletion)
11324 ("kconfig" ,kconfig)
11325 ("kconfigwidgets" ,kconfigwidgets)
11326 ("kcoreaddons" ,kcoreaddons)
11328 ("kdbusaddons" ,kdbusaddons)
11330 ("kxmlgui" ,kxmlgui)
11331 ("libkdegames" ,libkdegames)
11333 ("qtdeclarative" ,qtdeclarative)
11335 (home-page "https://games.kde.org/")
11336 (synopsis "Two player game with shooting spaceships flying around a sun")
11337 (description "KSpaceduel is a space battle game for one or two players,
11338 where two ships fly around a star in a struggle to be the only survivor.
11340 This package is part of the KDE games module.")
11341 (license (list license:gpl2+ license:fdl1.2+))))
11343 (define-public bovo
11346 (version "20.12.0")
11350 (uri (string-append "mirror://kde/stable/release-service/" version
11351 "/src/bovo-" version ".tar.xz"))
11353 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11354 (build-system qt-build-system)
11356 `(("extra-cmake-modules" ,extra-cmake-modules)
11357 ("kdoctools" ,kdoctools)))
11359 `(("kcompletion" ,kcompletion)
11360 ("kcoreaddons" ,kcoreaddons)
11362 ("kdbusaddons" ,kdbusaddons)
11364 ("kxmlgui" ,kxmlgui)
11365 ("libkdegames" ,libkdegames)
11367 ("qtdeclarative" ,qtdeclarative)
11369 (home-page "https://games.kde.org/")
11370 (synopsis "Classic pen and paper game: five in a line")
11371 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11372 points\") like game for two players, where the opponents alternate in placing
11373 their respective pictogram on the game board. The winner is the first to
11374 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11375 X and O, Naughts and Crosses)
11377 This package is part of the KDE games module.")
11378 (license (list license:gpl2+ license:fdl1.2+))))
11380 (define-public killbots
11383 (version "20.12.0")
11387 (uri (string-append "mirror://kde/stable/release-service/" version
11388 "/src/killbots-" version ".tar.xz"))
11390 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11391 (build-system qt-build-system)
11393 `(("extra-cmake-modules" ,extra-cmake-modules)
11394 ("kdoctools" ,kdoctools)))
11396 `(("kcompletion" ,kcompletion)
11397 ("kconfig" ,kconfig)
11398 ("kconfigwidgets" ,kconfigwidgets)
11399 ("kcoreaddons" ,kcoreaddons)
11401 ("kdbusaddons" ,kdbusaddons)
11403 ("kwidgetsaddons" ,kwidgetsaddons)
11404 ("kxmlgui" ,kxmlgui)
11405 ("libkdegames" ,libkdegames)
11407 ("qtdeclarative" ,qtdeclarative)))
11408 (home-page "https://games.kde.org/")
11409 (synopsis "Port of the classic BSD console game robots")
11410 (description "Killbots is a simple game of evading killer robots.
11412 Who created the robots and why they have been programmed to destroy, no one
11413 knows. All that is known is that the robots are numerous and their sole
11414 objective is to destroy you. Fortunately for you, their creator has focused
11415 on quantity rather than quality and as a result the robots are severely
11416 lacking in intelligence. Your superior wit and a fancy teleportation device
11417 are your only weapons against the never-ending stream of mindless automatons.
11419 This package is part of the KDE games module.")
11420 (license (list license:gpl2+ license:fdl1.2+))))
11422 (define-public ksnakeduel
11424 (name "ksnakeduel")
11425 (version "20.12.0")
11429 (uri (string-append "mirror://kde/stable/release-service/" version
11430 "/src/ksnakeduel-" version ".tar.xz"))
11432 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11433 (build-system qt-build-system)
11435 `(("extra-cmake-modules" ,extra-cmake-modules)
11436 ("kdoctools" ,kdoctools)))
11438 `(("kcompletion" ,kcompletion)
11439 ("kconfig" ,kconfig)
11440 ("kconfigwidgets" ,kconfigwidgets)
11441 ("kcoreaddons" ,kcoreaddons)
11443 ("kdbusaddons" ,kdbusaddons)
11444 ("kguiaddons" ,kguiaddons)
11446 ("kxmlgui" ,kxmlgui)
11447 ("libkdegames" ,libkdegames)
11449 ("qtdeclarative" ,qtdeclarative)
11451 (home-page "https://games.kde.org/")
11452 (synopsis "Snake race played against the computer")
11453 (description "KSnakeDuel is a fast action game where you steer a snake
11454 which has to eat food. While eating the snake grows. But once a player
11455 collides with the other snake or the wall the game is lost. This becomes of
11456 course more and more difficult the longer the snakes grow.
11458 This package is part of the KDE games module.")
11459 (license (list license:gpl2+ license:fdl1.2+))))
11461 (define-public kollision
11464 (version "20.12.0")
11468 (uri (string-append "mirror://kde/stable/release-service/" version
11469 "/src/kollision-" version ".tar.xz"))
11471 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11472 (build-system qt-build-system)
11474 `(("extra-cmake-modules" ,extra-cmake-modules)
11475 ("kdoctools" ,kdoctools)))
11477 `(("kcompletion" ,kcompletion)
11478 ("kconfig" ,kconfig)
11479 ("kcoreaddons" ,kcoreaddons)
11481 ("kdbusaddons" ,kdbusaddons)
11483 ("kwidgetsaddons" ,kwidgetsaddons)
11484 ("kxmlgui" ,kxmlgui)
11485 ("libkdegames" ,libkdegames)
11487 ("qtdeclarative" ,qtdeclarative)))
11488 (home-page "https://games.kde.org/")
11489 (synopsis "Simple ball dodging game")
11490 (description "In Kollision you use mouse to control a small blue ball in a
11491 closed space environment filled with small red balls, which move about
11492 chaotically. Your goal is to avoid touching any of those red balls with your
11493 blue one, because the moment you do the game will be over. The longer you can
11494 stay in game the higher will your score be.
11496 This package is part of the KDE games module.")
11497 (license (list license:gpl2+ license:fdl1.2+))))
11499 (define-public knavalbattle
11501 (name "knavalbattle")
11502 (version "20.12.0")
11506 (uri (string-append "mirror://kde/stable/release-service/" version
11507 "/src/knavalbattle-" version ".tar.xz"))
11509 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11510 (build-system qt-build-system)
11512 `(("extra-cmake-modules" ,extra-cmake-modules)
11513 ("kdoctools" ,kdoctools)))
11516 ("kcompletion" ,kcompletion)
11517 ("kconfig" ,kconfig)
11518 ("kconfigwidgets" ,kconfigwidgets)
11519 ("kcoreaddons" ,kcoreaddons)
11521 ("kdbusaddons" ,kdbusaddons)
11524 ("ktextwidgets" ,ktextwidgets)
11525 ("kxmlgui" ,kxmlgui)
11526 ("libkdegames" ,libkdegames)
11528 ("qtdeclarative" ,qtdeclarative)))
11529 (home-page "https://games.kde.org/")
11530 (synopsis "Battleship board game with built-in game server")
11531 (description "KBattleship is a Battle Ship game for KDE.
11533 Ships are placed on a board which represents the sea. Players try to hit each
11534 others ships in turns without knowing where they are placed. The first player
11535 to destroy all ships wins the game.
11537 This package is part of the KDE games module.")
11538 (license (list license:gpl2+ license:fdl1.2+))))
11540 (define-public kreversi
11543 (version "20.08.3")
11547 (uri (string-append "mirror://kde/stable/release-service/" version
11548 "/src/kreversi-" version ".tar.xz"))
11550 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11551 (build-system qt-build-system)
11553 `(("extra-cmake-modules" ,extra-cmake-modules)
11554 ("kdoctools" ,kdoctools)))
11556 `(("kconfig" ,kconfig)
11557 ("kconfigwidgets" ,kconfigwidgets)
11558 ("kcoreaddons" ,kcoreaddons)
11560 ("kdbusaddons" ,kdbusaddons)
11561 ("kdeclarative" ,kdeclarative)
11563 ("kiconthemes" ,kiconthemes)
11565 ("kxmlgui" ,kxmlgui)
11566 ("libkdegames" ,libkdegames)
11568 ("qtdeclarative" ,qtdeclarative)
11570 (home-page "https://games.kde.org/")
11571 (synopsis "Old reversi board game, also known as othello")
11572 (description "KReversi is a simple one player strategy game played
11573 against the computer.
11575 If a player's piece is captured by an opposing player, that piece is turned
11576 over to reveal the color of that player. A winner is declared when one player
11577 has more pieces of his own color on the board and there are no more possible
11580 This package is part of the KDE games module.")
11581 (license (list license:gpl2+ license:fdl1.2+))))
11583 (define-public ksquares
11586 (version "20.12.0")
11590 (uri (string-append "mirror://kde/stable/release-service/" version
11591 "/src/ksquares-" version ".tar.xz"))
11593 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11594 (build-system qt-build-system)
11596 `(("extra-cmake-modules" ,extra-cmake-modules)
11597 ("kdoctools" ,kdoctools)))
11599 `(("kcompletion" ,kcompletion)
11600 ("kconfig" ,kconfig)
11601 ("kconfigwidgets" ,kconfigwidgets)
11602 ("kcoreaddons" ,kcoreaddons)
11604 ("kdbusaddons" ,kdbusaddons)
11606 ("kwidgetsaddons" ,kwidgetsaddons)
11607 ("kxmlgui" ,kxmlgui)
11608 ("libkdegames" ,libkdegames)
11610 ("qtdeclarative" ,qtdeclarative)))
11611 (home-page "https://games.kde.org/")
11612 (synopsis "Dots and Boxes game")
11613 (description "KSquares is an implementation of the popular paper based
11614 game Squares. Two players take turns connecting dots on a grid to complete
11615 squares, the player with the most squares wins.
11617 This package is part of the KDE games module.")
11618 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11620 (define-public kjumpingcube
11622 (name "kjumpingcube")
11623 (version "20.12.0")
11627 (uri (string-append "mirror://kde/stable/release-service/" version
11628 "/src/kjumpingcube-" version ".tar.xz"))
11630 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11631 (build-system qt-build-system)
11633 `(("extra-cmake-modules" ,extra-cmake-modules)
11634 ("kdoctools" ,kdoctools)))
11636 `(("kconfig" ,kconfig)
11637 ("kconfigwidgets" ,kconfigwidgets)
11638 ("kcoreaddons" ,kcoreaddons)
11640 ("kdbusaddons" ,kdbusaddons)
11643 ("kwidgetsaddons" ,kwidgetsaddons)
11644 ("kxmlgui" ,kxmlgui)
11645 ("libkdegames" ,libkdegames)
11647 ("qtdeclarative" ,qtdeclarative)
11649 (home-page "https://games.kde.org/")
11650 (synopsis "Simple tactical game for number-crunchers")
11651 (description "KJumpingcube is a simple tactical game for one or two
11652 players, played on a grid of numbered squares. Each turn, players compete for
11653 control of the board by capturing or adding to one square.
11655 This package is part of the KDE games module.")
11656 (license (list license:gpl2+ license:fdl1.2+))))
11658 (define-public xmoto
11665 (uri (git-reference
11666 (url "https://github.com/xmoto/xmoto")
11668 (file-name (git-file-name name version))
11670 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11671 (modules '((guix build utils)
11674 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11675 ;; it appears to be incompatible with the (older) one bundled.
11678 (let ((keep '("chipmunk" "glad" "md5sum")))
11679 (with-directory-excursion "vendor"
11680 (for-each delete-file-recursively
11681 (lset-difference string=?
11683 (cons* "." ".." keep))))
11684 (substitute* "src/CMakeLists.txt"
11685 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11686 (if (member library keep) line ""))))
11688 (build-system cmake-build-system)
11690 `(#:tests? #f ;no test
11692 (modify-phases %standard-phases
11693 (add-after 'unpack 'fix-hard-coded-directory
11694 (lambda* (#:key outputs #:allow-other-keys)
11695 (substitute* "src/common/VFileIO.cpp"
11697 (string-append (assoc-ref outputs "out") "/share")))
11699 (add-before 'build 'set-SDL
11700 ;; Set correct environment for SDL.
11701 (lambda* (#:key inputs #:allow-other-keys)
11704 (assoc-ref inputs "sdl") "/include/SDL:"
11705 (or (getenv "CPATH") "")))
11707 (add-after 'install 'unbundle-fonts
11708 ;; Unbundle DejaVuSans TTF files.
11709 (lambda* (#:key outputs inputs #:allow-other-keys)
11710 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11711 "/share/fonts/truetype/"))
11712 (target-dir (string-append (assoc-ref outputs "out")
11713 "/share/xmoto/Textures/Fonts/")))
11714 (for-each (lambda (f)
11715 (let ((font (string-append font-dir f))
11716 (target (string-append target-dir f)))
11717 (delete-file target)
11718 (symlink font target)))
11719 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11722 `(("gettext" ,gettext-minimal)
11723 ("pkg-config" ,pkg-config)))
11727 ("font-dejavu" ,font-dejavu)
11729 ("libjpeg" ,libjpeg-turbo)
11731 ("libxdg-basedir" ,libxdg-basedir)
11732 ("libxml2" ,libxml2)
11735 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11738 (home-page "https://xmoto.tuxfamily.org/")
11739 (synopsis "2D motocross platform game")
11741 "X-Moto is a challenging 2D motocross platform game, where
11742 physics play an all important role in the gameplay. You need to
11743 control your bike to its limit, if you want to have a chance finishing
11744 the more difficult challenges.")
11745 (license (list license:gpl2+ ;whole project
11746 license:bsd-3 ;vendor/md5sum
11750 (define-public eboard
11757 (uri (git-reference
11758 (url "https://github.com/fbergo/eboard")
11759 (commit (string-append "v" version))))
11760 (file-name (git-file-name name version))
11762 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11763 (build-system gnu-build-system)
11766 ("pkg-config" ,pkg-config)))
11770 ("gstreamer" ,gstreamer)))
11774 (modify-phases %standard-phases
11775 (replace 'configure
11776 (lambda* (#:key outputs #:allow-other-keys)
11777 (make-file-writable "eboard-config")
11778 (setenv "CC" "gcc")
11779 (invoke "./configure"
11780 (string-append "--prefix=" (assoc-ref outputs "out")))
11782 (add-before 'install 'make-required-directories
11783 (lambda* (#:key outputs #:allow-other-keys)
11784 (mkdir-p (string-append (assoc-ref outputs "out")
11787 (synopsis "Graphical user interface to play chess")
11789 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11790 and chess engines.")
11791 (home-page "https://www.bergo.eng.br/eboard/")
11792 (license license:gpl2+)))
11794 (define-public chessx
11801 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11802 version "/chessx-" version ".tgz"))
11804 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11805 (build-system qt-build-system)
11807 `(("qttools" ,qttools)))
11809 `(("qtbase" ,qtbase)
11810 ("qtmultimedia" ,qtmultimedia)
11811 ("qtspeech" ,qtspeech)
11817 (modify-phases %standard-phases
11818 (add-after 'unpack 'fix-paths
11819 (lambda* (#:key inputs #:allow-other-keys)
11820 (substitute* "chessx.pro"
11821 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11822 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11823 ;; Fix missing translations.
11824 (("TRANSLATIONS = i18n/chessx_de.ts")
11825 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11826 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11827 i18n/chessx_es.ts"))
11829 (add-after 'fix-paths 'make-qt-deterministic
11831 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11833 (replace 'configure
11838 (lambda* (#:key outputs #:allow-other-keys)
11839 (let ((out (assoc-ref outputs "out")))
11840 (install-file "release/chessx" (string-append out "/bin"))
11841 (install-file "unix/chessx.desktop"
11842 (string-append out "/share/applications")))
11844 (synopsis "Chess game database")
11846 "ChessX is a chess database. With ChessX you can operate on your
11847 collection of chess games in many ways: browse, edit, add, organize, analyze,
11848 etc. You can also play games on FICS or against an engine.")
11849 (home-page "http://chessx.sourceforge.net/")
11850 (license license:gpl2+)))
11852 (define-public stockfish
11859 (uri (git-reference
11860 (url "https://github.com/official-stockfish/Stockfish")
11861 (commit (string-append "sf_" version))))
11862 (file-name (git-file-name name version))
11864 (base32 "15dfp9fnl3w7dgxhqmsm461amsysn646rj1arnzvwhy2i6ijhg2m"))))
11865 (build-system gnu-build-system)
11867 `(("neural-network"
11870 (uri "https://tests.stockfishchess.org/api/nn/nn-62ef826d1a6d.nnue")
11872 (base32 "0qsy9rr4zgxrpgwhwbi96z01a2560am2b00q2klbj4bd39nq5vv2"))))))
11875 #:make-flags (list "-C" "src"
11877 (string-append "PREFIX="
11878 (assoc-ref %outputs "out"))
11879 (string-append "ARCH="
11880 ,(match (%current-system)
11881 ("x86_64-linux" "x86-64")
11882 ("i686-linux" "x86-32")
11883 ("aarch64-linux" "general-64")
11884 ("armhf-linux" "armv7")
11885 ("mips64el-linux" "general-64")
11886 (_ "general-32"))))
11887 #:phases (modify-phases %standard-phases
11888 (delete 'configure)
11889 ;; The official neural network file is needed for building
11890 ;; and is embedded in the resulting binary.
11891 (add-after 'unpack 'copy-net
11892 (lambda* (#:key inputs #:allow-other-keys)
11893 (copy-file (assoc-ref inputs "neural-network")
11894 "src/nn-62ef826d1a6d.nnue")
11896 (synopsis "Strong chess engine")
11898 "Stockfish is a very strong chess engine. It is much stronger than the
11899 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11901 (home-page "https://stockfishchess.org/")
11902 (license license:gpl3+)))
11904 (define-public barrage
11911 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11912 "barrage-" version ".tar.gz"))
11914 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11915 (build-system gnu-build-system)
11917 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11919 ("sdl-mixer" ,sdl-mixer)))
11921 `(#:configure-flags
11923 (string-append "CFLAGS="
11924 "-I" (assoc-ref %build-inputs "sdl-mixer")
11926 (home-page "http://lgames.sourceforge.net/Barrage/")
11927 (synopsis "Violent point-and-click shooting game with nice effects")
11929 "Barrage is a rather destructive action game that puts you on a shooting
11930 range with the objective to hit as many dummy targets as possible within
11931 3 minutes. You control a gun that may either fire small or large grenades at
11932 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11934 (license license:gpl2+)))
11936 (define-public burgerspace
11938 (name "burgerspace")
11943 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11944 "burgerspace-" version ".tar.gz"))
11946 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11947 (build-system gnu-build-system)
11949 `(("pkg-config" ,pkg-config)))
11951 `(("flatzebra" ,flatzebra)))
11952 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11953 (synopsis "Avoid evil foodstuffs and make burgers")
11955 "This is a clone of the classic game BurgerTime. In it, you play
11956 the part of a chef who must create burgers by stepping repeatedly on
11957 the ingredients until they fall into place. And to make things more
11958 complicated, you also must avoid evil animate food items while
11959 performing this task, with nothing but your trusty pepper shaker to
11961 (license license:gpl2+)))
11963 (define-public 7kaa
11966 (version "2.15.4p1")
11970 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11971 "releases/download/v" version "/"
11972 "7kaa-" version ".tar.xz"))
11974 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11975 (build-system gnu-build-system)
11977 `(("gettext" ,gettext-minimal)
11978 ("pkg-config" ,pkg-config)))
11984 (home-page "https://7kfans.com/")
11985 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11987 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11988 Strategy with the addition of trade, diplomacy, and espionage. The game
11989 enables players to compete against up to six other kingdoms allowing players
11990 to conquer opponents by defeating them in war (with troops or machines),
11991 capturing their buildings with spies, or offering opponents money for their
11993 (license license:gpl2+)))
11995 (define-public neverball
11996 ;; Git version is 6-years younger than latest release.
11997 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
12001 (version (git-version "1.6.0" revision commit))
12005 (uri (git-reference
12006 (url "https://github.com/Neverball/neverball")
12010 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12011 (file-name (git-file-name name version))
12012 (modules '((guix build utils)))
12015 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12016 (delete-file-recursively "data/ball/octocat")
12018 (build-system copy-build-system)
12021 '(("neverball" "bin/")
12022 ("neverputt" "bin/")
12024 ("data" "share/games/neverball/")
12025 ("locale" "share/")
12026 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12029 ("dist/" "share/applications" #:include ("neverball.desktop"
12030 "neverputt.desktop"))
12031 ("dist/neverball_16.png"
12032 "/share/icons/hicolor/16x16/apps/neverball.png")
12033 ("dist/neverball_24.png"
12034 "/share/icons/hicolor/24x24/apps/neverball.png")
12035 ("dist/neverball_32.png"
12036 "/share/icons/hicolor/32x32/apps/neverball.png")
12037 ("dist/neverball_48.png"
12038 "/share/icons/hicolor/48x48/apps/neverball.png")
12039 ("dist/neverball_64.png"
12040 "/share/icons/hicolor/64x64/apps/neverball.png")
12041 ("dist/neverball_128.png"
12042 "/share/icons/hicolor/128x128/apps/neverball.png")
12043 ("dist/neverball_256.png"
12044 "/share/icons/hicolor/256x256/apps/neverball.png")
12045 ("dist/neverball_512.png"
12046 "/share/icons/hicolor/512x512/apps/neverball.png")
12047 ("dist/neverputt_16.png"
12048 "/share/icons/hicolor/16x16/apps/neverputt.png")
12049 ("dist/neverputt_24.png"
12050 "/share/icons/hicolor/24x24/apps/neverputt.png")
12051 ("dist/neverputt_32.png"
12052 "/share/icons/hicolor/32x32/apps/neverputt.png")
12053 ("dist/neverputt_48.png"
12054 "/share/icons/hicolor/48x48/apps/neverputt.png")
12055 ("dist/neverputt_64.png"
12056 "/share/icons/hicolor/64x64/apps/neverputt.png")
12057 ("dist/neverputt_128.png"
12058 "/share/icons/hicolor/128x128/apps/neverputt.png")
12059 ("dist/neverputt_256.png"
12060 "/share/icons/hicolor/256x256/apps/neverputt.png")
12061 ("dist/neverputt_512.png"
12062 "/share/icons/hicolor/512x512/apps/neverputt.png")
12063 ("dist/" "share/man/man1" #:include ("mapc.1"))
12064 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12065 ("doc/" "share/doc/neverball")
12066 ("README.md" "share/doc/neverball/"))
12068 (modify-phases %standard-phases
12069 (add-before 'install 'build
12070 (lambda* (#:key inputs outputs #:allow-other-keys)
12071 (let* ((out (assoc-ref outputs "out"))
12072 (sdl (assoc-ref inputs "sdl")))
12073 (invoke "make" "-j" (number->string (parallel-job-count))
12074 "--environment-overrides"
12075 "CC=gcc" "BUILD=release"
12076 (string-append "DATADIR="
12078 "/share/games/neverball/data")
12079 (string-append "LOCALEDIR=" out "/share/locale")
12080 (string-append "SDL_CPPFLAGS=-I"
12082 "/include/SDL2/")))
12084 (add-after 'install 'fix-some-broken-fonts
12085 (lambda* (#:key outputs #:allow-other-keys)
12086 (let* ((out (assoc-ref outputs "out")))
12087 (wrap-program (string-append out "/bin/neverball")
12088 `("LANG" = ("en_US.utf8")))
12089 (wrap-program (string-append out "/bin/neverputt")
12090 `("LANG" = ("en_US.utf8"))))
12093 `(("gettext" ,gettext-minimal))) ;for msgfmt
12095 `(("libjpeg" ,libjpeg-turbo)
12097 ("libvorbis" ,libvorbis)
12099 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12100 (home-page "https://neverball.org/")
12101 (synopsis "3D floor-tilting game")
12103 "In the grand tradition of Marble Madness and Super Monkey Ball,
12104 Neverball has you guide a rolling ball through dangerous territory. Balance
12105 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12106 and shovers to get to the goal. Race against the clock to collect coins to
12107 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12108 game.") ;thanks to Debian for description
12109 (license license:gpl2+))))
12111 (define-public pokerth
12118 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12119 version "/pokerth-" version ".tar.gz"))
12121 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12122 (modules '((guix build utils)))
12125 ;; Remove bundled websocketpp.
12126 (delete-file-recursively "src/third_party/websocketpp")
12127 (substitute* "pokerth_lib.pro"
12128 (("src/third_party/websocketpp")
12131 (build-system qt-build-system)
12136 ("libgcrypt" ,libgcrypt)
12137 ("libircclient" ,libircclient)
12138 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12140 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12142 ("tinyxml" ,tinyxml)
12143 ("websocketpp" ,websocketpp)
12146 `(#:tests? #f ; No test suite
12148 (modify-phases %standard-phases
12149 (add-after 'unpack 'fix-paths
12150 (lambda* (#:key inputs #:allow-other-keys)
12151 (substitute* (find-files "." "\\.pro$")
12153 (assoc-ref inputs "gsasl"))
12154 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12155 (string-append (assoc-ref inputs "libircclient")
12156 "/include/libircclient"))
12158 (string-append "LIB_DIRS = "
12159 (assoc-ref inputs "boost") "/lib")))
12161 (add-after 'unpack 'fix-build
12163 ;; Fixes for Boost versions >= 1.66.
12164 (substitute* '("src/net/common/clientthread.cpp"
12165 "src/net/serveraccepthelper.h")
12166 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12168 (("newSock->io_control\\(command\\);")
12169 "newSock->non_blocking(true);")
12170 (("acceptedSocket->io_control\\(command\\);")
12171 "acceptedSocket->non_blocking(true);"))
12173 (replace 'configure
12174 (lambda* (#:key outputs #:allow-other-keys)
12175 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12176 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12177 (home-page "https://www.pokerth.net")
12178 (synopsis "Texas holdem poker game")
12180 "With PokerTH you can play the Texas holdem poker game, either against
12181 computer opponents or against real players online.")
12182 (license license:agpl3+)))
12184 (define-public azimuth
12187 ;; Not marked as latest release, but it fixes a compiling issue
12188 ;; and adds the install target.
12193 (uri (git-reference
12194 (url "https://github.com/mdsteele/azimuth")
12195 (commit (string-append "v" version))))
12196 (file-name (git-file-name name version))
12199 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12200 (build-system gnu-build-system)
12202 `(#:test-target "test"
12204 (modify-phases %standard-phases
12205 (delete 'configure) ; no configure script
12206 ;; Build release version instead of debug version.
12207 (add-after 'unpack 'set-release
12209 (setenv "BUILDTYPE" "release") #t))
12210 (add-after 'unpack 'fix-install ; set install directory
12211 (lambda* (#:key outputs #:allow-other-keys)
12212 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12213 (inputs `(("sdl" ,sdl)))
12214 (home-page "https://mdsteele.games/azimuth/")
12215 (synopsis "Metroidvania game with vector graphics")
12217 "Pilot your ship inside a planet to find and rescue the colonists trapped
12218 inside the Zenith Colony.")
12219 (license license:gpl3+)))
12221 (define-public cgoban
12228 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12229 version "/cgoban-" version ".tar.gz"))
12231 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12232 (build-system gnu-build-system)
12234 `(("libx11" ,libx11)
12236 ("xorgproto" ,xorgproto)))
12237 (home-page "http://cgoban1.sourceforge.net/")
12238 (synopsis "Go client for X11")
12239 (description "Provides a large set of Go-related services for X11:
12241 @item Local games with precise implementation of the Chinese and Japanese rulesets
12242 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12243 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12246 (license license:gpl2+)))
12248 (define-public passage
12255 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12256 version "/Passage_v" version "_UnixSource.tar.gz"))
12258 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12259 (build-system gnu-build-system)
12261 `(#:tests? #false ; there are none
12263 (modify-phases %standard-phases
12264 (add-after 'unpack 'chdir
12266 (chdir "gamma256/gameSource")
12267 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12268 (replace 'configure
12269 (lambda* (#:key outputs inputs #:allow-other-keys)
12272 (assoc-ref inputs "sdl") "/include/SDL:"
12273 (or (getenv "CPATH") "")))
12274 (let* ((out (assoc-ref outputs "out"))
12275 (assets (string-append out "/share/passage")))
12276 (substitute* "common.cpp"
12277 (("readTGA\\( \"graphics\"")
12278 (format #false "readTGA(\"~a/graphics\"" assets)))
12279 (substitute* "musicPlayer.cpp"
12280 (("readTGA\\( \"music\"")
12281 (format #false "readTGA(\"~a/music\"" assets))))))
12283 (lambda* (#:key outputs #:allow-other-keys)
12284 (let* ((out (assoc-ref outputs "out"))
12285 (bin (string-append out "/bin"))
12286 (assets (string-append out "/share/passage/")))
12287 (install-file "Passage" bin)
12288 (install-file "../documentation/Readme.txt" assets)
12289 (copy-recursively "graphics" (string-append assets "graphics"))
12290 (copy-recursively "music" (string-append assets "music"))
12291 (copy-recursively "settings" (string-append assets "settings"))))))))
12293 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12295 `(("imagemagick" ,imagemagick)))
12296 (home-page "http://hcsoftware.sourceforge.net/passage/")
12297 (synopsis "Memento mori game")
12299 "Passage is meant to be a memento mori game. It presents an entire life,
12300 from young adulthood through old age and death, in the span of five minutes.
12301 Of course, it's a game, not a painting or a film, so the choices that you make
12302 as the player are crucial. There's no ``right'' way to play Passage, just as
12303 there's no right way to interpret it.")
12304 (license license:public-domain)))
12306 (define-public paperview
12307 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12311 (version (git-version "0.0.1" revision commit)) ;no upstream release
12314 (uri (git-reference
12315 (url "https://github.com/glouw/paperview")
12317 (file-name (git-file-name name version))
12320 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12321 (build-system gnu-build-system)
12325 '(#:tests? #f ;no tests
12327 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12329 (modify-phases %standard-phases
12330 (delete 'configure))))
12331 (home-page "https://github.com/glouw/paperview/")
12332 (synopsis "High performance X11 animated wallpaper setter")
12333 (description "High performance animated desktop background setter for
12334 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12336 (license license:unlicense))))
12338 (define-public curseofwar
12340 (name "curseofwar")
12345 (uri (git-reference
12346 (url "https://github.com/a-nikolaev/curseofwar")
12347 (commit (string-append "v" version))))
12348 (file-name (git-file-name name version))
12350 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12351 (build-system gnu-build-system)
12353 `(#:tests? #f ; no tests
12355 (list (string-append "CC=" ,(cc-for-target))
12356 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12358 (modify-phases %standard-phases
12359 (delete 'configure))))
12360 (inputs `(("ncurses" ,ncurses)))
12361 (home-page "https://a-nikolaev.github.io/curseofwar/")
12362 (synopsis "Fast-paced action strategy game")
12363 (description "Curse of War is a fast-paced action strategy game originally
12364 implemented using ncurses user interface. An SDL graphical version is also
12366 (license license:gpl3+)))