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, 2021 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020, 2021 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 Quizzes: 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 "0kba0011nswc2csqlzkd7bas307zm5813zlnby5vsmxn08rnar4y"))))
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-2048
1632 (uri (string-append "mirror://gnome/sources/gnome-2048/"
1633 (version-major+minor version) "/"
1634 "gnome-2048-" version ".tar.xz"))
1637 "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"))))
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 ("clutter" ,clutter)
1652 ("clutter-gtk" ,clutter-gtk)
1654 ("libgnome-games-support" ,libgnome-games-support)))
1656 `(("gettext" ,gettext-minimal)
1657 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1658 ("itstool" ,itstool)
1659 ("libxml2" ,libxml2)
1660 ("pkg-config" ,pkg-config)
1662 (home-page "https://wiki.gnome.org/Apps/2048")
1663 (synopsis "Move the tiles until you obtain the 2048 tile")
1664 (description "GNOME 2048 provides a 2D grid for playing 2048, a
1665 single-player sliding tile puzzle game. The objective of the game is to merge
1666 together adjacent tiles of the same number until the sum of 2048 is achieved
1668 (license license:gpl3+)))
1670 (define-public gnome-chess
1672 (name "gnome-chess")
1676 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1677 (version-major+minor version) "/"
1678 "gnome-chess-" version ".tar.xz"))
1681 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1682 (build-system meson-build-system)
1686 (modify-phases %standard-phases
1687 (add-after 'unpack 'skip-gtk-update-icon-cache
1688 ;; Don't create 'icon-theme.cache'.
1690 (substitute* "meson_post_install.py"
1691 (("gtk-update-icon-cache") "true"))
1695 ("librsvg" ,librsvg)))
1697 `(("gettext" ,gettext-minimal)
1698 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1699 ("itstool" ,itstool)
1700 ("pkg-config" ,pkg-config)
1702 (home-page "https://wiki.gnome.org/Apps/Chess")
1703 (synopsis "Chess board for GNOME")
1704 (description "GNOME Chess provides a 2D board for playing chess games
1705 against human or computer players. It supports loading and saving games in
1706 Portable Game Notation. To play against a computer, install a chess engine
1707 such as chess or stockfish.")
1708 (license license:gpl3+)))
1710 (define-public gnubg
1713 (version "1.06.002")
1717 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1718 version "-sources.tar.gz"))
1721 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1722 (build-system gnu-build-system)
1723 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1724 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1725 ("pango" ,pango-1.42)
1728 ("readline" ,readline)
1732 ("gtkglext" ,gtkglext)
1734 ("libcanberra" ,libcanberra)))
1735 (native-inputs `(("python-2" ,python-2)
1736 ("pkg-config" ,pkg-config)))
1739 ;; SSE instructions are available on Intel systems only.
1740 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1743 '("--enable-simd=sse2") ; prevent avx instructions
1746 (modify-phases %standard-phases
1747 (add-after 'install 'install-desktop-file
1748 (lambda* (#:key outputs #:allow-other-keys)
1749 (let* ((out (assoc-ref outputs "out"))
1750 (apps (string-append out "/share/applications")))
1752 (with-output-to-file (string-append apps "/gnubg.desktop")
1756 Name=GNU Backgammon~@
1757 Exec=~a/bin/gnubg -w~@
1764 (home-page "https://www.gnu.org/software/gnubg/")
1765 (synopsis "Backgammon game")
1766 (description "The GNU backgammon application (also known as \"gnubg\") can
1767 be used for playing, analyzing and teaching the game. It has an advanced
1768 evaluation engine based on artificial neural networks suitable for both
1769 beginners and advanced players. In addition to a command-line interface, it
1770 also features an attractive, 3D representation of the playing board.")
1771 (license license:gpl3+)))
1773 (define-public gnubik
1780 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1784 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1785 (build-system gnu-build-system)
1787 '(#:phases (modify-phases %standard-phases
1788 (add-after 'unpack 'skip-gtk-update-icon-cache
1790 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1791 ;; unnecessary and causes a needless dependency on glib.
1792 (substitute* "Makefile.in"
1793 (("gtk-update-icon-cache")
1796 (inputs `(("gtk+" ,gtk+-2)
1800 ("guile" ,guile-2.0)
1801 ("gtkglext" ,gtkglext)))
1802 (native-inputs `(("gettext" ,gettext-minimal)
1803 ("pkg-config" ,pkg-config)))
1804 (home-page "https://www.gnu.org/software/gnubik/")
1805 (synopsis "3d Rubik's cube game")
1807 "GNUbik is a puzzle game in which you must manipulate a cube to make
1808 each of its faces have a uniform color. The game is customizable, allowing
1809 you to set the size of the cube (the default is 3x3) or to change the colors.
1810 You may even apply photos to the faces instead of colors. The game is
1811 scriptable with Guile.")
1812 (license license:gpl3+)))
1814 (define-public gnushogi
1821 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1825 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1826 (arguments `(#:tests? #f)) ;; No check target.
1827 (build-system gnu-build-system)
1828 (home-page "https://www.gnu.org/software/gnushogi/")
1829 (synopsis "The game of Shogi (Japanese chess)")
1830 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1831 Chess). It is similar to standard chess but this variant is far more complicated.")
1832 (license license:gpl3+)))
1834 (define-public ltris
1841 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1842 "ltris-" version ".tar.gz"))
1844 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1845 (build-system gnu-build-system)
1847 '(;; The code in LTris uses traditional GNU semantics for inline functions
1848 #:configure-flags '("CFLAGS=-fgnu89-inline")
1850 (modify-phases %standard-phases
1851 (add-after 'set-paths 'set-sdl-paths
1852 (lambda* (#:key inputs #:allow-other-keys)
1854 (string-append (assoc-ref inputs "sdl-union")
1856 (or (getenv "CPATH") "")))
1859 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1860 (home-page "http://lgames.sourceforge.net/LTris/")
1861 (synopsis "Tetris clone based on the SDL library")
1863 "LTris is a tetris clone: differently shaped blocks are falling down the
1864 rectangular playing field and can be moved sideways or rotated by 90 degree
1865 units with the aim of building lines without gaps which then disappear (causing
1866 any block above the deleted line to fall down). LTris has three game modes: In
1867 Classic you play until the stack of blocks reaches the top of the playing field
1868 and no new blocks can enter. In Figures the playing field is reset to a new
1869 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1870 up to three players (either human or CPU) compete with each other sending
1871 removed lines to all opponents. There is also a Demo mode in which you can
1872 watch your CPU playing while enjoying a cup of tea!")
1873 (license license:gpl2+)))
1875 (define-public nethack
1883 (string-append "https://www.nethack.org/download/" version "/nethack-"
1884 (string-join (string-split version #\.) "") "-src.tgz"))
1886 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1891 `(("ncurses" ,ncurses)
1893 (build-system gnu-build-system)
1896 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1898 (modify-phases %standard-phases
1899 (add-before 'configure 'patch-paths
1901 (substitute* "sys/unix/nethack.sh"
1903 (substitute* "sys/unix/Makefile.utl"
1904 (("^YACC *=.*$") "YACC = bison -y\n")
1905 (("^LEX *=.*$") "LEX = flex\n")
1906 (("^# CC = gcc") "CC = gcc"))
1907 (substitute* "sys/unix/hints/linux"
1908 (("/bin/gzip") (string-append
1909 (assoc-ref %build-inputs "gzip")
1911 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1912 (substitute* "include/config.h"
1913 (("^.*define CHDIR.*$") "")
1914 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1915 ;; Honor SOURCE_DATE_EPOCH.
1916 "#define REPRODUCIBLE_BUILD"))
1918 ;; Note: 'makedefs' rejects and ignores dates that are too old
1919 ;; or too new, so we must choose something reasonable here.
1920 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1922 (substitute* "sys/unix/Makefile.src"
1923 (("^# CC = gcc") "CC = gcc"))
1927 (let ((bash (string-append
1928 (assoc-ref %build-inputs "bash")
1930 (with-directory-excursion "sys/unix"
1931 (substitute* "setup.sh" (("/bin/sh") bash))
1932 (invoke bash "setup.sh" "hints/linux"))
1934 (add-after 'install 'fixup-paths
1936 (let* ((output (assoc-ref %outputs "out"))
1937 (nethack-script (string-append output "/bin/nethack")))
1938 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1942 (string-append output "/games/lib/nethackdir/" file)
1943 (string-append output "/games/lib/nethackuserdir/"
1945 '("xlogfile" "logfile" "perm" "record" "save"))
1946 (mkdir-p (string-append output "/bin"))
1947 (call-with-output-file nethack-script
1949 (format port "#!~a/bin/sh
1951 if [ ! -d ~~/.config/nethack ]; then
1952 mkdir -p ~~/.config/nethack
1953 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1954 chmod -R +w ~~/.config/nethack
1965 for i in ~~/.config/nethack/*; do
1966 ln -s $i $(basename $i)
1968 for i in ~a/games/lib/nethackdir/*; do
1969 ln -s $i $(basename $i)
1972 (assoc-ref %build-inputs "bash")
1973 (list->search-path-as-string
1976 (assoc-ref %build-inputs "coreutils") "/bin")
1978 (assoc-ref %build-inputs "less") "/bin"))
1983 (chmod nethack-script #o555)
1986 (home-page "https://nethack.org")
1987 (synopsis "Classic dungeon crawl game")
1988 (description "NetHack is a single player dungeon exploration game that runs
1989 on a wide variety of computer systems, with a variety of graphical and text
1990 interfaces all using the same game engine. Unlike many other Dungeons &
1991 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1992 the dungeon and not simply killing everything in sight - in fact, killing
1993 everything in sight is a good way to die quickly. Each game presents a
1994 different landscape - the random number generator provides an essentially
1995 unlimited number of variations of the dungeon and its denizens to be discovered
1996 by the player in one of a number of characters: you can pick your race, your
1997 role, and your gender.")
1999 (license:fsdg-compatible
2000 "https://nethack.org/common/license.html"))))
2002 (define-public pipewalker
2009 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
2010 version "/pipewalker-" version ".tar.gz"))
2012 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
2013 (build-system gnu-build-system)
2016 (list (string-append "--docdir=" (assoc-ref %outputs "out")
2017 "/share/doc/" ,name "-" ,version))
2019 (modify-phases %standard-phases
2020 (add-after 'configure 'patch-docdir
2021 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
2023 (substitute* "Makefile"
2024 (("(pkgdocdatadir = ).*" _ assignment)
2025 (string-append assignment "$(docdir)\n")))
2028 `(("libpng" ,libpng)
2031 (home-page "http://pipewalker.sourceforge.net/")
2032 (synopsis "Logical tile puzzle")
2034 "PipeWalker is a simple puzzle game with many diffent themes: connect all
2035 computers to one network server, bring water from a source to the taps, etc.
2036 The underlying mechanism is always the same: you must turn each tile in the
2037 grid in the right direction to combine all components into a single circuit.
2038 Every puzzle has a complete solution, although there may be more than one.")
2039 (license license:gpl3+)))
2041 (define-public prboom-plus
2043 (name "prboom-plus")
2047 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2048 version "/prboom-plus-" version ".tar.gz"))
2050 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2051 (modules '((guix build utils)))
2054 (substitute* "src/version.c"
2058 (build-system gnu-build-system)
2060 '(#:configure-flags '("--disable-cpu-opt")
2061 #:make-flags `(,(string-append "gamesdir="
2062 (assoc-ref %outputs "out") "/bin"))
2064 (modify-phases %standard-phases
2065 (add-after 'set-paths 'set-sdl'paths
2066 (lambda* (#:key inputs #:allow-other-keys)
2068 (string-append (assoc-ref inputs "sdl-union")
2070 (or (getenv "CPATH") "")))
2073 `(("fluidsynth" ,fluidsynth)
2077 ("libvorbis" ,libvorbis)
2079 ("portmidi" ,portmidi)
2080 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2081 (home-page "http://prboom-plus.sourceforge.net/")
2082 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2084 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2085 (license license:gpl2+)))
2087 (define-public retux
2088 (let ((release "1.4.1")
2092 (version (if (zero? revision)
2094 (string-append release "-"
2095 (number->string revision))))
2098 (uri (string-append "https://github.com/retux-game/retux/"
2099 "releases/download/v"
2101 release "-src.tar.gz"))
2104 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
2105 (build-system python-build-system)
2107 `(#:tests? #f ; no check target
2109 (modify-phases %standard-phases
2110 ;; no setup.py script
2113 (lambda* (#:key outputs #:allow-other-keys)
2114 (let* ((out (assoc-ref outputs "out"))
2115 (bin (string-append out "/bin"))
2116 (data (string-append out "/share/retux")))
2119 (substitute* "retux.py"
2120 ;; Use the correct data directory.
2121 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2122 (string-append "\"" data "\",")))
2124 (copy-file "retux.py" (string-append bin "/retux"))
2125 (copy-recursively "data" data)
2128 `(("python-sge-pygame" ,python-sge-pygame)
2129 ("python-six" ,python-six)
2130 ("python-xsge" ,python-xsge)))
2131 (home-page "https://retux-game.github.io/")
2132 (synopsis "Action platformer game")
2134 "ReTux is an action platformer loosely inspired by the Mario games,
2135 utilizing the art assets from the @code{SuperTux} project.")
2136 ;; GPL version 3 or later is the license for the code and some art.
2137 ;; The rest of the licenses are for the art exclusively, as listed in
2139 (license (list license:cc0
2146 (define-public roguebox-adventures
2148 (name "roguebox-adventures")
2154 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2155 (string-join (string-split version #\.) "_") "_Source.zip"))
2156 (file-name (string-append name "-" version ".zip"))
2159 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2160 (build-system python-build-system)
2162 `(#:tests? #f ; no check target
2164 (modify-phases %standard-phases
2166 (lambda* (#:key source #:allow-other-keys)
2167 (and (invoke "unzip" source)
2168 ;; The actual source is buried a few directories deep.
2169 (chdir (string-append "RogueBoxAdventures_v"
2171 (string-split ,version #\.) "_")
2173 ;; no setup.py script
2175 (lambda* (#:key outputs #:allow-other-keys)
2176 (let* ((out (assoc-ref outputs "out"))
2177 (data (string-append
2178 out "/share/games/roguebox-adventures")))
2179 ;; Use the correct data directory.
2180 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2181 (("basic_path + os\\.sep + 'DATA'")
2182 (string-append "'" data "'"))
2184 (string-append "basic_path ='" data "'\n")))
2185 (substitute* "LIB/dialog.py"
2186 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2187 (string-append "d_path = '" data "'")))
2188 (substitute* "LIB/gra_files.py"
2189 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2190 (string-append "basic_path ='" data "'\n")))
2192 ;; The game must save in the user's home directory because
2193 ;; the store is read-only.
2194 (substitute* "main.py"
2195 (("home_save = False") "home_save = True")
2196 (("'icon_small.png'")
2197 (string-append "'" data "/icon_small.png'"))))
2200 (lambda* (#:key outputs #:allow-other-keys)
2201 (let* ((out (assoc-ref outputs "out"))
2202 (bin (string-append out "/bin"))
2203 (roguebox-adventures
2204 (string-append bin "/roguebox-adventures"))
2205 (data (string-append
2206 out "/share/games/roguebox-adventures"))
2207 (lib (string-append data "/LIB"))
2209 out "/share/doc/roguebox-adventures")))
2213 (for-each (lambda (file)
2214 (copy-recursively file
2215 (string-append data "/" file)))
2216 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2217 "icon_big.png" "icon_small.png"))
2218 (for-each (lambda (file)
2220 (install-file file lib))
2221 '("main.py" "run.py"))
2223 (copy-recursively "DOC" doc)
2225 (call-with-output-file
2230 export PYTHONPATH=~a/LIB:~a
2231 exec -a \"~a\" ~a \"$@\"\n"
2232 (which "bash") data (getenv "PYTHONPATH")
2234 (string-append lib "/main.py"))))
2235 (chmod roguebox-adventures #o555))
2238 `(("unzip" ,unzip)))
2240 `(("python-pygame" ,python-pygame)
2241 ("python-tmx" ,python-tmx)))
2242 (home-page "https://rogueboxadventures.tuxfamily.org")
2243 (synopsis "A classical roguelike/sandbox game")
2245 "RogueBox Adventures is a graphical roguelike with strong influences
2246 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2247 Adventures is to offer the player a kind of roguelike toy-world. This world
2248 can be explored and changed freely.")
2249 ;; The GPL3+ is for code, the rest are for art.
2250 (license (list license:cc0
2253 license:silofl1.1))))
2255 (define-public seahorse-adventures
2257 (name "seahorse-adventures")
2263 (url "https://github.com/dulsi/seahorse-adventures")
2264 (commit (string-append "release-" version))))
2265 (file-name (git-file-name name version))
2267 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2268 (modules '((guix build utils)
2271 ;; Remove non-free (non-commercial) font.
2274 (for-each delete-file (find-files "data/fonts" "."))
2276 (build-system python-build-system)
2278 `(#:tests? #f ;no test
2280 (modify-phases %standard-phases
2281 (delete 'build) ;pure Python
2282 (replace 'install ;no install script
2283 (lambda* (#:key outputs #:allow-other-keys)
2284 (let* ((out (assoc-ref outputs "out"))
2285 (bin (string-append out "/bin"))
2286 (share (string-append out "/share"))
2287 (applications (string-append share "/applications"))
2288 (data (string-append share "/seahorse-adventures")))
2290 (for-each (lambda (f)
2292 (install-file f data))
2293 '("leveledit.py" "run_game.py" "tileedit.py"))
2294 (for-each (lambda (dir)
2295 (let ((target (string-append data "/" dir)))
2297 (copy-recursively dir target)))
2299 ;; Create executable.
2301 (let ((executable (string-append bin "/seahorse-adventures")))
2302 (call-with-output-file executable
2306 export PYTHONPATH=~a:~a~@
2307 exec -a \"~a\" ~a \"$@\"~%"
2308 (which "bash") data (getenv "PYTHONPATH")
2310 (string-append data "/run_game.py"))))
2311 (chmod executable #o555))
2312 ;; Add desktop file.
2313 (mkdir-p applications)
2314 (make-desktop-entry-file
2315 (string-append applications "/seahorse-adventures.desktop")
2316 #:name "Seahorse Adventures"
2318 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2321 #:categories '("Game" "ActionGame")
2322 #:keywords '("game" "retro" "platform"))
2326 (let ((dir (string-append share "/icons/hicolor/"
2327 size "x" size "/apps")))
2330 (string-append "icon" size ".png")
2331 (string-append dir "/searhorse-adventures.png"))))
2332 '("32" "64" "128")))
2334 (add-after 'install 'unbundle-fonts
2335 ;; Unbundle Bitstream Vera font and replace deleted one.
2336 (lambda* (#:key outputs inputs #:allow-other-keys)
2337 (let* ((out (assoc-ref outputs "out"))
2338 (data (string-append out "/share/seahorse-adventures"))
2339 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2340 "/share/fonts/truetype/Vera.ttf")))
2341 (let ((themes-dir (string-append data "/data/themes/")))
2344 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2345 (delete-file target)
2346 (symlink vera target)))
2347 '("default" "gray")))
2348 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2349 (substitute* (string-append data "/lib/main.py")
2350 (("f_scale = 0.35") "f_scale = 0.47")))
2353 `(("font-bitstream-vera" ,font-bitstream-vera)
2354 ("python-pygame" ,python-pygame)))
2355 (home-page "http://www.imitationpickles.org/barbie/")
2356 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2358 "Barbie Seahorse Adventures is a retro style platform arcade game.
2359 You are Barbie the seahorse who travels through the jungle, up to the
2360 volcano until you float on bubbles to the moon. On the way to your
2361 final destination you will encounter various enemies, servants of the
2362 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2363 and defeat them with your bubbles!")
2364 ;; GPL2+ is for code, CC0 is for art.
2365 (license (list license:gpl2+ license:cc0))))
2367 (define-public solarus
2370 ;; XXX: When updating this package, please also update hash in
2371 ;; `solarus-quest-editor' below.
2377 (url "https://gitlab.com/solarus-games/solarus")
2378 (commit (string-append "v" version))))
2379 (file-name (git-file-name name version))
2381 (base32 "0ny9dgqphjv2l39rff2621hnrzpf8qin8vmnv7jdz20azjk4m8id"))))
2382 (build-system cmake-build-system)
2385 (modify-phases %standard-phases
2386 (add-after 'unpack 'disable-failing-tests
2387 ;; The following tests fail reporting a missing "/dev/dri"
2390 (substitute* "tests/cmake/AddTestMaps.cmake"
2391 ((".*1200_create_shader_from_source.*" all)
2392 (string-append "#" all))
2393 ((".*1210_shader_scaling_factor.*" all)
2394 (string-append "#" all)))
2396 (add-before 'check 'set-home
2397 ;; Tests fail without setting the following environment
2400 (setenv "HOME" (getcwd))
2401 (setenv "XDG_RUNTIME_DIR" (getcwd))
2404 `(("pkg-config" ,pkg-config)
2405 ("qttools" ,qttools)))
2408 ("libmodplug" ,libmodplug)
2410 ("libvorbis" ,libvorbis)
2415 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2416 (home-page "https://www.solarus-games.org/")
2417 (synopsis "Lightweight game engine for Action-RPGs")
2419 "Solarus is a 2D game engine written in C++, that can run games
2420 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2422 ;; The source code is licensed under the terms of GPL-3.0.
2423 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2425 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2427 (define-public solarus-quest-editor
2430 (name "solarus-quest-editor")
2431 (version (package-version solarus))
2436 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2437 (commit (string-append "v" version))))
2438 (file-name (git-file-name name version))
2440 (base32 "1pvjgd4faxii5sskw1h55lw90hlbazhwni8nxyywzrmkjbq7irm0"))))
2442 `(#:tests? #false)) ; no test suite
2444 `(("solarus" ,solarus)
2445 ,@(package-inputs solarus)))
2446 (synopsis "Create and modify quests for the Solarus engine")
2448 "Solarus Quest Editor is a graphical user interface to create and
2449 modify quests for the Solarus engine.")))
2451 (define-public superstarfighter
2453 (name "superstarfighter")
2459 (url "https://github.com/notapixelstudio/superstarfighter")
2460 (commit (string-append "v" version))))
2461 (file-name (git-file-name name version))
2463 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2464 (build-system gnu-build-system)
2466 `(#:tests? #f ;there are no tests
2468 (modify-phases %standard-phases
2472 (setenv "HOME" (getcwd))
2473 (with-output-to-file "export_presets.cfg"
2478 platform=\"Linux/X11\"
2480 [preset.0.options]")))
2484 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2485 (invoke (string-append godot "/bin/godot_server")
2486 "--export-pack" "Guix"
2487 "superstarfighter.pck" "project.godot"))
2490 (lambda* (#:key inputs outputs #:allow-other-keys)
2491 (let* ((out (assoc-ref outputs "out"))
2492 (bin (string-append out "/bin"))
2493 (share (string-append out "/share"))
2494 (data (string-append share "/superstarfighter"))
2495 (icons (string-append share "/icons/hicolor/256x256/apps")))
2496 (install-file "superstarfighter.pck" data)
2498 (call-with-output-file (string-append bin "/superstarfighter")
2502 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2503 (assoc-ref inputs "godot")
2505 (chmod port #o755)))
2507 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2508 (make-desktop-entry-file
2509 (string-append share "/applications/" ,name ".desktop")
2510 #:name "SuperStarfighter"
2511 #:comment "Fast-paced arcade combat game"
2514 #:categories '("Game" "ArcadeGame")))
2517 `(("godot-headless" ,godot "headless")))
2519 `(("godot" ,godot)))
2520 (home-page "https://notapixel.itch.io/superstarfighter")
2521 (synopsis "Fast-paced local multiplayer arcade game")
2522 (description "In SuperStarfighter, up to four local players compete in a
2523 2D arena with fast-moving ships and missiles. Different game types are
2524 available, as well as a single-player mode with AI-controlled ships.")
2525 (license (list license:expat ; game
2526 license:silofl1.1)))) ; fonts
2528 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2529 (define %ufoai-revision "0")
2530 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2531 (define ufoai-source
2535 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2536 (commit %ufoai-commit)))
2537 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2540 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2541 (modules '((guix build utils)
2546 ;; Delete ~32MiB of bundled dependencies.
2547 (with-directory-excursion "src/libs"
2548 (for-each delete-file-recursively
2549 (lset-difference equal? (scandir ".")
2550 '("." ".." "gtest" "mumble"))))
2552 ;; Use relative path to Lua headers.
2553 (substitute* "src/common/scripts_lua.h"
2554 (("\\.\\./libs/lua/") ""))
2556 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2557 ;; it as a separate package. This way we don't need to make the same
2558 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2559 (substitute* "build/maps.mk"
2560 (("\\./ufo2map") "ufo2map")
2561 (("maps: ufo2map") "maps:"))
2562 (substitute* "build/modules/testall.mk"
2563 (("testall: ufo2map") "testall:"))
2565 ;; If no cURL headers are found, the build system will try to include
2566 ;; the bundled version, even when not required. Prevent that.
2567 (substitute* "build/default.mk"
2568 (("^include src/libs/curl/lib/Makefile\\.inc")
2571 ;; While here, improve reproducibility by adding the '-X' flag to the
2572 ;; zip command used to create the map files, in order to prevent time
2573 ;; stamps from making it into the generated archives.
2574 (substitute* "build/data.mk"
2575 (("\\$\\(call ZIP\\)")
2579 (define-public trigger-rally
2581 (name "trigger-rally")
2586 (uri (string-append "mirror://sourceforge/trigger-rally/"
2587 "trigger-" version "/"
2588 "trigger-rally-" version ".tar.gz"))
2591 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2592 (build-system gnu-build-system)
2594 `(("freealut" ,freealut)
2600 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2601 ("tinyxml2" ,tinyxml2)))
2603 `(#:make-flags (list (string-append "prefix=" %output)
2604 "bindir=$(prefix)/bin"
2605 "datadir=$(datarootdir)"
2607 #:tests? #f ; No tests present
2609 (modify-phases %standard-phases
2611 (add-before 'build 'cd-src
2612 (lambda _ (chdir "src")))
2613 (add-before 'build 'remove-timestamps
2615 (substitute* (list "Trigger/menu.cpp"
2617 ((".*__DATE__.*") ""))))
2618 (add-before 'build 'make-verbose
2620 (substitute* "GNUmakefile"
2621 (("@\\$\\(CXX\\)") "$(CXX)"))))
2622 (add-after 'build 'set-data-path
2623 (lambda* (#:key outputs #:allow-other-keys)
2624 (let ((out (assoc-ref outputs "out")))
2625 (substitute* "../bin/trigger-rally.config.defs"
2626 (("<data path=\"C:[^\"]*\"")
2627 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2628 (add-after 'install 'create-desktop-entry
2629 (lambda* (#:key outputs #:allow-other-keys)
2630 (let* ((out (assoc-ref outputs "out"))
2631 (apps (string-append out "/share/applications")))
2633 (with-output-to-file
2634 (string-append apps "/trigger-rally.desktop")
2636 (format #t ; Borrowed from Debian package
2638 Name=Trigger Rally~@
2639 Icon=trigger-rally~@
2640 Comment=3D rally racing car game~@
2641 Comment[de]=3D Rally-Autorennen~@
2642 Comment[fr_FR]=un jeu de rally en 3D~@
2643 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2644 Exec=~a/bin/trigger-rally~@
2646 StartupNotify=false~@
2648 TryExec=~:*~a/bin/trigger-rally~@
2649 Categories=Game;ArcadeGame;~@
2650 Keywords=racing;tracks;~@
2651 Keywords[de]=Rennstrecke;~%"
2653 (home-page "http://trigger-rally.sourceforge.net")
2654 (synopsis "Fast-paced single-player racing game")
2655 (description "Trigger-rally is a 3D rally simulation with great physics
2656 for drifting on over 200 maps. Different terrain materials like dirt,
2657 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2658 this rally simulation the edge over many other games. You need to make it
2659 through the maps in often tight time limits and can further improve by beating
2660 the recorded high scores. All attached single races must be finished in time
2661 in order to win an event, unlocking additional events and cars. Most maps are
2662 equipped with spoken co-driver notes and co-driver icons.")
2663 (license (list license:cc0 ;textures and audio in data.zip
2666 (define-public ufo2map
2669 (version %ufoai-version)
2670 (home-page "https://ufoai.org/")
2671 (source ufoai-source)
2672 (build-system gnu-build-system)
2674 '(#:configure-flags '("CC=gcc" "CXX=g++"
2677 "--disable-uforadiant"
2678 "--disable-cgame-campaign"
2679 "--disable-cgame-multiplayer"
2680 "--disable-cgame-skirmish"
2686 "--disable-ufomodel"
2687 "--disable-ufoslicer")
2688 #:tests? #f ;no tests
2689 #:phases (modify-phases %standard-phases
2691 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2692 ;; The home-made configure script does not understand
2693 ;; some of the default flags of gnu-build-system.
2694 (apply invoke "./configure" configure-flags)))
2696 (lambda* (#:key outputs #:allow-other-keys)
2697 (let ((out (assoc-ref outputs "out")))
2698 (install-file "ufo2map" (string-append out "/bin"))
2699 (install-file "debian/ufo2map.6"
2700 (string-append out "/share/man/man6"))
2703 `(("pkg-config" ,pkg-config)))
2705 `(("libjpeg" ,libjpeg-turbo)
2708 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2709 (synopsis "UFO: AI map generator")
2711 "This package provides @command{ufo2map}, a program used to generate
2712 maps for the UFO: Alien Invasion strategy game.")
2713 (license license:gpl2+)))
2718 (version %ufoai-version)
2719 (home-page "https://ufoai.org/")
2720 (source ufoai-source)
2721 (build-system gnu-build-system)
2724 #:configure-flags '("CC=gcc" "CXX=g++")
2725 #:phases (modify-phases %standard-phases
2727 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2728 (apply invoke "./configure" configure-flags)))
2730 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2732 "-j" (if parallel-build?
2733 (number->string (parallel-job-count))
2736 (add-after 'build 'pack
2738 (invoke "make" "pk3")))
2740 (lambda* (#:key outputs #:allow-other-keys)
2741 (let ((out (assoc-ref outputs "out")))
2742 (for-each (lambda (file)
2743 (install-file file out))
2744 (find-files "base" "\\.pk3$"))
2747 `(("python" ,python-2)
2748 ("ufo2map" ,ufo2map)
2751 (synopsis "UFO: AI data files")
2753 "This package contains maps and other assets for UFO: Alien Invasion.")
2754 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2755 ;; licenses, see LICENSES for details.
2756 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2757 license:cc-by-sa3.0 license:public-domain))))
2759 (define-public ufoai
2762 (version %ufoai-version)
2763 (home-page "https://ufoai.org/")
2764 (source ufoai-source)
2765 (build-system gnu-build-system)
2768 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2769 (string-append "--datadir=" (assoc-ref %outputs "out")
2775 "--disable-dependency-tracking"
2777 ;; Disable hard links to prevent huge NARs.
2778 "--disable-hardlinkedgame"
2779 "--disable-hardlinkedcgame")
2780 #:phases (modify-phases %standard-phases
2781 (add-after 'unpack 'symlink-data-files
2782 (lambda* (#:key inputs #:allow-other-keys)
2783 (let ((data (assoc-ref inputs "ufoai-data")))
2784 ;; Symlink the data files to where the build system
2785 ;; expects to find them. Ultimately these files are
2786 ;; copied to $out/share/games/ufoai/base, losing the
2787 ;; symlinks; we could fix that after install, but it
2788 ;; does not make a big difference in practice due to
2790 (with-directory-excursion "base"
2791 (for-each (lambda (file)
2792 (symlink file (basename file)))
2793 (find-files data "\\.pk3$")))
2795 (add-before 'configure 'create-language-files
2797 (invoke "make" "lang")))
2799 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2800 (apply invoke "./configure" configure-flags)))
2802 (lambda* (#:key tests? #:allow-other-keys)
2804 (invoke "./testall")
2805 (format #t "test suite not run~%"))
2807 (add-after 'install 'install-man-pages
2808 (lambda* (#:key outputs #:allow-other-keys)
2809 (let* ((out (assoc-ref outputs "out"))
2810 (man6 (string-append out "/share/man/man6")))
2811 (install-file "debian/ufo.6" man6)
2812 (install-file "debian/ufoded.6" man6)
2815 ;; TODO: Some map tests occasionally fail because of randomness issues,
2816 ;; e.g. not enough generated aliens. The test runner also fails early
2817 ;; in the build container with 'failed to shutdown server'?
2820 `(("gettext" ,gettext-minimal)
2821 ("pkg-config" ,pkg-config)
2822 ("python" ,python-2)
2823 ("ufo2map" ,ufo2map)
2824 ("ufoai-data" ,ufoai-data)))
2827 ("libjpeg" ,libjpeg-turbo)
2830 ("libtheora" ,libtheora)
2831 ("libvorbis" ,libvorbis)
2832 ("libxml2" ,libxml2)
2835 ("minixml" ,minixml)
2836 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2838 (synopsis "Turn-based tactical strategy game")
2840 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2841 You control a secret organisation charged with defending Earth from a brutal
2842 alien enemy. Build up your bases, prepare your team, and dive head-first into
2843 the fast and flowing turn-based combat.
2845 Over the long term you will need to conduct research into the alien threat to
2846 figure out their mysterious goals and use their powerful weapons for your own
2847 ends. You will produce unique items and use them in combat against your
2850 You can also use them against your friends with the multiplayer functionality.
2852 Warning: This is a pre-release version of UFO: AI! Some things may not work
2855 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2856 ;; because some assets do not use the "or later" clause. Many individual
2857 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2858 (license (delete license:gpl2+ (package-license ufoai-data)))))
2860 (define-public xshogi
2867 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2871 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2872 (build-system gnu-build-system)
2874 `(("libxaw" ,libxaw)
2876 (home-page "https://www.gnu.org/software/gnushogi/")
2877 (synopsis "User interface for gnushogi")
2878 (description "A graphical user interface for the package @code{gnushogi}.")
2879 ;; Contains a copy of GPLv3 but the licence notices simply
2880 ;; state "GNU General Public Licence" without specifying a version.
2881 (license license:gpl1+)))
2883 (define-public abbaye
2891 (url "https://github.com/nevat/abbayedesmorts-gpl")
2892 (commit (string-append "v" version))))
2893 (file-name (git-file-name name version))
2895 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2896 (modules '((guix build utils)))
2900 (delete-file-recursively "fonts")
2902 (build-system gnu-build-system)
2904 '(#:make-flags '("CC=gcc")
2905 #:phases (modify-phases %standard-phases
2906 (add-after 'set-paths 'set-sdl-paths
2907 (lambda* (#:key inputs #:allow-other-keys)
2909 (string-append (assoc-ref inputs "sdl-union")
2911 (or (getenv "CPATH") "")))))
2912 (add-after 'patch-source-shebangs 'patch-makefile
2913 (lambda* (#:key outputs #:allow-other-keys)
2914 ;; Replace /usr with package output directory.
2915 (substitute* "Makefile"
2916 (("/usr") (assoc-ref outputs "out")))))
2917 (add-before 'install 'make-install-dirs
2918 (lambda* (#:key outputs #:allow-other-keys)
2919 (let ((prefix (assoc-ref outputs "out")))
2920 ;; Create directories that the makefile assumes exist.
2921 (mkdir-p (string-append prefix "/bin"))
2922 (mkdir-p (string-append prefix "/share/applications"))
2923 (mkdir-p (string-append prefix "/share/pixmaps")))))
2924 ;; No configure script.
2925 (delete 'configure))
2926 #:tests? #f)) ;; No check target.
2927 (native-inputs `(("pkg-config" ,pkg-config)))
2928 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2929 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2930 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2931 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2932 France. The Cathars, who preach about good Christian beliefs, were being
2933 expelled by the Catholic Church out of the Languedoc region in France. One of
2934 them, called Jean Raymond, found an old church in which to hide, not knowing
2935 that beneath its ruins lay buried an ancient evil.")
2936 (license license:gpl3)))
2938 (define-public angband
2945 (uri (string-append "https://rephial.org/downloads/"
2946 (version-major+minor version)
2947 "/angband-" version ".tar.gz"))
2949 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2950 (modules '((guix build utils)))
2952 ;; So, some of the sounds/graphics/tilesets are under different
2953 ;; licenses... some of them even nonfree! This is a console-only
2954 ;; version of this package so we just remove them.
2955 ;; In the future, if someone tries to make a graphical variant of
2956 ;; this package, they can deal with that mess themselves. :)
2958 (for-each (lambda (subdir)
2959 (let ((lib-subdir (string-append "lib/" subdir)))
2960 (delete-file-recursively lib-subdir)))
2961 '("fonts" "icons" "sounds" "tiles"))
2962 (substitute* "lib/Makefile"
2963 ;; And don't try to invoke makefiles in the directories we removed.
2964 (("gamedata customize help screens fonts tiles sounds icons user")
2965 "gamedata customize help screens user"))
2967 (build-system gnu-build-system)
2969 `(#:tests? #f ; no check target
2970 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2972 (modify-phases %standard-phases
2975 (substitute* "acinclude.m4"
2976 (("ncursesw5-config") "ncursesw6-config"))
2977 (invoke "sh" "autogen.sh"))))))
2979 `(("autoconf" ,autoconf)
2980 ("automake" ,automake)))
2981 (inputs `(("ncurses" ,ncurses)))
2982 (home-page "https://rephial.org/")
2983 (synopsis "Dungeon exploration roguelike")
2984 (description "Angband is a Classic dungeon exploration roguelike. Explore
2985 the depths below Angband, seeking riches, fighting monsters, and preparing to
2986 fight Morgoth, the Lord of Darkness.")
2987 (license license:gpl2)))
2989 (define-public pingus
2997 (url "https://gitlab.com/pingus/pingus.git")
2998 (commit (string-append "v" version))))
2999 (file-name (git-file-name name version))
3002 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
3003 (patches (search-patches "pingus-boost-headers.patch"
3004 "pingus-sdl-libs-config.patch"))
3005 (modules '((guix build utils)))
3008 (substitute* "src/pingus/screens/demo_session.cpp"
3009 (("#include <iostream>")
3010 ;; std::function moved to <functional> with C++ 11.
3011 ;; Remove this for versions newer than 0.7.6.
3012 "#include <iostream>\n#include <functional>"))
3014 (build-system gnu-build-system)
3015 (native-inputs `(("pkg-config" ,pkg-config)
3016 ("scons-python2" ,scons-python2)))
3017 (inputs `(("sdl" ,sdl)
3018 ("sdl-image" ,sdl-image)
3019 ("sdl-mixer" ,sdl-mixer)
3025 '(#:make-flags (list (string-append "PREFIX=" %output))
3026 #:tests? #f ; no check target
3028 (modify-phases %standard-phases
3029 (delete 'configure)))) ; no configure script
3030 (home-page "https://pingus.seul.org/")
3031 (synopsis "Lemmings clone")
3033 "Pingus is a free Lemmings-like puzzle game in which the player takes
3034 command of a bunch of small animals and has to guide them through levels.
3035 Since the animals walk on their own, the player can only influence them by
3036 giving them commands, like build a bridge, dig a hole, or redirect all animals
3037 in the other direction. Multiple such commands are necessary to reach the
3038 level's exit. The game is presented in a 2D side view.")
3039 ;; Some source files are under bsd-3 and gpl2+ licenses.
3040 (license license:gpl3+)))
3042 (define-public talkfilters
3044 (name "talkfilters")
3049 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3050 "talkfilters-" version ".tar.gz"))
3052 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3053 (build-system gnu-build-system)
3054 (home-page "https://www.gnu.org/software/talkfilters/")
3055 (synopsis "Convert English text to humorous dialects")
3056 (description "The GNU Talk Filters are programs that convert English text
3057 into stereotyped or otherwise humorous dialects. The filters are provided as
3058 a C library, so they can easily be integrated into other programs.")
3059 (license license:gpl2+)))
3061 (define-public taisei
3068 (uri (string-append "https://github.com/taisei-project/"
3069 "taisei/releases/download/v" version
3070 "/taisei-v" version ".tar.xz"))
3072 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
3073 (build-system meson-build-system)
3075 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3077 (list "-Dr_default=gles30"
3080 "-Dshader_transpiler=true")))
3082 `(("pkg-config" ,pkg-config)
3084 ("python-docutils" ,python-docutils)
3085 ("python-pygments" ,python-pygments)))
3087 `(("freetype" ,freetype)
3089 ("libwebp" ,libwebp)
3092 ("openssl" ,openssl)
3093 ("opusfile" ,opusfile)
3095 ("sdl2-mixer" ,sdl2-mixer)
3096 ("shaderc" ,shaderc)
3097 ("spirv-cross" ,spirv-cross)
3099 (home-page "https://taisei-project.org/")
3100 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3102 "The player controls a character (one of three: Good, Bad, and Dead),
3103 dodges the missiles (lots of it cover the screen, but the character's hitbox
3104 is very small), and shoot at the adversaries that keep appear on the screen.")
3105 (license (list ;;game
3107 ;;resources/00-taisei.pkgdir/bgm/
3112 license:public-domain))))
3114 (define-public cmatrix
3122 (url "https://github.com/abishekvashok/cmatrix")
3123 (commit (string-append "v" version))))
3124 (file-name (git-file-name name version))
3127 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3128 (build-system gnu-build-system)
3130 `(("autoconf" ,autoconf)
3131 ("automake" ,automake)))
3134 (modify-phases %standard-phases
3136 (lambda* (#:key outputs #:allow-other-keys)
3137 ;; This old ‘configure’ script doesn't support
3138 ;; variables passed as arguments.
3139 (let ((out (assoc-ref outputs "out")))
3140 (setenv "CONFIG_SHELL" (which "bash"))
3141 (invoke "./configure"
3142 (string-append "--prefix=" out))))))))
3143 (inputs `(("ncurses" ,ncurses)))
3144 (home-page "http://www.asty.org/cmatrix")
3145 (synopsis "Simulate the display from \"The Matrix\"")
3146 (description "CMatrix simulates the display from \"The Matrix\" and is
3147 based on the screensaver from the movie's website. It works with terminal
3148 settings up to 132x300 and can scroll lines all at the same rate or
3149 asynchronously and at a user-defined speed.")
3150 (license license:gpl2+)))
3152 (define-public chess
3159 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3163 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3164 (build-system gnu-build-system)
3165 (home-page "https://www.gnu.org/software/chess/")
3166 (synopsis "Full chess implementation")
3167 (description "GNU Chess is a chess engine. It allows you to compete
3168 against the computer in a game of chess, either through the default terminal
3169 interface or via an external visual interface such as GNU XBoard.")
3170 (properties '((upstream-name . "gnuchess")
3171 (ftp-directory . "/chess")))
3172 (license license:gpl3+)))
3174 (define-public freedink-engine
3176 (name "freedink-engine")
3180 (uri (string-append "mirror://gnu/freedink/freedink-" version
3182 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3185 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3186 (build-system gnu-build-system)
3188 `(#:configure-flags '("--disable-embedded-resources")
3190 (modify-phases %standard-phases
3191 (add-after 'unpack 'disable-graphical-tests
3193 ;; These tests require a graphical interface.
3194 (substitute* "src/Makefile.am"
3195 (("test_gfx_fonts TestIOGfxDisplay") ""))
3197 (add-before 'bootstrap 'autoreconf
3199 ;; automake is out of date in the source
3200 ;; autoreconf updates the automake scripts
3201 (invoke "autoreconf")
3202 ;; Build fails when autom4te.cache exists.
3203 (delete-file-recursively "autom4te.cache")
3205 (add-after 'install 'delete-freedinkedit-desktop
3206 (lambda* (#:key outputs #:allow-other-keys)
3207 (let ((out (assoc-ref outputs "out")))
3208 ;; freedinkedit does not know where to find freedink data
3209 ;; freedink data is read-only, so it cannot be edited anyway.
3210 ;; TODO: fix freedink.desktop
3211 (delete-file-recursively (string-append
3212 out "/share/applications"))
3214 (native-inputs `(("autoconf" ,autoconf)
3215 ("automake" ,automake)
3216 ("cxxtest" ,cxxtest)
3217 ("gettext" ,gettext-minimal)
3218 ("help2man" ,help2man)
3219 ("pkg-config" ,pkg-config)))
3220 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3221 sdl2-ttf sdl2-gfx)))
3222 ("fontconfig" ,fontconfig)
3224 (properties '((ftp-directory . "/freedink")
3225 (upstream-name . "freedink")))
3226 (home-page "https://www.gnu.org/software/freedink/")
3227 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3229 "GNU FreeDink is a free and portable re-implementation of the engine
3230 for the role-playing game Dink Smallwood. It supports not only the original
3231 game data files but it also supports user-produced game mods or \"D-Mods\".
3232 To that extent, it also includes a front-end for managing all of your D-Mods.")
3233 (license license:gpl3+)))
3235 (define-public freedink-data
3237 (name "freedink-data")
3238 (version "1.08.20190120")
3241 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3245 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3246 (build-system gnu-build-system)
3249 (modify-phases %standard-phases
3250 (delete 'configure) ; no configure script
3251 (delete 'check)) ; no tests
3252 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3253 (properties '((ftp-directory . "/freedink")))
3254 (home-page "https://www.gnu.org/software/freedink/")
3255 (synopsis "Game data for GNU Freedink")
3257 "This package contains the game data of GNU Freedink.")
3258 (license license:gpl3+)))
3260 (define-public freedink-dfarc
3262 (name "freedink-dfarc")
3266 (uri (string-append "mirror://gnu/freedink/dfarc-"
3270 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3271 (build-system gnu-build-system)
3273 `(("intltool" ,intltool)))
3276 ("wxwidgets" ,wxwidgets)))
3277 (properties '((ftp-directory . "/freedink")
3278 (upstream-name . "dfarc")))
3279 (home-page "https://www.gnu.org/software/freedink/")
3280 (synopsis "Front-end for managing and playing Dink Modules")
3281 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3282 and its numerous D-Mods.")
3283 (license license:gpl3+)))
3285 (define-public freedink
3286 ;; This is a wrapper that tells the engine where to find the data.
3287 (package (inherit freedink-engine)
3289 (build-system trivial-build-system)
3292 (use-modules (guix build utils))
3294 (let* ((output (assoc-ref %outputs "out"))
3295 (bin (string-append output "/bin"))
3296 (executable (string-append bin "/freedink")))
3298 (call-with-output-file executable
3300 (format port "#!~a/bin/sh
3301 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3302 (assoc-ref %build-inputs "bash")
3303 (assoc-ref %build-inputs "engine")
3304 (assoc-ref %build-inputs "data"))
3305 (chmod port #o777)))
3307 #:modules ((guix build utils))))
3308 (inputs `(("engine" ,freedink-engine)
3309 ("data" ,freedink-data)
3311 (native-inputs '())))
3313 (define-public xboard
3320 (uri (string-append "mirror://gnu/xboard/xboard-" version
3324 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3325 (build-system gnu-build-system)
3328 ("librsvg" ,librsvg)))
3330 `(("texinfo" ,texinfo)
3331 ("pkg-config" ,pkg-config)))
3332 (home-page "https://www.gnu.org/software/xboard/")
3333 (synopsis "Graphical user interface for chess programs")
3334 (description "GNU XBoard is a graphical board for all varieties of chess,
3335 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3336 and Makruk. Several lesser-known variants are also supported. It presents a
3337 fully interactive graphical interface and it can load and save games in the
3338 Portable Game Notation.")
3339 (license license:gpl3+)))
3341 (define-public gtypist
3347 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3351 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3352 (modules '((guix build utils)))
3354 ;; We do not provide `ncurses.h' within an `ncursesw'
3355 ;; sub-directory, so patch the source accordingly. See
3356 ;; <http://bugs.gnu.org/19018>.
3358 (for-each (lambda (file)
3360 (("ncursesw/ncurses.h")
3362 (find-files "." "configure$|\\.c$"))
3364 (build-system gnu-build-system)
3365 (inputs `(("ncurses" ,ncurses)
3367 (home-page "https://www.gnu.org/software/gtypist/")
3368 (synopsis "Typing tutor")
3370 "GNU Typist is a universal typing tutor. It can be used to learn and
3371 practice touch-typing. Several tutorials are included; in addition to
3372 tutorials for the standard QWERTY layout, there are also tutorials for the
3373 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3374 are primarily in English, however some in other languages are provided.")
3375 (license license:gpl3+)))
3377 (define-public irrlicht
3384 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3385 (version-major+minor version)
3386 "/" version "/irrlicht-" version ".zip"))
3389 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3390 (patches (search-patches "irrlicht-use-system-libs.patch"))
3391 (modules '((guix build utils)))
3394 (for-each delete-file-recursively
3395 '("bin" ; bundled compiled Windows binaries"
3396 "source/Irrlicht/MacOSX"
3397 "source/Irrlicht/bzip2"
3398 "source/Irrlicht/jpeglib"
3399 "source/Irrlicht/libpng"
3400 "source/Irrlicht/lzma"
3401 "source/Irrlicht/zlib"))
3402 (delete-file "source/Irrlicht/glext.h")
3403 (delete-file "source/Irrlicht/glxext.h")
3404 (delete-file "source/Irrlicht/wglext.h")
3406 (build-system gnu-build-system)
3409 (modify-phases %standard-phases
3410 (add-after 'unpack 'chdir-to-source
3412 ;; The actual source is buried a few directories deep.
3413 (chdir "source/Irrlicht/")
3415 (add-after 'chdir-to-source 'fix-build-env
3416 (lambda* (#:key outputs #:allow-other-keys)
3417 (let ((out (assoc-ref outputs "out")))
3418 (substitute* "Makefile"
3419 (("INSTALL_DIR = /usr/local/lib")
3420 (string-append "INSTALL_DIR = " out "/lib"))
3421 ;; Add '-fpermissive' to the CXXFLAGS
3422 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3423 ;; The Makefile assumes these directories exist.
3424 (mkdir-p (string-append out "/lib"))
3425 (mkdir-p (string-append out "/include")))))
3426 (delete 'configure)) ; no configure script
3427 #:tests? #f ; no check target
3428 #:make-flags '("CC=gcc" "sharedlib")))
3431 ("libjpeg" ,libjpeg-turbo)
3434 ("libxxf86vm" ,libxxf86vm)
3436 (synopsis "3D game engine written in C++")
3438 "The Irrlicht Engine is a high performance realtime 3D engine written in
3439 C++. Features include an OpenGL renderer, extensible materials, scene graph
3440 management, character animation, particle and other special effects, support
3441 for common mesh file formats, and collision detection.")
3442 (home-page "http://irrlicht.sourceforge.net/")
3443 (license license:zlib)))
3446 ;; The latest release on SourceForge relies on an unreleased version of SFML
3447 ;; with a different API, so we take the latest version from the official
3448 ;; repository on Github.
3449 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3453 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3457 (url "https://github.com/thelaui/M.A.R.S.")
3459 (file-name (git-file-name name version))
3462 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3463 (patches (search-patches "mars-sfml-2.3.patch"
3464 "mars-install.patch"))))
3465 (build-system cmake-build-system)
3467 `(#:tests? #f ; There are no tests
3469 (modify-phases %standard-phases
3470 (add-after 'unpack 'fix-install-path
3472 (substitute* "src/CMakeLists.txt"
3473 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3474 "${CMAKE_INSTALL_PREFIX}/bin"))
3476 (add-after 'unpack 'fix-data-path
3477 (lambda* (#:key outputs #:allow-other-keys)
3478 (substitute* "src/System/settings.cpp"
3479 (("C_dataPath = \"./data/\";")
3480 (string-append "C_dataPath = \""
3481 (assoc-ref outputs "out")
3482 "/share/games/marsshooter/\";")))
3486 ("fribidi" ,fribidi)
3489 (home-page "http://mars-game.sourceforge.net/")
3490 (synopsis "2D space shooter")
3492 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3493 attractive physics. Players can battle each other or computer controlled
3494 enemies in different game modes such as space ball, death match, team death
3495 match, cannon keep, and grave-itation pit.")
3496 (license license:gpl3+))))
3498 (define-public minetest
3505 (url "https://github.com/minetest/minetest")
3507 (file-name (git-file-name name version))
3510 "062ilb7s377q3hwfhl8q06vvcw2raydz5ljzlzwy2dmyzmdcndb8"))
3511 (modules '((guix build utils)))
3514 ;; Delete bundled libraries.
3515 (delete-file-recursively "lib")
3517 (build-system cmake-build-system)
3520 (list "-DRUN_IN_PLACE=0"
3521 "-DENABLE_FREETYPE=1"
3522 "-DENABLE_GETTEXT=1"
3523 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3524 (string-append "-DIRRLICHT_INCLUDE_DIR="
3525 (assoc-ref %build-inputs "irrlicht")
3526 "/include/irrlicht")
3527 (string-append "-DCURL_INCLUDE_DIR="
3528 (assoc-ref %build-inputs "curl")
3531 (modify-phases %standard-phases
3532 (add-after 'unpack 'patch-sources
3533 (lambda* (#:key inputs #:allow-other-keys)
3534 (substitute* "src/filesys.cpp"
3535 ;; Use store-path for "rm" instead of non-existing FHS path.
3537 (string-append "\"" (assoc-ref inputs "coreutils") "/bin/rm\"")))
3538 (substitute* "src/CMakeLists.txt"
3539 ;; Let minetest binary remain in build directory.
3540 (("set\\(EXECUTABLE_OUTPUT_PATH .*\\)") ""))
3541 (substitute* "src/unittest/test_servermodmanager.cpp"
3542 ;; do no override MINETEST_SUBGAME_PATH
3543 (("(un)?setenv\\(\"MINETEST_SUBGAME_PATH\".*\\);")
3545 (setenv "MINETEST_SUBGAME_PATH"
3546 (string-append (getcwd) "/games")) ; for check
3550 ;; Thanks to our substitutions, the tests should also run
3551 ;; when invoked on the target outside of `guix build'.
3552 (unless ,(%current-target-system)
3553 (setenv "HOME" "/tmp")
3554 (invoke "src/minetest" "--run-unittests"))
3556 (native-search-paths
3557 (list (search-path-specification
3558 (variable "MINETEST_SUBGAME_PATH")
3559 (files '("share/minetest/games")))))
3561 `(("pkg-config" ,pkg-config)))
3563 `(("coreutils" ,coreutils)
3565 ("freetype" ,freetype)
3566 ("gettext" ,gettext-minimal)
3568 ("irrlicht" ,irrlicht)
3569 ("jsoncpp" ,jsoncpp)
3570 ("libjpeg" ,libjpeg-turbo)
3573 ("libvorbis" ,libvorbis)
3574 ("libxxf86vm" ,libxxf86vm)
3577 ("ncurses" ,ncurses)
3579 ("sqlite" ,sqlite)))
3581 `(("minetest-data" ,minetest-data)))
3582 (synopsis "Infinite-world block sandbox game")
3584 "Minetest is a sandbox construction game. Players can create and destroy
3585 various types of blocks in a three-dimensional open world. This allows
3586 forming structures in every possible creation, on multiplayer servers or as a
3587 single player. Mods and texture packs allow players to personalize the game
3588 in different ways.")
3589 (home-page "https://www.minetest.net/")
3590 (license license:lgpl2.1+)))
3592 (define minetest-data
3594 (name "minetest-data")
3595 (version (package-version minetest))
3599 (url "https://github.com/minetest/minetest_game")
3601 (file-name (git-file-name name version))
3604 "0i45lbnikvgj9kxdp0yphpjjwjcgp4ibn49xkj78j5ic1s9n8jd4"))))
3605 (build-system trivial-build-system)
3607 `(("source" ,source)))
3609 `(#:modules ((guix build utils))
3611 (use-modules (guix build utils))
3612 (let ((install-dir (string-append
3614 "/share/minetest/games/minetest_game")))
3615 (mkdir-p install-dir)
3617 (assoc-ref %build-inputs "source")
3620 (synopsis "Main game data for the Minetest game engine")
3622 "Game data for the Minetest infinite-world block sandbox game.")
3623 (home-page "https://www.minetest.net/")
3624 (license license:lgpl2.1+)))
3626 (define-public minetest-mineclone
3628 (name "minetest-mineclone")
3633 (url "https://git.minetest.land/Wuzzy/MineClone2")
3635 (file-name (git-file-name name version))
3638 "0qm809dqvxc7pa1cr9skmglq9vrbq5hhm4c4m5yi46ldh1v96dgf"))))
3639 (build-system copy-build-system)
3642 '(("." "share/minetest/games/mineclone"))))
3643 (synopsis "Minecraft clone based on Minetest engine")
3645 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3646 closely as the engine allows.")
3647 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3648 (license license:gpl3+)))
3657 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3658 "glk/implementations/glkterm-104.tar.gz"))
3661 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3662 (build-system gnu-build-system)
3663 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3665 '(#:tests? #f ; no check target
3667 (modify-phases %standard-phases
3669 (lambda* (#:key outputs #:allow-other-keys)
3670 (let* ((out (assoc-ref outputs "out"))
3671 (inc (string-append out "/include"))
3672 (lib (string-append out "/lib")))
3675 (install-file file inc))
3676 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3677 (install-file "libglkterm.a" lib))
3679 (delete 'configure)))) ; no configure script
3680 (home-page "http://www.eblong.com/zarf/glk/")
3681 (synopsis "Curses Implementation of the Glk API")
3683 "Glk defines a portable API for applications with text UIs. It was
3684 primarily designed for interactive fiction, but it should be suitable for many
3685 interactive text utilities, particularly those based on a command line.
3686 This is an implementation of the Glk library which runs in a terminal window,
3687 using the @code{curses.h} library for screen control.")
3688 (license (license:fsf-free "file://README"))))
3690 (define-public glulxe
3697 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3698 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3701 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3702 (build-system gnu-build-system)
3703 (inputs `(("glk" ,glkterm)))
3705 '(#:tests? #f ; no check target
3707 (let* ((glk (assoc-ref %build-inputs "glk")))
3708 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3709 (string-append "GLKLIBDIR=" glk "/lib")
3710 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3712 (modify-phases %standard-phases
3714 (lambda* (#:key outputs #:allow-other-keys)
3715 (let* ((out (assoc-ref outputs "out"))
3716 (bin (string-append out "/bin")))
3717 (install-file "glulxe" bin))
3719 (delete 'configure)))) ; no configure script
3720 (home-page "https://www.eblong.com/zarf/glulx/")
3721 (synopsis "Interpreter for Glulx VM")
3723 "Glulx is a 32-bit portable virtual machine intended for writing and
3724 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3725 some of the restrictions in the venerable Z-machine format. This is the
3726 reference interpreter, using the Glk API.")
3727 (license license:expat)))
3729 (define-public fifechan
3735 (uri (string-append "https://codeload.github.com/fifengine/"
3736 "fifechan/tar.gz/" version))
3737 (file-name (string-append name "-" version ".tar.gz"))
3740 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3741 (build-system cmake-build-system)
3744 ("sdl2-image" ,sdl2-image)
3747 '(#:tests? #f)) ; No included tests
3748 (home-page "https://fifengine.github.io/fifechan/")
3749 (synopsis "Cross platform GUI library specifically for games")
3751 "Fifechan is a lightweight cross platform GUI library written in C++
3752 specifically designed for games. It has a built in set of extendable GUI
3753 Widgets, and allows users to create more.")
3754 (license license:lgpl2.1+)))
3756 (define-public fifengine
3762 (uri (string-append "https://codeload.github.com/fifengine/"
3763 "fifengine/tar.gz/" version))
3764 (file-name (string-append name "-" version ".tar.gz"))
3765 (patches (search-patches "fifengine-swig-compat.patch"))
3768 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3769 (build-system cmake-build-system)
3771 `(#:tests? #f ; TODO The test running fails to run some tests.
3772 #:modules ((srfi srfi-1)
3773 (guix build cmake-build-system)
3777 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3778 (assoc-ref %build-inputs "openal")
3780 (string-append "-DPYTHON_SITE_PACKAGES="
3781 (assoc-ref %outputs "out")
3783 ,(version-major+minor (package-version python))
3786 (modify-phases %standard-phases
3787 (add-after 'unpack 'patch-run_tests.py
3789 ;; Patch the test runner to exit with a status of 1 if any test
3790 ;; fails, to allow detecting failures.
3791 (substitute* "run_tests.py"
3792 (("ERROR\\. One or more tests failed!'\\)")
3793 "ERROR. One or more tests failed!')
3796 ;; Run tests after installation so that we can make use of the built
3799 (add-after 'install 'check
3800 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3801 (define python-version
3802 (let* ((version (last (string-split
3803 (assoc-ref inputs "python")
3805 (components (string-split version #\.))
3806 (major+minor (take components 2)))
3807 (string-join major+minor ".")))
3810 ;; Set PYTHONPATH so that python finds the installed modules.
3811 (setenv "PYTHONPATH"
3812 (string-append (getenv "PYTHONPATH") ":"
3813 (assoc-ref outputs "out")
3817 ;; The tests require an X server.
3818 (system "Xvfb :1 &")
3819 (setenv "DISPLAY" ":1")
3820 (setenv "XDG_RUNTIME_DIR" "/tmp")
3822 (chdir ,(string-append "../" name "-" version))
3823 (invoke "python3" "run_tests.py" "-a"))
3827 ("sdl2-image" ,sdl2-image)
3828 ("sdl2-ttf" ,sdl2-ttf)
3829 ("tinyxml" ,tinyxml)
3833 ("libvorbis" ,libvorbis)
3835 ("fifechan" ,fifechan)
3837 ("python" ,python)))
3839 `(("python" ,python)
3841 ("xvfb" ,xorg-server)))
3843 `(("python-future" ,python-future)))
3844 (home-page "https://www.fifengine.net/")
3845 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3847 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3848 isometric game engine. Python bindings are included allowing users to create
3849 games using Python as well as C++.")
3850 (license license:lgpl2.1+)))
3852 (define-public fizmo
3858 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3859 "fizmo-" version ".tar.gz"))
3862 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3863 (build-system gnu-build-system)
3866 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3867 (ncurses (assoc-ref %build-inputs "ncurses")))
3868 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3870 `(("pkg-config" ,pkg-config)))
3872 `(("freetype" ,freetype)
3873 ("libjpeg" ,libjpeg-turbo)
3875 ("libsndfile" ,libsndfile)
3876 ("libxml2" ,libxml2)
3877 ("ncurses" ,ncurses)
3879 (home-page "https://fizmo.spellbreaker.org/")
3880 (synopsis "Z-machine interpreter")
3882 "Fizmo is a console-based Z-machine interpreter. It is used to play
3883 interactive fiction, also known as text adventures, which were implemented
3884 either by Infocom or created using the Inform compiler.")
3885 (license license:bsd-3)))
3887 (define-public gnugo
3893 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3897 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3898 (build-system gnu-build-system)
3899 (inputs `(("readline" ,readline)))
3900 (synopsis "Play the game of Go")
3902 "GNU Go is a program that plays the game of Go, in which players
3903 place stones on a grid to form territory or capture other stones. While
3904 it can be played directly from the terminal, rendered in ASCII characters,
3905 it is also possible to play GNU Go with 3rd party graphical interfaces or
3906 even in Emacs. It supports the standard game storage format (SGF, Smart
3907 Game Format) and inter-process communication format (GMP, Go Modem
3909 (home-page "https://www.gnu.org/software/gnugo/")
3910 (license license:gpl3+)))
3912 (define-public extremetuxracer
3914 (name "extremetuxracer")
3919 "mirror://sourceforge/extremetuxracer/releases/"
3920 version "/etr-" version ".tar.xz"))
3923 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3924 (build-system gnu-build-system)
3926 `(("pkg-config" ,pkg-config)))
3930 (synopsis "High-speed arctic racing game based on Tux Racer")
3931 ;; Snarfed straight from Debian.
3932 (description "Extreme Tux Racer, or etracer as it is called for short, is
3933 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3934 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3935 avoiding the trees and rocks that will slow you down.
3937 Collect herrings and other goodies while sliding down the hill, but avoid fish
3940 This game is based on the GPL version of the famous game TuxRacer.")
3941 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3942 (license license:gpl2+)))
3944 (define-public supertuxkart
3946 (name "supertuxkart")
3951 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3952 version "/SuperTuxKart-" version "-src.tar.xz"))
3955 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3956 (modules '((guix build utils)))
3958 ;; Delete bundled library sources
3960 ;; Supertuxkart uses modified versions of the Irrlicht engine
3961 ;; and the bullet library. The developers gave an explanation
3962 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3963 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3964 (for-each delete-file-recursively
3969 (build-system cmake-build-system)
3971 `(#:tests? #f ; no check target
3973 (list "-DUSE_WIIUSE=0"
3974 "-DUSE_SYSTEM_GLEW=TRUE"
3975 "-DUSE_SYSTEM_ENET=TRUE"
3976 ;; In order to use the system ENet library, IPv6 support (added in
3977 ;; SuperTuxKart version 1.1) must be disabled.
3979 ;; FIXME: needs libopenglrecorder
3980 "-DBUILD_RECORDER=0")))
3983 ("freetype" ,freetype)
3984 ("fribidi" ,fribidi)
3986 ("harfbuzz" ,harfbuzz)
3987 ("libvorbis" ,libvorbis)
3989 ("libxrandr" ,libxrandr)
3994 ;; The following input is needed to build the bundled and modified
3995 ;; version of irrlicht.
3997 ("libjpeg" ,libjpeg-turbo)
3998 ("openssl" ,openssl)))
4000 `(("pkg-config" ,pkg-config)))
4001 (home-page "https://supertuxkart.net/Main_Page")
4002 (synopsis "3D kart racing game")
4003 (description "SuperTuxKart is a 3D kart racing game, with a focus on
4004 having fun over realism. You can play with up to 4 friends on one PC, racing
4005 against each other or just trying to beat the computer; single-player mode is
4007 (license license:gpl3+)))
4009 (define-public unknown-horizons
4011 (name "unknown-horizons")
4015 (uri (string-append "https://codeload.github.com/unknown-horizons/"
4016 "unknown-horizons/tar.gz/" version))
4017 (file-name (string-append name "-" version ".tar.gz"))
4020 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
4021 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
4022 (build-system python-build-system)
4025 (modify-phases %standard-phases
4026 (add-before 'build 'set-HOME
4028 (setenv "HOME" "/tmp")
4030 (add-after 'build 'build-extra
4032 (invoke "python3" "./setup.py" "build_i18n")
4033 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
4035 (add-after 'install 'patch
4036 (lambda* (#:key outputs #:allow-other-keys)
4037 (let ((out (assoc-ref outputs "out")))
4038 (substitute* (string-append out "/bin/unknown-horizons")
4039 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
4040 (string-append "os.chdir(\""
4041 (assoc-ref outputs "out")
4042 "/share/unknown-horizons\")"))))
4044 (add-before 'check 'fix-tests-with-pytest>=4
4046 (substitute* "tests/conftest.py"
4047 (("pytest_namespace")
4050 "get_closest_marker"))
4052 ;; TODO: Run GUI tests as well
4055 (substitute* "horizons/constants.py"
4056 (("IS_DEV_VERSION = False")
4057 "IS_DEV_VERSION = True"))
4058 (invoke "pytest" "tests")
4059 (substitute* "horizons/constants.py"
4060 (("IS_DEV_VERSION = True")
4061 "IS_DEV_VERSION = False"))
4064 `(("fifengine" ,fifengine)
4065 ("python:tk" ,python "tk")
4066 ("python-pillow" ,python-pillow)
4067 ("python-pyyaml" ,python-pyyaml)))
4069 `(("intltool" ,intltool)
4070 ("python-distro" ,python-distro)
4072 ;; Required for tests
4073 ("python-greenlet" ,python-greenlet)
4074 ("python-polib" ,python-polib)
4075 ("python-pytest" ,python-pytest)
4076 ("python-pytest-mock" ,python-pytest-mock)))
4077 (home-page "https://unknown-horizons.org/")
4078 (synopsis "Isometric realtime strategy, economy and city building simulation")
4080 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4081 on economy and city building. Expand your small settlement to a strong and
4082 wealthy colony, collect taxes and supply your inhabitants with valuable
4083 goods. Increase your power with a well balanced economy and with strategic
4084 trade and diplomacy.")
4086 license:gpl2+ ; Covers code
4087 license:expat ; tests/dummy.py, ext/polib.py
4088 license:cc-by-sa3.0 ; Covers some media content
4089 license:cc-by3.0 ; Covers some media content
4090 license:bsd-3)))) ; horizons/ext/speaklater.py
4092 (define-public gnujump
4098 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4102 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4103 (build-system gnu-build-system)
4106 (modify-phases %standard-phases
4108 'configure 'link-libm
4109 (lambda _ (setenv "LIBS" "-lm")))
4110 (add-after 'install 'create-desktop-entry
4111 (lambda* (#:key outputs #:allow-other-keys)
4112 (let* ((out (assoc-ref outputs "out"))
4113 (apps (string-append out "/share/applications")))
4115 (with-output-to-file
4116 (string-append apps "/gnujump.desktop")
4121 Comment=Jump up the tower to survive~@
4122 Exec=~a/bin/gnujump~@
4125 Categories=Game;ArcadeGame~%"
4131 ("sdl-image" ,sdl-image)
4132 ("sdl-mixer" ,sdl-mixer)))
4133 (home-page "http://gnujump.es.gnu.org/")
4135 "Game of jumping to the next floor, trying not to fall")
4137 "GNUjump is a simple, yet addictive game in which you must jump from
4138 platform to platform to avoid falling, while the platforms drop at faster rates
4139 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4140 falling, themeable graphics and sounds, and replays.")
4141 (license license:gpl3+)))
4143 (define-public wesnoth
4149 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4150 (version-major+minor version)
4151 "/wesnoth-" version "/"
4152 "wesnoth-" version ".tar.bz2"))
4155 "1d9hq3dcx0sgs2v4400rg2nw98v46m7bwiqqjv8z8n7vw8kx8lhg"))))
4156 (build-system cmake-build-system)
4158 `(#:tests? #f)) ;no check target
4160 `(("gettext" ,gettext-minimal)
4161 ("pkg-config" ,pkg-config)))
4165 ("fribidi" ,fribidi)
4166 ("libvorbis" ,libvorbis)
4167 ("openssl" ,openssl)
4169 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4170 (home-page "https://www.wesnoth.org/")
4171 (synopsis "Turn-based strategy game")
4173 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4174 with several single player campaigns, and multiplayer games (both networked and
4177 Battle for control on a range of maps, using variety of units which have
4178 advantages and disadvantages against different types of attacks. Units gain
4179 experience and advance levels, and are carried over from one scenario to the
4181 (license license:gpl2+)))
4183 (define-public wesnoth-server
4186 (name "wesnoth-server")
4190 ("openssl" ,openssl)
4193 `(#:configure-flags '("-DENABLE_GAME=OFF")
4194 ,@(package-arguments wesnoth)))
4195 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4196 (description "This package contains a dedicated server for @emph{The
4197 Battle for Wesnoth}.")))
4199 (define-public gamine
4205 (uri (string-append "mirror://sourceforge/gamine-game/"
4206 "gamine-" version ".tar.gz"))
4209 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4210 (build-system gnu-build-system)
4212 `(("pkg-config" ,pkg-config)
4213 ("intltool" ,intltool)))
4215 `(("gstreamer" ,gstreamer)
4216 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4217 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4222 (let ((out (assoc-ref %outputs "out")))
4223 (list (string-append "PREFIX=" out)
4224 (string-append "SYSCONFDIR=" out "/etc")))
4226 (modify-phases %standard-phases
4229 'install 'wrap-gamine
4230 (lambda* (#:key outputs #:allow-other-keys)
4231 (let ((out (assoc-ref outputs "out"))
4232 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4233 (wrap-program (string-append out "/bin/gamine")
4234 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4236 (home-page "http://gamine-game.sourceforge.net/")
4237 (synopsis "Mouse and keyboard discovery for children")
4239 "Gamine is a game designed for young children who are learning to use the
4240 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4241 on the screen and keyboard to display letters.")
4242 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4243 (license license:gpl3)))
4245 (define-public manaplus
4248 (version "1.9.3.23")
4252 "https://repo.manaplus.org/manaplus/download/"
4253 version "/manaplus-" version ".tar.xz"))
4256 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4257 (build-system gnu-build-system)
4260 (list (string-append "CPPFLAGS=-I"
4261 (assoc-ref %build-inputs "sdl-union")
4264 `(("pkg-config" ,pkg-config)))
4268 ("libxml2" ,libxml2)
4270 ("sdl-union" ,(sdl-union))))
4271 (home-page "https://manaplus.org")
4272 (synopsis "Client for 'The Mana World' and similar games")
4274 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4275 fully supported client for @uref{http://www.themanaworld.org, The mana
4276 world}, @uref{http://evolonline.org, Evol Online} and
4277 @uref{http://landoffire.org, Land of fire}.")
4278 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4279 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4280 ;; The rest is under GPL2+.
4281 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4283 (define openttd-engine
4285 (name "openttd-engine")
4288 (origin (method url-fetch)
4289 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4290 version "/openttd-" version "-source.tar.xz"))
4293 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4294 (build-system gnu-build-system)
4296 `(#:tests? #f ; no "check" target
4298 (modify-phases %standard-phases
4299 ;; The build process fails if the configure script is passed the
4300 ;; option "--enable-fast-install".
4302 (lambda* (#:key inputs outputs (configure-flags '())
4304 (let ((out (assoc-ref outputs "out"))
4305 (lzo (assoc-ref inputs "lzo")))
4306 (apply invoke "./configure"
4307 (string-append "--prefix=" out)
4308 ;; Provide the "lzo" path.
4309 (string-append "--with-liblzo2="
4310 lzo "/lib/liblzo2.a")
4311 ;; Put the binary in 'bin' instead of 'games'.
4313 configure-flags)))))))
4314 (native-inputs `(("pkg-config" ,pkg-config)))
4316 `(("allegro" ,allegro)
4317 ("fontconfig" ,fontconfig)
4318 ("freetype" ,freetype)
4325 (synopsis "Transportation economics simulator game")
4326 (description "OpenTTD is a game in which you transport goods and
4327 passengers by land, water and air. It is a re-implementation of Transport
4328 Tycoon Deluxe with many enhancements including multiplayer mode,
4329 internationalization support, conditional orders and the ability to clone,
4330 autoreplace and autoupdate vehicles. This package only includes the game
4331 engine. When you start it you will be prompted to download a graphics set.")
4332 (home-page "https://www.openttd.org/")
4333 ;; This package is GPLv2, except for a few files located in
4334 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4335 ;; licenses. In addition, this software contains an in-game downloader
4336 ;; from which the user may find non-functional data licensed under
4338 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4340 (define openttd-opengfx
4342 (name "openttd-opengfx")
4347 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4348 version "/opengfx-" version "-source.tar.xz"))
4351 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4352 (build-system gnu-build-system)
4354 '(#:make-flags (list "CC=gcc"
4355 (string-append "INSTALL_DIR="
4356 (assoc-ref %outputs "out")
4357 "/share/games/openttd/baseset/opengfx"))
4359 (modify-phases %standard-phases
4362 ;; Make sure HOME is writable for GIMP.
4363 (setenv "HOME" (getcwd))
4365 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4366 ;; dos2unix from receiving its version information as a flag.
4367 (substitute* "Makefile"
4368 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4369 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4370 ;; The check phase for this package only checks the md5sums of the built
4371 ;; GRF files against the md5sums of the release versions. Because we use
4372 ;; different software versions than upstream does, some of the md5sums
4373 ;; are different. However, the package is still reproducible, it's safe
4374 ;; to disable this test.
4376 #:parallel-build? #f))
4377 (native-inputs `(("dos2unix" ,dos2unix)
4379 ("grfcodec" ,grfcodec)
4382 ("python" ,python-2)))
4383 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4384 (synopsis "Base graphics set for OpenTTD")
4386 "The OpenGFX project is an implementation of the OpenTTD base graphics
4387 set that aims to ensure the best possible out-of-the-box experience.
4389 OpenGFX provides you with...
4391 @item All graphics you need to enjoy OpenTTD.
4392 @item Uniquely drawn rail vehicles for every climate.
4393 @item Completely snow-aware rivers.
4394 @item Different river and sea water.
4395 @item Snow-aware buoys.
4397 (license license:gpl2)))
4399 (define openttd-opensfx
4401 (name "openttd-opensfx")
4407 "https://binaries.openttd.org/extra/opensfx/"
4408 version "/opensfx-" version "-source.tar.gz"))
4411 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4412 (build-system gnu-build-system)
4414 `(("catcodec" ,catcodec)
4415 ("python" ,python-2)))
4418 (list (string-append "INSTALL_DIR=" %output
4419 "/share/games/openttd/baseset/opensfx"))
4421 (modify-phases %standard-phases
4422 (add-after 'unpack 'make-reproducible
4424 ;; Remove the time dependency of the installed tarball by setting
4425 ;; the modification times if its members to 0.
4426 (substitute* "scripts/Makefile.def"
4427 (("-cf") " --mtime=@0 -cf"))
4429 (delete 'configure))))
4430 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4431 (synopsis "Base sounds for OpenTTD")
4432 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4433 it possible to play OpenTTD without requiring the proprietary sound files from
4434 the original Transport Tycoon Deluxe.")
4435 (license license:cc-sampling-plus-1.0)))
4437 (define openttd-openmsx
4439 (name "openttd-openmsx")
4445 "https://binaries.openttd.org/extra/openmsx/"
4446 version "/openmsx-" version "-source.tar.gz"))
4449 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4450 (build-system gnu-build-system)
4452 `(("python" ,python-2)))
4455 (list (string-append "INSTALL_DIR=" %output
4456 "/share/games/openttd/baseset"))
4458 (modify-phases %standard-phases
4460 (add-after 'install 'post-install
4461 ;; Rename openmsx-version to openmsx
4462 (lambda* (#:key outputs #:allow-other-keys)
4463 (let ((install-directory (string-append (assoc-ref outputs "out")
4464 "/share/games/openttd/baseset")))
4465 (rename-file (string-append install-directory "/openmsx-" ,version)
4466 (string-append install-directory "/openmsx"))
4468 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4469 (synopsis "Music set for OpenTTD")
4470 (description "OpenMSX is a music set for OpenTTD which makes it possible
4471 to play OpenTTD without requiring the proprietary music from the original
4472 Transport Tycoon Deluxe.")
4473 (license license:gpl2)))
4475 (define-public openttd
4477 (inherit openttd-engine)
4481 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4483 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4485 `(modify-phases ,phases
4486 (add-after 'install 'install-data
4487 (lambda* (#:key inputs outputs #:allow-other-keys)
4490 (copy-recursively (assoc-ref inputs input)
4491 (assoc-ref outputs "out")))
4492 (list "opengfx" "openmsx" "opensfx"))
4495 `(("timidity++" ,timidity++)
4496 ,@(package-inputs openttd-engine)))
4498 `(("opengfx" ,openttd-opengfx)
4499 ("openmsx" ,openttd-openmsx)
4500 ("opensfx" ,openttd-opensfx)
4501 ,@(package-native-inputs openttd-engine)))))
4503 (define openrct2-title-sequences
4505 (name "openrct2-title-sequences")
4510 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4511 version "/title-sequence-v" version ".zip"))
4512 (file-name (string-append name "-" version ".zip"))
4515 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4516 (build-system trivial-build-system)
4519 ("coreutils" ,coreutils)
4522 `(#:modules ((guix build utils))
4525 (use-modules (guix build utils))
4526 (let* ((out (assoc-ref %outputs "out"))
4527 (openrct2-title-sequences (string-append out
4528 "/share/openrct2/title-sequences"))
4529 (source (assoc-ref %build-inputs "source"))
4530 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4531 (copy-file source (string-append ,name "-" ,version ".zip"))
4532 (invoke unzip (string-append ,name "-" ,version ".zip"))
4533 (delete-file (string-append ,name "-" ,version ".zip"))
4534 (mkdir-p openrct2-title-sequences)
4535 (copy-recursively "."
4536 openrct2-title-sequences)
4538 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4539 (synopsis "Title sequences for OpenRCT2")
4541 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4542 (license license:gpl3+)))
4544 (define openrct2-objects
4546 (name "openrct2-objects")
4551 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4552 version "/objects.zip"))
4553 (file-name (string-append name "-" version ".zip"))
4555 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4556 (build-system trivial-build-system)
4559 ("coreutils" ,coreutils)
4562 `(#:modules ((guix build utils))
4565 (use-modules (guix build utils))
4566 (let* ((out (assoc-ref %outputs "out"))
4567 (openrct2-objects (string-append out
4568 "/share/openrct2/objects"))
4569 (source (assoc-ref %build-inputs "source"))
4570 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4571 (copy-file source (string-append ,name "-" ,version ".zip"))
4572 (invoke unzip (string-append ,name "-" ,version ".zip"))
4573 (delete-file (string-append ,name "-" ,version ".zip"))
4574 (mkdir-p openrct2-objects)
4575 (copy-recursively "."
4578 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4579 (synopsis "Objects for OpenRCT2")
4581 "openrct2-objects is a set of objects for OpenRCT2.")
4582 (license license:gpl3+)))
4584 (define-public openrct2
4592 (url "https://github.com/OpenRCT2/OpenRCT2")
4593 (commit (string-append "v" version))))
4594 (file-name (git-file-name name version))
4596 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4597 (build-system cmake-build-system)
4599 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4600 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4601 #:tests? #f ; tests require network access
4603 (modify-phases %standard-phases
4604 (add-after 'unpack 'fix-usr-share-paths&add-data
4605 (lambda* (#:key inputs outputs #:allow-other-keys)
4606 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4607 (objects (assoc-ref inputs "openrct2-objects")))
4608 ;; Fix some references to /usr/share.
4609 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4611 (string-append (assoc-ref %outputs "out") "/share")))
4613 (string-append titles "/share/openrct2/title-sequences")
4616 (string-append objects "/share/openrct2/objects")
4618 (add-before 'configure 'get-rid-of-errors
4620 ;; Don't treat warnings as errors.
4621 (substitute* "CMakeLists.txt"
4624 (inputs `(("curl" ,curl)
4625 ("duktape" ,duktape)
4626 ("fontconfig" ,fontconfig)
4627 ("freetype" ,freetype)
4629 ("jansson" ,jansson)
4633 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4634 ("openrct2-objects" ,openrct2-objects)
4635 ("openrct2-title-sequences" ,openrct2-title-sequences)
4636 ("openssl" ,openssl)
4638 ("speexdsp" ,speexdsp)
4641 `(("pkg-config" ,pkg-config)))
4642 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4643 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4644 (description "OpenRCT2 is a free software re-implementation of
4645 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4646 maintaining an amusement park containing attractions, shops and facilities.
4648 Note that this package does @emph{not} provide the game assets (sounds,
4650 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4651 ;; regarding assets.
4652 (license license:gpl3+)))
4654 (define-public pinball
4659 (origin (method url-fetch)
4660 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4661 "pinball-" version "/"
4662 "pinball-" version ".tar.gz"))
4665 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4666 (patches (search-patches "pinball-const-fix.patch"
4667 "pinball-cstddef.patch"
4668 "pinball-missing-separators.patch"
4669 "pinball-src-deps.patch"
4670 "pinball-system-ltdl.patch"))))
4671 (build-system gnu-build-system)
4676 ("sdl-image" ,sdl-image)
4677 ("sdl-mixer" ,sdl-mixer)))
4680 (list (string-append "CPPFLAGS=-I"
4681 (assoc-ref %build-inputs "sdl-image")
4683 (assoc-ref %build-inputs "sdl-mixer")
4685 (home-page "http://pinball.sourceforge.net")
4686 (synopsis "Pinball simulator")
4687 (description "The Emilia Pinball Project is a pinball simulator. There
4688 are only two levels to play with, but they are very addictive.")
4689 (license license:gpl2)))
4691 (define-public pioneers
4697 (uri (string-append "https://downloads.sourceforge.net/pio/"
4698 "pioneers-" version ".tar.gz"))
4701 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4702 (build-system gnu-build-system)
4703 (inputs `(("avahi" ,avahi)
4705 ("librsvg" ,librsvg)))
4706 (native-inputs `(("intltool" ,intltool)
4707 ("itstool" ,itstool)
4708 ("libxml2" ,libxml2)
4709 ("pkg-config" ,pkg-config)))
4710 (synopsis "Board game inspired by The Settlers of Catan")
4711 (description "Pioneers is an emulation of the board game The Settlers of
4712 Catan. It can be played on a local network, on the internet, and with AI
4714 (home-page "http://pio.sourceforge.net/")
4715 (license license:gpl2+)))
4717 (define-public einstein
4723 (uri (string-append "mirror://debian/pool/main/e/"
4724 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4727 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4728 (patches (search-patches "einstein-build.patch"))))
4729 (build-system gnu-build-system)
4731 `(("freetype" ,freetype)
4732 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4735 `(("font-dejavu" ,font-dejavu)))
4737 `(#:tests? #f ; no check target
4739 (modify-phases %standard-phases
4741 (lambda* (#:key outputs inputs #:allow-other-keys)
4742 (let ((out (assoc-ref outputs "out"))
4743 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4744 "/share/fonts/truetype/DejaVuSans.ttf")))
4745 (substitute* "Makefile"
4746 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4747 ;; The patch above registers a free font for use by the binary,
4748 ;; but the font is copied during the compile phase into a
4749 ;; resources file, so we need to make the ttf file available.
4750 (symlink dejavu "res/DejaVuSans.ttf")
4752 (synopsis "Logic puzzle game")
4753 (description "The goal of this logic game is to open all cards in a 6x6
4754 grid, using a number of hints as to their relative position. The game idea
4755 is attributed to Albert Einstein.")
4756 ;; The original home page has disappeared.
4757 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4758 "http://games.flowix.com/en/index.html"))
4759 ;; License according to
4760 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4761 ;; The source code is a DFSG-sanitized tarball and does not contain any
4762 ;; license information.
4763 (license license:gpl3+)))
4765 (define-public powwow
4772 "https://www.hoopajoo.net/static/projects/powwow-"
4776 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4778 `(("ncurses" ,ncurses)))
4779 (build-system gnu-build-system)
4780 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4781 (synopsis "MUD and telnet client")
4783 "POWWOW is a client software which can be used for telnet as well as for
4784 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4785 the chat server psyced with the specific config located at
4786 http://lavachat.symlynx.com/unix/")
4787 (license license:gpl2+)))
4789 (define-public red-eclipse
4790 (let ((release "2.0.0")
4793 (name "red-eclipse")
4794 (version (if (zero? revision)
4796 (string-append release "-"
4797 (number->string revision))))
4802 (url "https://github.com/redeclipse/base")
4803 (commit (string-append "v" release))
4804 (recursive? #t))) ; for game data
4805 (file-name (git-file-name name version))
4807 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4808 (modules '((guix build utils)))
4810 ;; Remove proprietary libraries and other pre-compiled binaries.
4812 (delete-file-recursively "bin")
4814 (build-system gnu-build-system)
4816 `(#:tests? #f ; no check target
4817 #:make-flags (list "CC=gcc" "-Csrc"
4818 (string-append "INSTDIR="
4819 (assoc-ref %outputs "out") "/bin")
4820 (string-append "prefix="
4821 (assoc-ref %outputs "out")))
4823 (modify-phases %standard-phases
4824 (add-after 'unpack 'add-store-data-package-path-as-default
4825 (lambda* (#:key outputs #:allow-other-keys)
4826 (substitute* "src/engine/server.cpp"
4827 (("data = \"data\"")
4828 (string-append "data = \""
4829 (assoc-ref outputs "out")
4830 "/share/redeclipse/data\"")))
4832 (delete 'configure) ; no configure script
4833 (add-after 'set-paths 'set-sdl-paths
4834 (lambda* (#:key inputs #:allow-other-keys)
4836 (string-append (assoc-ref inputs "sdl-union")
4838 (or (getenv "CPATH") "")))
4840 (add-after 'install 'copy-data
4841 (lambda* (#:key outputs #:allow-other-keys)
4842 (let ((out (assoc-ref outputs "out")))
4843 (copy-recursively "config"
4844 (string-append out "/config"))
4845 (copy-file "doc/examples/servinit.cfg"
4846 (string-append out "/config/servinit.cfg"))
4847 (copy-recursively "data"
4848 (string-append out "/share/redeclipse/data"))
4849 (mkdir-p (string-append out "/lib/redeclipse"))
4850 (symlink (string-append out "/share/redeclipse/data")
4851 (string-append out "/lib/redeclipse/data")))
4853 (add-after 'copy-data 'wrap-program
4854 (lambda* (#:key inputs outputs #:allow-other-keys)
4855 (let* ((out (assoc-ref outputs "out"))
4856 (bin (string-append out "/bin")))
4857 (with-directory-excursion bin
4858 (rename-file "redeclipse_linux"
4859 ".redeclipse_linux-real")
4860 (rename-file "redeclipse_server_linux"
4861 ".redeclipse_server_linux-real")
4862 (call-with-output-file "redeclipse_linux"
4864 (format port "#!~a/bin/sh
4865 # Run the thing from its home, otherwise it just bails out.
4867 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4868 (assoc-ref inputs "bash") ;implicit input
4870 (string-append bin))))
4871 (call-with-output-file "redeclipse_server_linux"
4873 (format port "#!~a/bin/sh
4874 # Run the thing from its home, otherwise it just bails out.
4876 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4877 (assoc-ref inputs "bash") ;implicit input
4879 (string-append bin))))
4880 (chmod "redeclipse_linux" #o555)
4881 (chmod "redeclipse_server_linux" #o555)))
4884 `(("pkg-config" ,pkg-config)))
4887 ("freetype" ,freetype)
4889 ("sdl-union" ,(sdl-union (list sdl2
4892 (home-page "https://redeclipse.net/")
4893 (synopsis "Arena shooter derived from the Cube 2 engine")
4895 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4896 Offering an innovative parkour system and distinct but all potent weapons,
4897 Red Eclipse provides fast paced and accessible gameplay.")
4898 ;; The engine is under Zlib; data files are covered by the other
4899 ;; licenses. More details at file:///doc/all-licenses.txt.
4900 (license (list license:expat
4906 license:public-domain
4907 license:silofl1.1)))))
4909 (define-public grue-hunter
4911 (name "grue-hunter")
4915 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4918 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4919 (build-system trivial-build-system) ; no Makefile.PL
4920 (arguments `(#:modules ((guix build utils))
4923 (use-modules (guix build utils))
4924 (use-modules (srfi srfi-1))
4926 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4927 (perl (string-append (assoc-ref %build-inputs
4930 (gzip (string-append (assoc-ref %build-inputs
4933 (tar (string-append (assoc-ref %build-inputs
4936 (out (assoc-ref %outputs "out"))
4937 (bin (string-append out "/bin"))
4938 (doc (string-append out
4939 "/share/doc/grue-hunter")))
4940 (copy-file tarball "grue-hunter.tar.gz")
4941 (invoke gzip "-d" "grue-hunter.tar.gz")
4942 (invoke tar "xvf" "grue-hunter.tar")
4945 (copy-file "grue-hunter/gh.pl"
4946 (string-append bin "/grue-hunter"))
4947 (patch-shebang (string-append bin "/grue-hunter")
4950 (install-file "grue-hunter/AGPLv3.txt" doc)
4953 (inputs `(("perl" ,perl)
4956 ("tarball" ,source)))
4957 (home-page "https://jxself.org/grue-hunter.shtml")
4958 (synopsis "Text adventure game")
4960 "Grue Hunter is a text adventure game written in Perl. You must make
4961 your way through an underground cave system in search of the Grue. Can you
4962 capture it and get out alive?")
4963 (license license:agpl3+)))
4965 (define-public lierolibre
4971 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4972 version "/+download/lierolibre-"
4976 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4978 (search-patches "lierolibre-check-unaligned-access.patch"
4979 "lierolibre-try-building-other-arch.patch"
4980 "lierolibre-remove-arch-warning.patch"
4981 "lierolibre-newer-libconfig.patch"
4982 "lierolibre-is-free-software.patch"))
4983 (modules '((guix build utils)))
4986 ;; Delete pre-compiled files.
4987 (delete-file "data/LIERO.CHR")
4988 (delete-file "data/LIERO.SND")
4990 (build-system gnu-build-system)
4992 `(("imagemagick" ,imagemagick)
4993 ("pkg-config" ,pkg-config)
4994 ("util-linux" ,util-linux)
4998 ("libconfig" ,libconfig)
4999 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
5001 (home-page "https://gitlab.com/lierolibre/lierolibre")
5002 (synopsis "Old-school earthworm action game")
5004 "lierolibre is an earthworm action game where you fight another player
5005 (or the computer) underground using a wide array of weapons.
5009 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
5010 and Game of Tag, plus AI-players without true intelligence!
5011 @item Dat nostalgia.
5012 @item Extensions via a hidden F1 menu:
5015 @item Game controller support
5016 @item Powerlevel palettes
5018 @item Ability to write game variables to plain text files.
5019 @item Ability to load game variables from both EXE and plain text files.
5020 @item Scripts to extract and repack graphics, sounds and levels.
5023 To switch between different window sizes, use F6, F7 and F8, to switch to
5024 fullscreen, use F5 or Alt+Enter.")
5025 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
5026 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
5028 (define-public tennix
5036 (url "https://repo.or.cz/tennix.git")
5037 (commit (string-append "tennix-" version))))
5038 (file-name (git-file-name name version))
5040 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
5041 ;; Remove non-free images.
5042 (modules '((guix build utils)))
5045 (for-each delete-file
5046 '("data/loc_training_camp.png"
5047 "data/loc_austrian_open.png"
5048 "data/loc_olympic_green_tennis.png"))
5050 (build-system gnu-build-system)
5052 `(#:tests? #f ;no test
5054 (modify-phases %standard-phases
5055 (add-after 'unpack 'fix-include
5057 (substitute* '("src/graphics.h" "src/sound.h")
5058 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
5059 (string-append "#include \"SDL/" header "\"")))
5060 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5061 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5062 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5064 (add-after 'unpack 'locate-install
5065 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5067 (substitute* "makefile"
5068 (("^CONFIGURE_OUTPUT :=.*" all)
5069 (string-append "INSTALL := install -c\n" all)))
5072 ;; The "configure" script is picky about the arguments it
5073 ;; gets. Call it ourselves.
5075 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5077 `(("which" ,which)))
5079 `(("python" ,python-wrapper)
5080 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5081 (home-page "http://icculus.org/tennix/")
5082 (synopsis "Play tennis against the computer or a friend")
5083 (description "Tennix is a 2D tennis game. You can play against the
5084 computer or against another player using the keyboard. The game runs
5085 in-window at 640x480 resolution or fullscreen.")
5086 ;; Project is licensed under GPL2+ terms. It includes images
5087 ;; released under Public Domain terms, and SDL_rotozoom, released
5088 ;; under LGPL2.1 terms.
5089 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5091 (define-public warzone2100
5093 (name "warzone2100")
5098 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5100 "/warzone2100_src.tar.xz"))
5102 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
5103 (modules '((guix build utils)))
5106 (with-directory-excursion "3rdparty"
5108 delete-file-recursively
5113 (build-system cmake-build-system)
5115 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5116 "-DENABLE_DISCORD=off")
5117 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5119 (modify-phases %standard-phases
5120 (add-after 'unpack 'fix-utfcpp-include
5122 (substitute* "lib/framework/wzstring.cpp"
5123 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5125 (add-after 'unpack 'link-tests-with-qt
5127 (substitute* "tests/Makefile.am"
5128 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5129 (string-append prefix "$(QT5_LIBS) ")))
5131 (add-after 'unpack 'fix-ivis-linktest
5133 (substitute* "tests/ivis_linktest.cpp"
5134 (("iV_DrawTextRotated.*;")
5135 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5136 "100, 100, 0.0f, font_regular);")))
5138 (native-inputs `(("asciidoc" ,asciidoc)
5139 ("asciidoctor" ,ruby-asciidoctor)
5140 ("gettext" ,gettext-minimal)
5141 ("pkg-config" ,pkg-config)
5143 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5145 (inputs `(("curl" ,curl)
5146 ("fontconfig" ,fontconfig)
5147 ("freetype" ,freetype)
5149 ("harfbuzz" ,harfbuzz)
5150 ("libtheora" ,libtheora)
5151 ("libvorbis" ,libvorbis)
5152 ("libxrandr" ,libxrandr)
5153 ("libsodium" ,libsodium)
5154 ("miniupnpc" ,miniupnpc)
5158 ("qtscript" ,qtscript)
5159 ("openssl" ,openssl)
5161 ("utfcpp" ,utfcpp)))
5162 (home-page "https://wz2100.net")
5163 (synopsis "3D Real-time strategy and real-time tactics game")
5165 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5166 modes. An extensive tech tree with over 400 different technologies, combined
5167 with the unit design system, allows for a wide variety of possible units and
5169 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5170 (license (list license:bsd-3
5175 license:lgpl2.1+))))
5177 (define-public widelands
5184 (uri (string-append "https://launchpad.net/widelands/"
5185 "build" version "/build" version "/+download/"
5186 "widelands-build" version "-source.tar.gz"))
5188 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5189 (modules '((guix build utils)))
5192 (delete-file-recursively "src/third_party/minizip")
5195 ;; Use system Minizip. Patch is provided by Debian, and discussed
5196 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5197 (search-patches "widelands-system-wide_minizip.patch"))))
5198 (build-system cmake-build-system)
5201 (let* ((out (assoc-ref %outputs "out"))
5202 (share (string-append out "/share")))
5203 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5204 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5205 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5206 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5207 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5208 ;; type. When used, no game data is installed!
5209 "-DCMAKE_BUILD_TYPE=Release"))
5211 (modify-phases %standard-phases
5212 (add-after 'unpack 'unbundle-fonts
5213 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5214 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5215 (lambda* (#:key inputs #:allow-other-keys)
5216 (with-directory-excursion "data/i18n/fonts"
5217 (for-each (lambda (font)
5218 (delete-file-recursively font)
5219 (symlink (string-append (assoc-ref inputs font)
5220 "/share/fonts/truetype")
5222 '("DejaVu" "MicroHei")))
5225 `(("gettext" ,gettext-minimal)
5226 ("python" ,python-wrapper)))
5232 ("minizip" ,minizip)
5233 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5235 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5236 ("DejaVu" ,font-dejavu)
5237 ("MicroHei" ,font-wqy-microhei)))
5238 (home-page "https://www.widelands.org/")
5239 (synopsis "Fantasy real-time strategy game")
5241 "In Widelands, you are the regent of a small clan. You start out with
5242 nothing but your headquarters, where all your resources are stored.
5244 In the course of the game, you will build an ever growing settlement. Every
5245 member of your clan will do his or her part to produce more resources---wood,
5246 food, iron, gold and more---to further this growth. The economic network is
5247 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5250 As you are not alone in the world, you will meet other clans sooner or later.
5251 Some of them may be friendly and you may eventually trade with them. However,
5252 if you want to rule the world, you will have to train soldiers and fight.
5254 Widelands offers single-player mode with different campaigns; the campaigns
5255 all tell stories of tribes and their struggle in the Widelands universe!
5256 However, settling really starts when you unite with friends over the Internet
5257 or LAN to build up new empires together---or to crush each other in the dusts
5258 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5259 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5260 ;; different licenses.
5261 (license (list license:gpl2+
5262 license:expat ;src/third_party/eris
5263 license:silofl1.1 ;Widelands.ttf
5264 license:cc-by-sa3.0)))) ;some music files
5266 (define-public starfighter
5268 (name "starfighter")
5273 "https://github.com/pr-starfighter/starfighter/releases"
5274 "/download/v" version "/starfighter-"
5275 version "-src.tar.gz"))
5278 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5279 (build-system gnu-build-system)
5281 `(("pkg-config" ,pkg-config)))
5285 ("sdl2-image" ,sdl2-image)
5286 ("sdl2-mixer" ,sdl2-mixer)
5287 ("sdl2-ttf" ,sdl2-ttf)))
5288 (home-page "https://pr-starfighter.github.io/")
5289 (synopsis "2D scrolling shooter game")
5291 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5292 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5293 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5294 way, you will encounter new foes, make new allies, and assist local rebels
5295 in strikes against the evil corporation.")
5296 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5297 (license (list license:gpl3+
5301 license:public-domain))))
5303 (define-public chromium-bsu
5305 (name "chromium-bsu")
5306 (version "0.9.16.1")
5309 (uri (string-append "mirror://sourceforge/chromium-bsu"
5310 "/Chromium B.S.U. source code/"
5311 "chromium-bsu-" version ".tar.gz"))
5314 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5315 (build-system gnu-build-system)
5316 (native-inputs `(("pkg-config" ,pkg-config)))
5317 (inputs `(("gettext" ,gettext-minimal)
5319 ("quesoglc" ,quesoglc)
5320 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5321 (home-page "http://chromium-bsu.sourceforge.net/")
5322 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5324 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5325 are responsible for delivering supplies to the troops on the front line. Your
5326 ship has a small fleet of robotic fighters which you control from the relative
5327 safety of the Chromium vessel.")
5328 ;; Clarified Artistic License for everything but sound, which is covered
5329 ;; by the Expat License.
5330 (license (list license:clarified-artistic license:expat))))
5332 (define-public tuxpaint
5335 (version "0.9.23") ;keep VER_DATE below in sync
5339 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5340 version "/tuxpaint-" version ".tar.gz"))
5343 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5344 (modules '((guix build utils)))
5347 ;; Remove win32 directory which contains binary dll's and the
5348 ;; deprecated visualc directory.
5349 (for-each delete-file-recursively '("win32" "visualc"))
5350 (substitute* "Makefile"
5351 ;; Do not rely on $(GPERF) being an absolute file name
5352 (("\\[ -x \\$\\(GPERF\\) \\]")
5353 "$(GPERF) --version >/dev/null 2>&1"))
5355 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5356 (build-system gnu-build-system)
5359 ("pkg-config" ,pkg-config)))
5362 ("fribidi" ,fribidi)
5363 ("gettext" ,gettext-minimal)
5365 ("librsvg" ,librsvg)
5366 ("libpaper" ,libpaper)
5368 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5369 ;; TODO: Use system fonts rather than those in data/fonts
5371 `(#:make-flags `("VER_DATE=2018-09-02"
5372 "GPERF=gperf" "CC=gcc"
5373 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5374 ,(string-append "PREFIX=" %output)
5375 "KDE_PREFIX=$(PREFIX)/share/applications"
5376 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5377 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5378 #:parallel-build? #f ;fails on some systems
5379 #:tests? #f ;No tests
5380 #:phases (modify-phases %standard-phases
5381 (delete 'configure) ;no configure phase
5382 (add-before 'install 'no-sys-cache
5383 (lambda _ ;do not rebuild system conf cache
5384 (substitute* "Makefile"
5385 (("kbuildsycoca4") ""))
5387 (add-after 'install 'fix-import
5388 (lambda* (#:key inputs outputs #:allow-other-keys)
5389 (let* ((out (assoc-ref outputs "out"))
5390 (net (assoc-ref inputs "netpbm"))
5391 (tpi (string-append out "/bin/tuxpaint-import")))
5393 ;; Point to installation prefix so that the default
5394 ;; configure file is found.
5395 (("/usr/local") out))
5396 ;; tuxpaint-import uses a bunch of programs from
5397 ;; netpbm, so make sure it knows where those are
5400 (,(string-append net "/bin"))))))))))
5401 (native-search-paths
5402 (list (search-path-specification
5403 (variable "TUXPAINT_STAMPS_PATH")
5404 (files '("share/tuxpaint/stamps")))))
5405 (home-page "http://www.tuxpaint.org")
5406 (synopsis "Drawing software for children")
5408 "Tux Paint is a free drawing program designed for young children (kids
5409 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5410 and an encouraging cartoon mascot who helps guide children as they use the
5411 program. It provides a blank canvas and a variety of drawing tools to help
5412 your child be creative.")
5413 (license license:gpl2+)))
5415 (define-public tuxpaint-stamps
5417 (name "tuxpaint-stamps")
5418 (version "2018.09.01")
5422 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5423 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5424 "/tuxpaint-stamps-" version ".tar.gz"))
5427 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5428 (build-system trivial-build-system)
5433 `(#:modules ((guix build utils))
5435 (use-modules (guix build utils))
5438 (assoc-ref %build-inputs "tar") "/bin" ":"
5439 (assoc-ref %build-inputs "gzip") "/bin"))
5440 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5441 (chdir (string-append ,name "-" ,version))
5442 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5444 (copy-recursively "stamps" dir))
5446 (home-page (package-home-page tuxpaint))
5447 (synopsis "Stamp images for Tux Paint")
5449 "This package contains a set of \"Rubber Stamp\" images which can be used
5450 with the \"Stamp\" tool within Tux Paint.")
5451 (license license:gpl2+)))
5453 (define-public tuxpaint-config
5455 (name "tuxpaint-config")
5456 (version "0.0.14") ;keep VER_DATE below in sync
5460 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5461 version "/tuxpaint-config-" version ".tar.gz"))
5464 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5465 (build-system gnu-build-system)
5467 `(("gettext" ,gettext-minimal)))
5470 ("libpaper" ,libpaper)
5471 ;; TODO: Should the following be propagated by fltk?
5476 `(#:make-flags `("VER_DATE=2018-09-01"
5477 "CONFDIR=/etc/tuxpaint" ;don't write to store
5478 ,(string-append "PREFIX=" %output)
5479 "GNOME_PREFIX=$(PREFIX)")
5480 #:parallel-build? #f ;race conditions
5481 #:tests? #f ;no tests
5482 #:phases (modify-phases %standard-phases
5483 (delete 'configure) ;no configure phase
5484 (add-before 'install 'gzip-no-name
5486 (substitute* "Makefile"
5487 ;; tuxpaint-config compresses its own documentation;
5488 ;; make sure it uses flags for reproducibility.
5489 (("gzip") "gzip --no-name"))))
5490 (add-before 'install 'make-install-dirs
5491 (lambda* (#:key outputs #:allow-other-keys)
5492 (let ((out (assoc-ref outputs "out")))
5493 (mkdir-p (string-append out "/bin"))
5495 (home-page (package-home-page tuxpaint))
5496 (synopsis "Configure Tux Paint")
5498 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5499 (license license:gpl2))) ;no "or later" present
5501 (define-public supertux
5507 (uri (string-append "https://github.com/SuperTux/supertux/"
5508 "releases/download/v" version "/SuperTux-v"
5509 version "-Source.tar.gz"))
5510 (file-name (string-append name "-" version ".tar.gz"))
5513 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5515 (search-patches "supertux-unbundle-squirrel.patch"))))
5518 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5519 "-DUSE_SYSTEM_PHYSFS=ON")
5521 (modify-phases %standard-phases
5522 (add-after 'unpack 'patch-squirrel-path
5523 (lambda* (#:key inputs #:allow-other-keys)
5524 (let ((squirrel (assoc-ref inputs "squirrel")))
5525 (substitute* "CMakeLists.txt"
5526 (("set\\(SQUIRREL_PREFIX.*")
5527 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5528 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5529 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5530 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5532 (build-system cmake-build-system)
5533 (inputs `(("sdl2" ,sdl2)
5534 ("sdl2-image" ,sdl2-image)
5535 ("sdl2-mixer" ,sdl2-mixer)
5539 ("libvorbis" ,libvorbis)
5544 ("freetype" ,freetype)
5545 ("squirrel" ,squirrel)))
5547 `(("pkg-config" ,pkg-config)))
5548 (synopsis "2D platformer game")
5549 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5550 a style similar to the original Super Mario games.")
5551 (home-page "https://supertux.org/")
5552 (license license:gpl3+)))
5554 (define-public tintin++
5561 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5562 (string-drop-right version 1)
5563 "/tintin-" version ".tar.gz"))
5565 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5567 `(("gnutls" ,gnutls)
5569 ("readline" ,readline)
5572 '(#:tests? #f ; no test suite
5574 (modify-phases %standard-phases
5575 ;; The source is in tt/src.
5576 (add-before 'configure 'chdir
5580 (build-system gnu-build-system)
5581 (home-page "https://tintin.mudhalla.net/")
5582 (synopsis "MUD client")
5584 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5585 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5586 options used by MUDs, as well as those required to login via telnet on
5587 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5588 (license license:gpl3+)))
5595 (origin (method git-fetch)
5597 (url "https://github.com/sgimenez/laby")
5598 (commit (string-append name "-" version))))
5599 (file-name (git-file-name name version))
5602 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5603 (patches (search-patches "laby-make-install.patch"))))
5604 (build-system gnu-build-system)
5606 `(("lablgtk" ,lablgtk)
5608 ("ocaml-findlib" ,ocaml-findlib)
5609 ("ocamlbuild" ,ocamlbuild)))
5612 (modify-phases %standard-phases
5614 (add-before 'build 'allow-unsafe-strings
5615 ;; Fix a build failure with ocaml >=4.06.0.
5616 ;; See <https://github.com/sgimenez/laby/issues/53>.
5618 (setenv "OCAMLPARAM" "safe-string=0,_")
5620 (add-before 'build 'set-library-path
5621 (lambda* (#:key inputs #:allow-other-keys)
5622 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5623 (setenv "LD_LIBRARY_PATH"
5624 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5625 #:tests? #f ; no 'check' target
5627 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5628 (home-page "https://sgimenez.github.io/laby/")
5629 (synopsis "Programming game")
5630 (description "Learn programming, playing with ants and spider webs ;-)
5631 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5632 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5633 programmers may also add their own favorite language.")
5634 (license license:gpl3+)))
5636 (define-public bambam
5644 (url "https://github.com/porridge/bambam")
5645 (commit (string-append "v" version))))
5646 (file-name (git-file-name name version))
5648 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5649 (build-system python-build-system)
5651 `(#:tests? #f ; no tests
5653 (modify-phases %standard-phases
5654 (delete 'build) ; nothing to build
5656 (lambda* (#:key outputs #:allow-other-keys)
5657 (let* ((out (assoc-ref outputs "out"))
5658 (bin (string-append out "/bin"))
5659 (share (string-append out "/share")))
5661 (copy-file "bambam.py" (string-append bin "/bambam"))
5662 (install-file "bambam.6" (string-append share "/man/man6"))
5663 (copy-recursively "data" (string-append share "/bambam/data")))
5666 `(("python-pygame" ,python-pygame)))
5667 (home-page "https://github.com/porridge/bambam")
5668 (synopsis "Keyboard mashing and doodling game for babies")
5669 (description "Bambam is a simple baby keyboard (and gamepad) masher
5670 application that locks the keyboard and mouse and instead displays bright
5671 colors, pictures, and sounds.")
5672 (license license:gpl3+)))
5674 (define-public mrrescue
5681 "https://github.com/SimonLarsen/mrrescue/releases/"
5682 "download/" version "/mrrescue" version ".love"))
5683 (file-name (string-append name "-" version ".love"))
5686 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5687 (build-system trivial-build-system)
5689 `(#:modules ((guix build utils))
5692 (use-modules (guix build utils))
5693 (let* ((out (assoc-ref %outputs "out"))
5694 (script (string-append out "/bin/" ,name))
5695 (data (string-append out "/share/" ,name))
5696 (source (assoc-ref %build-inputs "source"))
5697 (unzip (string-append (assoc-ref %build-inputs "unzip")
5699 (patch (string-append (assoc-ref %build-inputs "patch")
5701 (bash (string-append (assoc-ref %build-inputs "bash")
5703 (love (string-append (assoc-ref %build-inputs "love")
5706 (mkdir-p (dirname script))
5707 (with-output-to-file script
5709 (format #t "#!~a~%" bash)
5710 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5711 (chmod script #o755)
5713 ;; The better way to package this game would be to install *only* the
5714 ;; script above, pointing to the unextracted .love file in the store.
5715 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5716 ;; Instead of extracting the .love file, patching it, and re-zipping
5717 ;; it to the store, simply point the script to the extracted patched
5718 ;; data directory directly.
5720 (with-directory-excursion data
5721 (invoke unzip source)
5722 (invoke patch "-p1" "-i"
5723 (assoc-ref %build-inputs "love-11.patch")))
5728 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5732 (home-page "https://tangramgames.dk/games/mrrescue")
5733 (synopsis "Arcade-style fire fighting game")
5735 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5736 civilians from burning buildings. The game features fast-paced fire
5737 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5738 throwing people around in pseudo-randomly generated buildings.")
5739 (license (list license:zlib ; for source code
5740 license:cc-by-sa3.0)))) ; for graphics and music assets
5742 (define-public hyperrogue
5746 ;; When updating this package, be sure to update the "hyperrogue-data"
5747 ;; origin in native-inputs.
5751 "https://www.roguetemple.com/z/hyper/hyperrogue"
5752 (string-join (string-split version #\.) "")
5756 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5757 (build-system gnu-build-system)
5759 `(#:tests? #f ; no check target
5760 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5761 "HYPERROGUE_USE_PNG=1")
5763 (modify-phases %standard-phases
5764 (add-after 'set-paths 'set-sdl-paths
5765 (lambda* (#:key inputs #:allow-other-keys)
5767 (string-append (or (getenv "CPATH") "") ":"
5768 (assoc-ref inputs "sdl-union")
5771 (lambda* (#:key inputs outputs #:allow-other-keys)
5772 (let* ((out (assoc-ref outputs "out"))
5773 (share-dir (string-append out "/share/hyperrogue"))
5774 (dejavu-dir (string-append
5775 (assoc-ref inputs "font-dejavu")
5776 "/share/fonts/truetype"))
5777 (dejavu-font "DejaVuSans-Bold.ttf")
5778 (music-file "hyperrogue-music.txt"))
5779 ;; Fix font and music paths.
5780 (substitute* "basegraph.cpp"
5782 (string-append dejavu-dir "/" dejavu-font)))
5783 (substitute* music-file
5785 (string-append share-dir "/sounds/")))
5786 (substitute* "sound.cpp"
5787 (("musicfile = \"\"")
5788 (string-append "musicfile = \""
5789 share-dir "/" music-file "\"")))
5790 ;; Disable build machine CPU optimizations and warnings treated
5792 (substitute* "Makefile"
5793 (("-march=native") "")
5797 (lambda* (#:key inputs outputs #:allow-other-keys)
5798 (let* ((out (assoc-ref outputs "out"))
5799 (bin (string-append out "/bin"))
5800 (share-dir (string-append out "/share/hyperrogue")))
5802 (install-file "hyperrogue" bin)
5803 (install-file "hyperrogue-music.txt" share-dir))
5805 (add-after 'install 'install-data
5806 (lambda* (#:key inputs outputs #:allow-other-keys)
5807 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5808 (out (assoc-ref outputs "out"))
5809 (sounds (string-append out "/share/hyperrogue/sounds"))
5810 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5811 ;; Extract media license information into sounds directory.
5812 (invoke unzip "-j" data
5815 (string-join (string-split ,version #\.) "")
5816 "/sounds/credits.txt") "-d" sounds)
5817 ;; Extract sounds and music into sounds directory.
5818 (invoke "unzip" "-j" data
5821 (string-join (string-split ,version #\.) "")
5822 "/*.ogg") "-d" sounds)))))))
5824 `(("hyperrogue-data"
5829 "https://www.roguetemple.com/z/hyper/hyperrogue"
5830 (string-join (string-split version #\.) "")
5834 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5837 `(("font-dejavu" ,font-dejavu)
5840 ("sdl-union" ,(sdl-union (list sdl
5844 (home-page "https://www.roguetemple.com/z/hyper/")
5845 (synopsis "Non-euclidean graphical rogue-like game")
5847 "HyperRogue is a game in which the player collects treasures and fights
5848 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5849 plane and not in euclidean space.
5851 In HyperRogue, the player can move through different parts of the world, which
5852 are home to particular creatures and may be subject to their own rules of
5855 While the game can use ASCII characters to display the the classical rogue
5856 symbols, it still needs graphics to render the non-euclidean world.")
5857 (license (list license:bsd-3 ; glew.c, mtrand.*
5858 license:cc-by-sa3.0 ; music
5859 license:cc-by-sa4.0 ; sounds
5861 license:public-domain ; direntx.*, some sounds
5862 license:zlib ; savepng.*
5863 license:gpl2+)))) ; remaining files
5865 (define-public kobodeluxe
5871 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5872 version ".tar.bz2"))
5875 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5876 (patches (search-patches
5877 "kobodeluxe-const-charp-conversion.patch"
5878 "kobodeluxe-enemies-pipe-decl.patch"
5879 "kobodeluxe-graphics-window-signed-char.patch"
5880 "kobodeluxe-manpage-minus-not-hyphen.patch"
5881 "kobodeluxe-midicon-segmentation-fault.patch"
5882 "kobodeluxe-paths.patch"))))
5883 (build-system gnu-build-system)
5886 (list (string-append "CPPFLAGS=-I"
5887 (assoc-ref %build-inputs "sdl-union")
5891 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5892 (synopsis "Shooter with space station destruction")
5894 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5895 for Un*x systems with X11.")
5896 (home-page "http://olofson.net/kobodl/")
5897 (license license:gpl2+)))
5899 (define-public freeciv
5906 (uri (list (string-append
5907 "http://files.freeciv.org/stable/freeciv-"
5910 "mirror://sourceforge/freeciv/Freeciv%20"
5911 (version-major+minor version) "/" version
5912 "/freeciv-" version ".tar.bz2")))
5914 (base32 "1kn122f57wn5a8ryxaz73dlbd5m93mqx3bqmmz2lkgdccrvrbns0"))))
5915 (build-system gnu-build-system)
5918 ("cyrus-sasl" ,cyrus-sasl)
5920 ("sdl-mixer" ,sdl-mixer)
5923 `(("pkg-config" ,pkg-config)))
5924 (home-page "http://www.freeciv.org/")
5925 (synopsis "Turn-based empire building strategy game")
5926 (description "Freeciv is a turn-based empire building strategy game
5927 inspired by the history of human civilization. The game commences in
5928 prehistory and your mission is to lead your tribe from the Stone Age
5929 into the Space Age.")
5930 (license license:gpl2+)))
5932 (define-public no-more-secrets
5934 (name "no-more-secrets")
5940 (url "https://github.com/bartobri/no-more-secrets")
5941 (commit (string-append "v" version))))
5942 (file-name (git-file-name name version))
5944 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5945 (build-system gnu-build-system)
5948 #:make-flags (list "CC=gcc" "all-ncurses"
5949 (string-append "prefix="
5950 (assoc-ref %outputs "out")))
5952 (modify-phases %standard-phases
5953 (delete 'configure))))
5955 `(("ncurses" ,ncurses)))
5956 (home-page "https://github.com/bartobri/no-more-secrets")
5957 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5959 "@code{No More Secrets} provides a command line tool called \"nms\"
5960 that recreates the famous data decryption effect seen on screen in the 1992
5963 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5964 it will apply the hollywood effect, initially showing encrypted data, then
5965 starting a decryption sequence to reveal the original plaintext characters.")
5966 (license license:expat)))
5968 (define-public megaglest-data
5970 (name "megaglest-data")
5976 "https://github.com/MegaGlest/megaglest-data"
5977 "/releases/download/" version "/megaglest-data-"
5981 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5982 (build-system cmake-build-system)
5985 (home-page "https://megaglest.org/")
5986 (synopsis "Data files for MegaGlest")
5987 (description "This package contains the data files required for MegaGlest.")
5988 (license license:cc-by-sa3.0)))
5990 (define-public megaglest
5998 "https://github.com/MegaGlest/megaglest-source"
5999 "/releases/download/" version "/megaglest-source-"
6003 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
6004 (build-system cmake-build-system)
6007 ("fontconfig" ,fontconfig)
6010 ("libjpeg-turbo" ,libjpeg-turbo)
6011 ("megaglest-data" ,megaglest-data)
6013 ("miniupnpc" ,miniupnpc)
6015 ("libircclient" ,libircclient)
6017 ("libvorbis" ,libvorbis)
6020 ("wxwidgets" ,wxwidgets)))
6022 `(("cppunit" ,cppunit)
6023 ("pkg-config" ,pkg-config)))
6026 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
6027 (assoc-ref %build-inputs "megaglest-data")
6029 "-DBUILD_MEGAGLEST_TESTS=ON")
6031 (modify-phases %standard-phases
6032 (add-after 'unpack 'fix-ini-search-path
6033 (lambda* (#:key outputs #:allow-other-keys)
6034 (substitute* "source/glest_game/global/config.cpp"
6035 (("/usr/share/megaglest/")
6036 (string-append (assoc-ref outputs "out")
6037 "/share/megaglest/"))))))
6038 #:test-target "megaglest_tests"))
6039 (home-page "https://megaglest.org/")
6040 (synopsis "3D real-time strategy (RTS) game")
6041 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
6042 game, where you control the armies of one of seven different factions: Tech,
6043 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
6044 (license license:gpl2+)))
6046 (define-public freegish
6047 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
6051 (version (string-append "0-" revision "." (string-take commit 9)))
6055 (url "https://github.com/freegish/freegish")
6057 (file-name (git-file-name name version))
6060 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6061 (modules '((guix build utils)))
6062 ;; The audio files in the "music" directory are licensed under
6063 ;; CC-BY-NC, so we delete them.
6066 (delete-file-recursively "music")
6068 (build-system cmake-build-system)
6070 `(#:tests? #f ; no tests included
6072 (list "-DCMAKE_INSTALL_FHS=ON")
6074 (modify-phases %standard-phases
6075 (add-after 'unpack 'set-DATAPATH
6076 (lambda* (#:key outputs #:allow-other-keys)
6077 (substitute* "CMakeLists.txt"
6078 (("^option\\(INSTALL_FHS" line)
6079 (string-append "add_definitions(-DDATAPATH=\""
6080 (assoc-ref outputs "out") "/share/freegish\")\n"
6084 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6086 ("libvorbis" ,libvorbis)
6091 (home-page "https://github.com/freegish/freegish")
6092 (synopsis "Side-scrolling physics platformer with a ball of tar")
6093 (description "In FreeGish you control Gish, a ball of tar who lives
6094 happily with his girlfriend Brea, until one day a mysterious dark creature
6095 emerges from a sewer hole and pulls her below ground.")
6096 ;; The textures are available under the Expat license. All other assets
6097 ;; (including levels) are covered under CC-BY-SA or public domain. The
6098 ;; source code is under GPLv2+.
6099 (license (list license:gpl2+
6101 license:public-domain
6102 license:cc-by-sa3.0)))))
6104 (define-public cdogs-sdl
6112 (url "https://github.com/cxong/cdogs-sdl")
6114 (file-name (git-file-name name version))
6116 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6117 (build-system cmake-build-system)
6120 (list (string-append "-DCDOGS_DATA_DIR="
6121 (assoc-ref %outputs "out")
6122 "/share/cdogs-sdl/"))))
6124 `(("pkg-config" ,pkg-config)))
6129 ("sdl2-image" ,sdl2-image)
6130 ("sdl2-mixer" ,sdl2-mixer)))
6131 (home-page "https://cxong.github.io/cdogs-sdl/")
6132 (synopsis "Classic overhead run-and-gun game")
6133 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6134 supporting up to 4 players in co-op and deathmatch modes. Customize your
6135 player, choose from many weapons, and blast, slide and slash your way through
6136 over 100 user-created campaigns.")
6137 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6138 ;; CC0/CC-BY/CC-BY-SA for assets.
6139 (license (list license:gpl2+
6144 license:cc-by-sa3.0))))
6152 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6153 version "/kiki-" version "-src.tgz"))
6156 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6157 (modules '((guix build utils)))
6160 (for-each delete-file (find-files "." "\\.dll$"))
6163 (search-patches "kiki-level-selection-crash.patch"
6164 "kiki-makefile.patch"
6165 "kiki-missing-includes.patch"
6166 "kiki-portability-64bit.patch"))))
6167 (build-system gnu-build-system)
6169 `(#:tests? #f ; there are no tests
6170 #:make-flags '("CXX=g++")
6172 (modify-phases %standard-phases
6174 (lambda* (#:key inputs outputs #:allow-other-keys)
6175 (setenv "CPLUS_INCLUDE_PATH"
6176 (string-append (assoc-ref inputs "sdl-union")
6178 (assoc-ref inputs "python")
6179 "/include/python2.7:"
6180 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6181 (substitute* "src/main/main.cpp"
6182 (("#include <SDL.h>" line)
6183 (string-append line "
6184 #define K_INCLUDE_GLUT
6185 #include \"KIncludeTools.h\""))
6186 (("// initialize SDL" line)
6187 (string-append "glutInit(&argc,argv);\n" line)))
6188 (substitute* "src/main/KikiController.cpp"
6189 (("getenv\\(\"KIKI_HOME\"\\)")
6190 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6191 (substitute* "linux/Makefile"
6193 (string-append line " -fpermissive"))
6194 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6196 (string-append "PYTHONHOME = "
6197 (assoc-ref inputs "python")
6199 (("\\$\\(GLLIBS\\)" line)
6200 (string-append line " -lm -lpython2.7")))
6201 (substitute* "src/main/KikiPythonWidget.h"
6202 (("#define __KikiPythonWidget" line)
6203 (string-append line "\n#include \"KikiPython.h\"")))
6205 (add-before 'build 'build-kodilib
6206 (lambda* (#:key make-flags #:allow-other-keys)
6207 (with-directory-excursion "kodilib/linux"
6208 (apply invoke "make" make-flags))))
6209 (add-after 'build-kodilib 'chdir
6210 (lambda _ (chdir "linux") #t))
6212 (lambda* (#:key outputs #:allow-other-keys)
6213 (let* ((out (assoc-ref outputs "out"))
6214 (bin (string-append out "/bin"))
6215 (share (string-append out "/share/kiki")))
6218 (install-file "kiki" bin)
6219 (copy-recursively "../py" (string-append share "/py"))
6220 (copy-recursively "../sound" (string-append share "/sound"))
6224 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6225 ("freeglut" ,freeglut-2.8)
6226 ("sdl-union" ,(sdl-union (list sdl
6229 ("python" ,python-2)))
6232 (home-page "http://kiki.sourceforge.net/")
6233 (synopsis "3D puzzle game")
6234 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6235 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6236 small robot living in the nano world, repair its maker.")
6237 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6238 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6239 ;; for a statement from the author.
6240 (license license:public-domain)))
6242 (define-public teeworlds
6249 (url "https://github.com/teeworlds/teeworlds")
6251 ;; There are two submodules in datasrc/{languages,maps}
6253 (file-name (git-file-name name version))
6256 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6257 (modules '((guix build utils)
6262 (snippet ; remove bundled libraries except md5
6263 '(let ((base-dir "src/engine/external/"))
6264 (for-each (compose (cut delete-file-recursively <>)
6265 (cut string-append base-dir <>))
6266 (remove (cut string-match "(^.)|(^md5$)" <>)
6267 (scandir base-dir)))
6269 (build-system cmake-build-system)
6271 `(#:tests? #f ; no tests included
6273 (modify-phases %standard-phases
6274 (add-after 'unpack 'patch-paths
6275 (lambda* (#:key outputs #:allow-other-keys)
6276 ;; Embed path to assets.
6277 (substitute* "src/engine/shared/storage.cpp"
6278 (("#define DATA_DIR.*")
6279 (string-append "#define DATA_DIR \""
6280 (assoc-ref outputs "out")
6281 "/share/teeworlds/data"
6285 `(("freetype" ,freetype)
6287 ("json-parser" ,json-parser)
6289 ("pnglite" ,pnglite)
6291 ("sdl2-image" ,sdl2-image)
6292 ("sdl2-mixer" ,sdl2-mixer)
6293 ("wavpack" ,wavpack)
6294 ("openssl" ,openssl)
6297 `(("python" ,python-wrapper)
6298 ("pkg-config" ,pkg-config)))
6299 (home-page "https://www.teeworlds.com")
6300 (synopsis "2D retro multiplayer shooter game")
6301 (description "Teeworlds is an online multiplayer game. Battle with up to
6302 16 players in a variety of game modes, including Team Deathmatch and Capture
6303 The Flag. You can even design your own maps!")
6304 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6306 (define-public enigma
6312 (uri (string-append "mirror://sourceforge/enigma-game/"
6313 "Release%20" version "/enigma-"
6317 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6318 (build-system gnu-build-system)
6321 (list "--with-system-enet")
6323 (modify-phases %standard-phases
6324 (add-after 'unpack 'fix-build-with-new-gcc
6326 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6327 ;; to NULL. Can be removed for versions > 1.21.
6328 (substitute* "src/lev/Proxy.cc"
6332 (add-after 'unpack 'find-sdl
6334 (substitute* "configure"
6335 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6336 (substitute* '("tools/ttf2bmf.cc"
6337 "lib-src/enigma-core/ecl_font.cc"
6338 "lib-src/enigma-core/ecl_video.cc"
6339 "lib-src/enigma-core/ecl_buffer.hh"
6340 "src/SoundEngine.cc"
6341 "src/SoundEngine.hh"
6342 "src/MusicManager.cc"
6343 "src/MusicManager.hh"
6347 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6348 (string-append "#include \"SDL/SDL_" header ".h\"")))
6349 (substitute* "src/main.cc"
6350 (("#include <SDL_(image|ttf|mixer).h>" line header)
6351 (string-append "#include \"SDL/SDL_" header ".h\"")))
6354 `(("xerces-c" ,xerces-c)
6355 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6359 `(("pkg-config" ,pkg-config)
6360 ("imagemagick" ,imagemagick)))
6361 (home-page "https://www.nongnu.org/enigma")
6362 (synopsis "Puzzle game with a dexterity component")
6363 (description "Enigma is a puzzle game with 550 unique levels. The object
6364 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6365 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6366 and most of all, countless hairy puzzles usually block your direct way to the
6367 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6368 get bored) interact in many unexpected ways, and since many of them follow the
6369 laws of physics (Enigma’s special laws of physics, that is), controlling them
6370 with the mouse isn’t always trivial.")
6371 (license license:gpl2+)))
6373 (define-public chroma
6379 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6380 version ".tar.bz2"))
6383 "12bjisf5nlqinw8n4r223vld52p0p2mw3fca92vi175c46bycbzn"))))
6384 (build-system gnu-build-system)
6386 `(#:tests? #f ; no tests included
6387 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6389 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6390 ("freetype" ,freetype)
6391 ("ncurses" ,ncurses)
6392 ("fontconfig" ,fontconfig)
6393 ("libxft" ,libxft)))
6395 `(("pkg-config" ,pkg-config)))
6396 (home-page "http://level7.org.uk/chroma/")
6397 (synopsis "Abstract puzzle game")
6398 (description "Chroma is an abstract puzzle game. A variety of colourful
6399 shapes are arranged in a series of increasingly complex patterns, forming
6400 fiendish traps that must be disarmed and mysterious puzzles that must be
6401 manipulated in order to give up their subtle secrets. Initially so
6402 straightforward that anyone can pick it up and begin to play, yet gradually
6403 becoming difficult enough to tax even the brightest of minds.")
6404 (license license:gpl2+)))
6406 (define-public fillets-ng
6412 (uri (string-append "mirror://sourceforge/fillets/"
6413 "Fish%20Fillets%20-%20Next%20Generation/"
6414 version "/fillets-ng-" version ".tar.gz"))
6417 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6418 (build-system gnu-build-system)
6421 (list (string-append "--with-lua="
6422 (assoc-ref %build-inputs "lua")))
6424 (list (string-append "CFLAGS=-I"
6425 (assoc-ref %build-inputs "sdl-union")
6427 (string-append "CXXFLAGS=-I"
6428 (assoc-ref %build-inputs "sdl-union")
6431 (modify-phases %standard-phases
6432 ;; Lua 5.1 does not provide it.
6433 (add-after 'unpack 'do-not-link-with-lualib
6435 (substitute* "configure"
6438 (add-after 'install 'install-data
6439 (lambda* (#:key inputs outputs #:allow-other-keys)
6440 (let ((data (string-append (assoc-ref outputs "out")
6441 "/share/games/fillets-ng")))
6443 (invoke "tar" "-xvf"
6444 (assoc-ref inputs "fillets-ng-data")
6445 "--strip-components=1"
6448 `(("sdl-union" ,(sdl-union (list sdl
6452 ("fribidi" ,fribidi)
6456 `(("pkg-config" ,pkg-config)
6460 (uri (string-append "mirror://sourceforge/fillets/"
6461 "Fish%20Fillets%20-%20Next%20Generation/"
6462 version "/fillets-ng-data-" version ".tar.gz"))
6465 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6466 (home-page "http://fillets.sourceforge.net/")
6467 (synopsis "Puzzle game")
6468 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6469 every of the seventy levels is always the same: find a safe way out. The fish
6470 utter witty remarks about their surroundings, the various inhabitants of their
6471 underwater realm quarrel among themselves or comment on the efforts of your
6472 fish. The whole game is accompanied by quiet, comforting music.")
6473 (license license:gpl2+)))
6475 (define-public crawl
6482 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6483 version "/stone_soup-" version "-nodeps.tar.xz"))
6485 (base32 "1d8p2np2q5951wqphq2f4dyvv976m2lh82b0qp7w9pp1h8zzi1ff"))
6486 (patches (search-patches "crawl-upgrade-saves.patch"))))
6487 (build-system gnu-build-system)
6489 `(("lua51" ,lua-5.1)
6490 ("ncurses" ,ncurses)
6497 ("python" ,python-wrapper)
6498 ("python-pyyaml" ,python-pyyaml)
6499 ("pkg-config" ,pkg-config)))
6502 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6503 (out (assoc-ref %outputs "out")))
6504 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6505 (string-append "prefix=" out)
6507 ;; Don't compile with SSE on systems which don't have it.
6508 ,@(match (%current-system)
6509 ((or "i686-linux" "x86_64-linux")
6511 (_ '("NOSSE=TRUE")))
6512 ;; don't build any bundled dependencies
6518 (modify-phases %standard-phases
6519 (add-after 'unpack 'find-SDL-image
6521 (substitute* "source/windowmanager-sdl.cc"
6522 (("SDL_image.h") "SDL2/SDL_image.h"))
6526 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6527 (setenv "HOME" (getcwd))
6528 ;; Fake a terminal for the test cases.
6529 (setenv "TERM" "xterm-256color")
6530 ;; Run the tests that don't require a debug build.
6531 (apply invoke "make" "nondebugtest"
6532 (format #f "-j~d" (parallel-job-count))
6533 ;; Force command line build for test cases.
6534 (append make-flags '("GAME=crawl" "TILES="))))))))
6535 (synopsis "Roguelike dungeon crawler game")
6536 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6537 for short) is a roguelike adventure through dungeons filled with dangerous
6538 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6539 (home-page "https://crawl.develz.org")
6540 (license (list license:gpl2+
6548 ;; The linter here claims that patch file names should start with the package
6549 ;; name. But, in this case, the patches are inherited from crawl with the
6550 ;; "crawl-" prefix instead of "crawl-tiles-".
6551 (define-public crawl-tiles
6554 (name "crawl-tiles")
6556 (substitute-keyword-arguments
6557 (package-arguments crawl)
6558 ((#:make-flags flags)
6559 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6561 (string-append "PROPORTIONAL_FONT=" dejavu
6562 "/share/fonts/truetype/DejaVuSans.ttf")
6563 (string-append "MONOSPACED_FONT=" dejavu
6564 "/share/fonts/truetype/DejaVuSansMono.ttf")
6566 ;; Rename the executable to allow parallel installation with crawl.
6570 `(,@(package-inputs crawl)
6571 ("font-dejavu" ,font-dejavu)
6572 ("freetype6" ,freetype)
6576 ("sdl2-image" ,sdl2-image)
6577 ("sdl2-mixer" ,sdl2-mixer)))
6579 `(,@(package-native-inputs crawl)
6580 ("pngcrush" ,pngcrush)
6582 (synopsis "Graphical roguelike dungeon crawler game")))
6584 (define-public lugaru
6590 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6591 "lugaru-" version ".tar.xz"))
6594 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6595 (build-system cmake-build-system)
6598 (list "-DSYSTEM_INSTALL=ON")
6602 `(("pkg-config" ,pkg-config)))
6606 ("libjpeg" ,libjpeg-turbo)
6609 ("vorbis" ,libvorbis)
6611 (home-page "https://osslugaru.gitlab.io")
6612 (synopsis "Cross-platform third-person action game")
6613 (description "Lugaru is a third-person action game. The main character,
6614 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6615 In his quest to find those responsible for slaughtering his village, he uncovers
6616 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6617 and the starving wolves from a nearby den. Turner takes it upon himself to
6618 fight against their plot and save his fellow rabbits from slavery.")
6619 (license (list license:gpl2+ ; code
6622 license:cc-by-sa4.0))))
6624 (define-public 0ad-data
6627 (version "0.0.23b-alpha")
6631 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6632 version "-unix-data.tar.xz"))
6633 (file-name (string-append name "-" version ".tar.xz"))
6636 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6637 (modules '((guix build utils)))
6640 (for-each (lambda (name)
6641 (let* ((dir (string-append "binaries/data/mods/" name))
6642 (file (string-append dir "/" name ".zip"))
6643 (unzip #$(file-append unzip "/bin/unzip")))
6644 (invoke unzip "-d" dir file)
6645 (delete-file file)))
6648 (build-system trivial-build-system)
6649 (native-inputs `(("tar" ,tar)
6652 `(#:modules ((guix build utils))
6655 (use-modules (guix build utils))
6656 (let ((out (assoc-ref %outputs "out"))
6657 (source (assoc-ref %build-inputs "source"))
6658 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6659 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6660 (setenv "PATH" xz-path)
6662 (invoke tar "xvf" source "-C" out "--strip=3")))))
6663 (synopsis "Data files for 0ad")
6664 (description "0ad-data provides the data files required by the game 0ad.")
6665 (home-page "https://play0ad.com")
6666 (license (list (license:fsdg-compatible
6667 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6668 "Similar to the license of the Bitstream Vera fonts.")
6669 (license:fsdg-compatible
6670 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6680 (version "0.0.23b-alpha")
6684 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6685 version "-unix-build.tar.xz"))
6686 (file-name (string-append name "-" version ".tar.xz"))
6689 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6690 ;; A snippet here would cause a build failure because of timestamps
6691 ;; reset. See https://bugs.gnu.org/26734.
6693 `(("0ad-data" ,0ad-data)
6699 ("libsodium" ,libsodium)
6700 ("libvorbis" ,libvorbis)
6701 ("libxcursor" ,libxcursor)
6702 ("libxml2" ,libxml2)
6703 ("miniupnpc" ,miniupnpc)
6704 ("mozjs-38" ,mozjs-38)
6707 ("wxwidgets" ,wxwidgets)
6711 ("cmake" ,cmake-minimal)
6713 ("pkg-config" ,pkg-config)
6714 ("python-2" ,python-2)))
6715 (build-system gnu-build-system)
6717 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6719 (modify-phases %standard-phases
6720 (add-after 'unpack 'delete-bundles
6722 (delete-file-recursively "libraries/source/spidermonkey")
6724 (add-after 'unpack 'fix-x11-includes
6726 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6727 (("<Xlib.h>") "<X11/Xlib.h>"))
6728 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6729 (("<Xatom.h>") "<X11/Xatom.h>"))
6730 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6731 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6734 (lambda* (#:key inputs outputs #:allow-other-keys)
6735 (let* ((jobs (number->string (parallel-job-count)))
6736 (out (assoc-ref outputs "out"))
6737 (lib (string-append out "/lib"))
6738 (data (string-append out "/share/0ad")))
6739 (setenv "JOBS" (string-append "-j" jobs))
6741 (with-directory-excursion "build/workspaces"
6742 (invoke "./update-workspaces.sh"
6743 (string-append "--libdir=" lib)
6744 (string-append "--datadir=" data)
6745 ;; TODO: "--with-system-nvtt"
6746 "--with-system-mozjs38")))))
6749 (lambda* (#:key inputs outputs #:allow-other-keys)
6751 (let* ((out (assoc-ref outputs "out"))
6752 (bin (string-append out "/bin"))
6753 (lib (string-append out "/lib"))
6754 (data (string-append out "/share/0ad"))
6755 (applications (string-append out "/share/applications"))
6756 (pixmaps (string-append out "/share/pixmaps"))
6757 (0ad-data (assoc-ref inputs "0ad-data")))
6759 (copy-recursively "data" data)
6760 (for-each (lambda (file)
6761 (symlink (string-append 0ad-data "/" file)
6762 (string-append data "/" file)))
6763 '("config" "mods/mod" "mods/public" "tools"))
6765 (for-each (lambda (file)
6766 (install-file file lib))
6767 (find-files "system" "\\.so$"))
6769 (install-file "system/pyrogenesis" bin)
6770 (with-directory-excursion bin
6771 (symlink "pyrogenesis" "0ad"))
6773 (with-directory-excursion "../build/resources"
6774 (install-file "0ad.desktop" applications)
6775 (install-file "0ad.png" pixmaps))
6777 (add-after 'install 'check
6779 (with-directory-excursion "system"
6780 (invoke "./test")))))))
6781 (home-page "https://play0ad.com")
6782 (synopsis "3D real-time strategy game of ancient warfare")
6783 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6784 warfare. It's a historically-based war/economy game that allows players to
6785 relive or rewrite the history of twelve ancient civilizations, each depicted
6786 at their peak of economic growth and military prowess.
6788 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6789 (license (list license:bsd-2
6800 (define-public open-adventure
6802 (name "open-adventure")
6808 (url "https://gitlab.com/esr/open-adventure")
6810 (file-name (git-file-name name version))
6812 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6813 (build-system gnu-build-system)
6815 `(#:make-flags (list "CC=gcc")
6817 (modify-phases %standard-phases
6818 (delete 'configure) ;no configure script
6819 (add-before 'build 'use-echo
6821 (substitute* "tests/Makefile"
6822 (("/bin/echo") (which "echo")))
6824 (add-after 'build 'build-manpage
6826 ;; This target is missing a dependency
6827 (substitute* "Makefile"
6829 (string-append line " advent.adoc")))
6830 (invoke "make" ".adoc.6")))
6831 ;; There is no install target.
6833 (lambda* (#:key outputs #:allow-other-keys)
6834 (let* ((out (assoc-ref outputs "out"))
6835 (bin (string-append out "/bin"))
6836 (man (string-append out "/share/man/man6")))
6837 (install-file "advent" bin)
6838 (install-file "advent.6" man))
6841 `(("asciidoc" ,asciidoc)
6842 ("libedit" ,libedit)
6843 ("pkg-config" ,pkg-config)
6844 ("python" ,python-wrapper)
6845 ("python-pyyaml" ,python-pyyaml)))
6846 (home-page "https://gitlab.com/esr/open-adventure")
6847 (synopsis "Colossal Cave Adventure")
6849 "The original Colossal Cave Adventure from 1976 was the origin of all
6850 text adventures, dungeon-crawl (computer) games, and computer-hosted
6851 roleplaying games. This is a forward port of the last version released by
6852 Crowther & Woods, its original authors, in 1995. It has been known as
6853 ``adventure 2.5'' and ``430-point adventure''.")
6854 (license license:bsd-2)))
6856 (define-public open-adventure-2.5
6858 (inherit open-adventure)
6860 (properties `((superseded . ,open-adventure)))))
6862 (define-public tome4
6866 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6870 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6871 version ".tar.bz2"))
6873 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6874 (modules '((guix build utils)))
6877 (substitute* '("src/music.h" "src/tSDL.h")
6878 (("#elif defined(__FreeBSD__)" line)
6880 line " || defined(__GNUC__)")))
6881 (substitute* '("src/tgl.h")
6882 (("#include <GL/glext.h>") ""))
6884 (build-system gnu-build-system)
6886 `(("unzip" ,unzip)))
6888 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6890 ("premake4" ,premake4)
6892 ("vorbis" ,libvorbis)
6893 ("luajit" ,luajit)))
6896 (list (string-append "CC=" ,(cc-for-target))
6898 ;; XXX: Building in parallel occasionally causes this build failure:
6899 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6900 ;; No such file or directory
6901 #:parallel-build? #f
6902 #:phases (modify-phases %standard-phases
6906 (invoke "premake4" "gmake")
6908 (add-after 'set-paths 'set-sdl-paths
6909 (lambda* (#:key inputs #:allow-other-keys)
6911 (string-append (assoc-ref inputs "sdl-union")
6913 (or (getenv "CPATH") "")))
6916 ;; premake doesn't provide install target
6918 (lambda* (#:key inputs outputs #:allow-other-keys)
6919 (let* ((out (assoc-ref outputs "out"))
6920 (usr (string-append out "/usr"))
6921 (bin (string-append out "/bin"))
6922 (licenses (string-append out "/share/licenses"))
6923 (documents (string-append out "/share/doc"))
6924 (pixmaps (string-append out "/share/pixmaps"))
6925 (icon "te4-icon.png")
6926 (data (string-append out "/share/" ,name))
6927 (applications (string-append
6928 out "/share/applications"))
6929 (unzip (string-append
6930 (assoc-ref inputs "unzip") "/bin/unzip"))
6931 (wrapper (string-append bin "/" ,name)))
6936 "game/engines/te4-" ,version ".teae")
6938 "data/gfx/" icon) "-d" pixmaps)
6940 (install-file "t-engine" data)
6942 (with-output-to-file wrapper
6947 ;; No bootstrap code found,
6948 ;; defaulting to working directory
6951 "exec -a tome4 ./t-engine \"$@\"\n"))))
6952 (chmod wrapper #o555)
6954 (for-each (lambda (file)
6955 (install-file file licenses))
6956 '("COPYING" "COPYING-MEDIA"))
6958 (for-each (lambda (file)
6959 (install-file file documents))
6960 '("CONTRIBUTING" "CREDITS"))
6962 (copy-recursively "bootstrap" (string-append
6964 (copy-recursively "game" (string-append data "/game"))
6966 (mkdir-p applications)
6967 (make-desktop-entry-file
6968 (string-append applications "/" ,name ".desktop")
6973 #:categories '("Game" "RolePlaying")))
6975 (home-page "https://te4.org")
6976 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6977 combat and advanced character building. Play as one of many unique races and
6978 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6979 challenging battles, and developing characters with your own tailored mix of
6980 abilities and powers. With a modern graphical and customisable interface,
6981 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6982 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6983 (license license:gpl3+)))
6985 (define-public quakespasm
6992 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6995 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6998 #:make-flags '("CC=gcc"
7001 "USE_CODEC_MIKMOD=1"
7004 #:phases (modify-phases %standard-phases
7006 (add-after 'unpack 'fix-makefile-paths
7007 (lambda* (#:key outputs #:allow-other-keys)
7008 (let ((out (assoc-ref outputs "out")))
7009 (mkdir-p (string-append out "/bin"))
7010 (substitute* "Quake/Makefile"
7011 (("/usr/local/games")
7012 (string-append out "/bin")))
7014 (build-system gnu-build-system)
7015 (inputs `(("libmikmod" ,libmikmod)
7016 ("libvorbis" ,libvorbis)
7021 (synopsis "First person shooter engine for Quake 1")
7022 (description "Quakespasm is a modern engine for id software's Quake 1.
7023 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7024 some graphical niceities, and numerous bug-fixes and other improvements.")
7025 (home-page "http://quakespasm.sourceforge.net/")
7026 (license license:gpl2+)))
7028 (define-public vkquake
7030 (inherit quakespasm)
7037 (url "https://github.com/Novum/vkQuake")
7039 (file-name (git-file-name name version))
7041 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
7044 (let ((vulkanlib (string-append (assoc-ref %build-inputs
7045 "vulkan-loader") "/lib")))
7049 "USE_CODEC_MIKMOD=1"
7051 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
7053 #:phases (modify-phases %standard-phases
7054 (add-after 'unpack 'patch-for-new-vulkan
7056 ;; Mimic upstream commit a869a22d9b51c68e for
7057 ;; compatibility with newer vulkan-headers.
7058 (substitute* "Quake/gl_rmisc.c"
7059 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7063 (add-after 'unpack 'fix-makefile-paths
7064 (lambda* (#:key outputs #:allow-other-keys)
7065 (let ((vulkan (assoc-ref %build-inputs
7067 (out (assoc-ref outputs "out")))
7068 (mkdir-p (string-append out "/bin"))
7069 (substitute* "Quake/Makefile" ((" /usr")
7070 (string-append " " out)))
7071 (substitute* "Quake/Makefile" (("/games")
7072 (string-append "/bin")))
7073 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7075 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7076 (package-arguments quakespasm))))
7077 (inputs `(("vulkan-headers" ,vulkan-headers)
7078 ("vulkan-loader" ,vulkan-loader)
7079 ,@(package-inputs quakespasm)))
7080 (description "vkquake is a modern engine for id software's Quake 1.
7081 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7082 some graphical niceities, and numerous bug-fixes and other improvements.")
7083 (home-page "https://github.com/Novum/vkQuake")))
7085 (define-public yamagi-quake2
7087 (name "yamagi-quake2")
7092 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7095 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7096 (build-system gnu-build-system)
7101 ;; link openAL instead of using dlopen at runtime
7102 "DLOPEN_OPENAL=\"no\""
7103 ;; an optional directory where it will look for quake2 data files
7104 ;; in addition to the current working directory
7105 "WITH_SYSTEMWIDE=yes"
7106 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7108 (modify-phases %standard-phases
7111 (lambda* (#:key outputs #:allow-other-keys)
7112 (let ((out (assoc-ref outputs "out")))
7113 (mkdir-p (string-append out "/lib"))
7114 (mkdir-p (string-append out "/bin"))
7115 ;; The yamagi-quake2 binary must be in the same directory
7116 ;; as it's engine libraries, but symlinking it to /bin is okay
7117 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7118 (copy-recursively "release"
7119 (string-append out "/lib/yamagi-quake2"))
7120 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7121 (string-append out "/bin/yamagi-quake2"))
7122 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7123 (string-append out "/bin/yamagi-q2ded"))))))))
7125 `(("pkg-config" ,pkg-config)))
7127 `(("curl" ,curl-minimal)
7128 ("libvorbis" ,libvorbis)
7133 (synopsis "First person shooter engine based on quake2")
7134 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7135 The main focus is an unchanged single player experience like back in 1997,
7136 thus the gameplay and the graphics are unaltered. However the user may use one
7137 of the unofficial retexturing packs. In comparison with the official client,
7138 over 1000 bugs were fixed and an extensive code audit done,
7139 making Yamagi Quake II one of the most solid Quake II implementations available.")
7140 (home-page "https://www.yamagi.org/quake2/")
7141 (license (list license:gpl2+ ; game and server
7142 (license:non-copyleft ; info-zip
7144 "See Info-Zip section.")
7145 license:public-domain)))) ; stb
7147 (define-public nudoku
7155 (url "https://github.com/jubalh/nudoku")
7157 (file-name (git-file-name name version))
7159 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7160 (build-system gnu-build-system)
7162 `(("autoconf" ,autoconf)
7163 ("automake" ,automake)
7164 ("gettext" ,gettext-minimal)
7165 ("pkg-config" ,pkg-config)))
7167 `(("ncurses" ,ncurses)))
7168 (home-page "https://jubalh.github.io/nudoku/")
7169 (synopsis "Sudoku for your terminal")
7170 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7171 (license license:gpl3+)))
7173 (define-public the-butterfly-effect
7175 (name "the-butterfly-effect")
7181 (url "https://github.com/the-butterfly-effect/tbe")
7182 (commit (string-append "v" version))))
7183 (file-name (git-file-name name version))
7186 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7187 (build-system gnu-build-system)
7190 (modify-phases %standard-phases
7192 ;; There is no "install" phase. By default, tbe is installed
7193 ;; in the build directory. Provide our own installation.
7195 (lambda* (#:key outputs #:allow-other-keys)
7196 (let* ((out (assoc-ref outputs "out"))
7197 (bin (string-append out "/bin"))
7198 (share (string-append out "/share")))
7199 (install-file "usr/games/tbe" bin)
7201 (copy-recursively "usr/share" share)
7203 ;; Test suite requires a running Xorg server. Even when
7204 ;; provided, it fails with "D-Bus library appears to be
7205 ;; incorrectly set up; failed to read machine uuid: Failed to
7206 ;; open "/etc/machine-id": No such file or directory" along
7207 ;; with multiple "QPainter:: ... Painter not active" warnings.
7210 `(("qtbase" ,qtbase)
7213 `(("cmake" ,cmake-minimal)
7214 ("gettext-minimal" ,gettext-minimal)
7215 ("qttools" ,qttools)))
7216 (synopsis "Realistic physics puzzle game")
7217 (description "The Butterfly Effect (tbe) is a game that uses
7218 realistic physics simulations to combine lots of simple mechanical
7219 elements to achieve a simple goal in the most complex way possible.")
7220 (home-page "http://the-butterfly-effect.org/")
7221 ;; Main license is GPL2-only. However, artwork is distributed
7222 ;; under various licenses, listed here.
7223 (license (list license:gpl2 license:public-domain license:expat
7224 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7226 (define-public pioneer
7229 (version "20210203")
7233 (url "https://github.com/pioneerspacesim/pioneer")
7235 (file-name (git-file-name name version))
7238 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7239 (build-system cmake-build-system)
7241 `(("pkg-config" ,pkg-config)))
7243 `(("assimp" ,assimp)
7245 ("freetype" ,freetype)
7249 ("libsigc++" ,libsigc++)
7250 ("libvorbis" ,libvorbis)
7251 ("lua" ,lua-5.2) ;not compatible with 5.3
7253 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7255 `(#:tests? #f ;tests are broken
7256 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7257 (string-append "-DPIONEER_DATA_DIR="
7258 %output "/share/games/pioneer"))))
7259 (home-page "https://pioneerspacesim.net")
7260 (synopsis "Game of lonely space adventure")
7262 "Pioneer is a space adventure game set in our galaxy at the turn of the
7263 31st century. The game is open-ended, and you are free to eke out whatever
7264 kind of space-faring existence you can think of. Look for fame or fortune by
7265 exploring the millions of star systems. Turn to a life of crime as a pirate,
7266 smuggler or bounty hunter. Forge and break alliances with the various
7267 factions fighting for power, freedom or self-determination. The universe is
7268 whatever you make of it.")
7269 (license license:gpl3)))
7271 (define-public badass
7272 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7276 (version (git-version "0.0" revision commit))
7280 (url "https://github.com/umayr/badass")
7282 (file-name (git-file-name name version))
7285 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7286 (build-system go-build-system)
7288 '(#:import-path "github.com/umayr/badass"))
7289 (synopsis "Hacking contribution graphs in git")
7291 "Badass generates false commits for a range of dates, essentially
7292 hacking the gamification of contribution graphs on platforms such as
7294 (home-page "https://github.com/umayr/badass")
7295 (license license:expat))))
7297 (define-public colobot
7300 (version "0.1.12-alpha")
7305 (url "https://github.com/colobot/colobot")
7306 (commit (string-append "colobot-gold-" version))
7307 (recursive? #t))) ;for "data/" subdir
7308 (file-name (git-file-name name version))
7311 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7312 (build-system cmake-build-system)
7314 `(#:tests? #f ;no test
7316 (modify-phases %standard-phases
7317 (add-after 'unpack 'make-git-checkout-writable
7319 (for-each make-file-writable (find-files "."))
7321 (add-after 'unpack 'fix-directories
7323 (substitute* "CMakeLists.txt"
7324 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7325 (string-append prefix "/bin"))
7326 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7327 (string-append prefix "/colobot")))
7329 (add-after 'fix-directories 'install-music
7330 ;; Retrieve and install music files.
7331 (lambda* (#:key inputs #:allow-other-keys)
7332 ;; Installation process tries to download music files using
7333 ;; "wget" if not already present. Since we are going another
7334 ;; route, skip "wget" command check.
7335 (substitute* "data/music/CMakeLists.txt"
7336 (("find_program\\(WGET wget\\)") ""))
7337 ;; Populate "music/" directory.
7338 (let ((data (assoc-ref inputs "colobot-music")))
7339 (invoke "tar" "-xvf" data "-Cdata/music"))
7345 (uri (string-append "https://colobot.info/files/music/"
7346 "colobot-music_ogg_" version ".tar.gz"))
7349 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7350 ("gettext" ,gettext-minimal)
7351 ("librsvg" ,librsvg)
7353 ("python" ,python-wrapper)))
7359 ("libsndfile" ,libsndfile)
7360 ("libvorbis" ,libvorbis)
7363 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7364 (synopsis "Educational programming strategy game")
7365 (description "Colobot: Gold Edition is a real-time strategy game, where
7366 you can program your units (bots) in a language called CBOT, which is similar
7367 to C++ and Java. Your mission is to find a new planet to live and survive.
7368 You can save humanity and get programming skills!")
7369 (home-page "https://colobot.info")
7370 (license license:gpl3+)))
7372 (define-public gzdoom
7380 (url "https://github.com/coelckers/gzdoom")
7381 (commit (string-append "g" version))))
7382 (file-name (git-file-name name version))
7384 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7385 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7386 "gzdoom-find-system-libgme.patch"))
7387 (modules '((guix build utils)))
7390 ;; Remove some bundled libraries. XXX There are more, but removing
7391 ;; them would require, at least, patching the build system.
7392 (with-directory-excursion "libraries"
7393 (delete-file-recursively "bzip2")
7394 (delete-file-recursively "game-music-emu")
7395 (delete-file-recursively "jpeg")
7396 (delete-file-recursively "zlib"))
7401 (let ((out (assoc-ref %outputs "out")))
7404 "-DCMAKE_CXX_FLAGS:="
7405 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7406 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7408 ;; The build requires some extra convincing not to use the bundled
7409 ;; libgme previously deleted in the soure snippet.
7410 "-DFORCE_INTERNAL_GME=OFF"
7412 ;; Link libraries at build time instead of loading them at run time.
7414 "-DDYN_FLUIDSYNTH=OFF"
7417 "-DDYN_SNDFILE=OFF"))
7419 (modify-phases %standard-phases
7420 (add-before 'configure 'fix-referenced-paths
7421 (lambda* (#:key inputs outputs #:allow-other-keys)
7422 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7423 (timidity++ (assoc-ref inputs "timidity++"))
7424 (out (assoc-ref outputs "out")))
7427 "src/CMakeLists.txt"
7428 (("COMMAND /bin/sh")
7429 (string-append "COMMAND " (which "sh"))))
7432 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7433 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7434 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7437 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7438 (("exename = \"timidity\"")
7439 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7441 (build-system cmake-build-system)
7442 (inputs `(("bzip2" ,bzip2)
7443 ("fluid-3" ,fluid-3)
7444 ("fluidsynth" ,fluidsynth)
7447 ("libjpeg" ,libjpeg-turbo)
7448 ("libsndfile" ,libsndfile)
7453 ("timidity++" ,timidity++)
7455 (native-inputs `(("pkg-config" ,pkg-config)
7457 (synopsis "Modern Doom 2 source port")
7458 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7459 renderer. It improves modding support with ZDoom's advanced mapping features
7460 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7461 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7462 (home-page "https://zdoom.org/index")
7463 ;; The source uses x86 assembly
7464 (supported-systems '("x86_64-linux" "i686-linux"))
7465 (license (list license:gpl3+ ; gzdoom game
7466 license:lgpl3+ ; gzdoom renderer
7467 license:expat ; gdtoa
7468 (license:non-copyleft ; modified dumb
7469 "file://dumb/licence.txt"
7470 "Dumb license, explicitly GPL compatible.")))))
7472 (define-public odamex
7480 "mirror://sourceforge/odamex/Odamex/" version "/"
7481 "odamex-src-" version ".tar.gz"))
7483 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7484 (build-system cmake-build-system)
7485 (arguments `(#:tests? #f)) ; no tests
7488 ("sdl-mixer" ,sdl-mixer)
7491 ("alsa-lib" ,alsa-lib)))
7492 (home-page "https://odamex.net/")
7493 (synopsis "Multiplayer Doom port")
7494 (description "Odamex is a modification of the Doom engine that
7495 allows players to easily join servers dedicated to playing Doom
7497 (license license:gpl2+)))
7499 (define-public chocolate-doom
7501 (name "chocolate-doom")
7505 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7512 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7513 (build-system gnu-build-system)
7514 (inputs `(("sdl2-net" ,sdl2-net)
7515 ("sdl2-mixer" , sdl2-mixer)
7518 `(("pkg-config" ,pkg-config)))
7519 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7522 "Chocolate Doom takes a different approach to other source ports. Its
7523 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7524 a conservative, historically accurate Doom source port, which is compatible
7525 with the thousands of mods and levels that were made before the Doom source
7526 code was released. Rather than flashy new graphics, Chocolate Doom's main
7527 features are its accurate reproduction of the game as it was played in the
7528 1990s. The project is developed around a carefully-considered philosophy that
7529 intentionally restricts which features may be added (and rejects any that
7531 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7532 (license license:gpl2)))
7534 (define-public crispy-doom
7536 (inherit chocolate-doom)
7537 (name "crispy-doom")
7542 (url "https://github.com/fabiangreffrath/crispy-doom")
7543 (commit (string-append "crispy-doom-" version))))
7544 (file-name (git-file-name name version))
7546 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7549 (package-native-inputs chocolate-doom)
7550 `(("automake" ,automake)
7551 ("autoreconf" ,autoconf))))
7554 (modify-phases %standard-phases
7556 ;; The bundled autogen.sh script unconditionally runs ./configure.
7557 (lambda _ (invoke "autoreconf" "-vif"))))))
7558 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7561 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7562 display resolution, removes the static limits of the Doom engine and offers
7563 further optional visual, tactical and physical enhancements while remaining
7564 entirely config file, savegame, netplay and demo compatible with the
7566 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7568 (define shlomif-cmake-modules
7571 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7572 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7573 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7575 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7577 (define-public rinutils
7584 (url "https://github.com/shlomif/rinutils")
7586 (file-name (git-file-name name version))
7589 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7592 ;; The following is only needed for tests.
7593 ("perl-file-find-object" ,perl-file-find-object)
7594 ("perl-test-differences" ,perl-test-differences)
7595 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7596 ("perl-io-all" ,perl-io-all)
7597 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7598 ("cmake-rules" ,shlomif-cmake-modules)
7599 ("pkg-config" ,pkg-config)))
7601 `(("cmocka" ,cmocka)
7602 ("perl-env-path" ,perl-env-path)
7603 ("perl-inline" ,perl-inline)
7604 ("perl-inline-c" ,perl-inline-c)
7605 ("perl-string-shellquote" ,perl-string-shellquote)
7606 ("perl-test-trailingspace" ,perl-test-trailingspace)
7607 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7608 ("perl-text-glob" ,perl-text-glob)
7609 ("perl-number-compare" ,perl-number-compare)
7610 ("perl-moo" ,perl-moo)))
7613 (modify-phases %standard-phases
7614 (add-after 'unpack 'fix-build-env
7615 (lambda* (#:key inputs #:allow-other-keys)
7616 (use-modules (guix build utils))
7617 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7618 (copy-file cmake-rules
7619 (string-append "cmake/"
7620 (strip-store-file-name cmake-rules)))
7624 (with-directory-excursion "../source"
7625 (setenv "FCS_TEST_BUILD" "1")
7626 (setenv "RINUTILS_TEST_BUILD" "1")
7627 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7628 ;; which requires tidy-all.
7629 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7630 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7631 (build-system cmake-build-system)
7632 (home-page "https://www.shlomifish.org/open-source/projects/")
7633 (synopsis "C11 / gnu11 utilities C library")
7634 (description "This package provides C11 / gnu11 utilities C library")
7635 (license license:expat)))
7637 (define-public fortune-mod
7639 (name "fortune-mod")
7645 (url "https://github.com/shlomif/fortune-mod")
7646 (commit (string-append "fortune-mod-" version))))
7647 (file-name (git-file-name name version))
7649 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7650 (build-system cmake-build-system)
7652 `(#:test-target "check"
7654 (modify-phases %standard-phases
7655 (add-after 'unpack 'fix-build-env
7656 (lambda* (#:key inputs #:allow-other-keys)
7657 (use-modules (guix build utils))
7658 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7659 (copy-file cmake-rules
7660 (string-append "fortune-mod/cmake/"
7661 (strip-store-file-name cmake-rules)))
7662 (chdir "fortune-mod")
7663 ;; TODO: Valgrind tests fail for some reason.
7664 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7665 (delete-file "tests/t/valgrind.t")
7667 (add-after 'install 'fix-install-directory
7668 (lambda* (#:key outputs #:allow-other-keys)
7669 ;; Move binary from "games/" to "bin/" and remove the latter. This
7670 ;; is easier than patching CMakeLists.txt since the tests hard-code
7671 ;; the location as well.
7672 (let* ((out (assoc-ref outputs "out"))
7673 (bin (string-append out "/bin"))
7674 (games (string-append out "/games")))
7675 (rename-file (string-append games "/fortune")
7676 (string-append bin "/fortune"))
7679 (inputs `(("recode" ,recode)))
7682 ;; The following is only needed for tests.
7683 ("perl-file-find-object" ,perl-file-find-object)
7684 ("perl-test-differences" ,perl-test-differences)
7685 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7686 ("perl-io-all" ,perl-io-all)
7687 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7688 ("cmake-rules" ,shlomif-cmake-modules)
7689 ("rinutils" ,rinutils)))
7690 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7691 (synopsis "The Fortune Cookie program from BSD games")
7692 (description "Fortune is a command-line utility which displays a random
7693 quotation from a collection of quotes.")
7694 (license license:bsd-4)))
7696 (define xonotic-data
7698 (name "xonotic-data")
7703 (uri (string-append "http://dl.xonotic.org/xonotic-"
7705 (file-name (string-append name "-" version ".zip"))
7708 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7709 (build-system trivial-build-system)
7711 `(("unzip" ,unzip)))
7713 `(#:modules ((guix build utils))
7716 (use-modules (guix build utils))
7717 (let* ((out (assoc-ref %outputs "out"))
7718 (xonotic (string-append out "/share/xonotic"))
7719 (source (assoc-ref %build-inputs "source"))
7720 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7721 (copy-file source (string-append ,name "-" ,version ".zip"))
7722 (invoke unzip (string-append ,name "-" ,version ".zip"))
7726 (copy-recursively "data"
7727 (string-append xonotic "/data"))
7728 (copy-recursively "server"
7729 (string-append xonotic "/server"))
7730 (install-file "key_0.d0pk" xonotic)))))
7731 (home-page "http://xonotic.org")
7732 (synopsis "Data files for Xonotic")
7734 "Xonotic-data provides the data files required by the game Xonotic.")
7735 (license (list license:gpl2+
7736 (license:x11-style "file://server/rcon.pl")))))
7738 (define-public xonotic
7745 (uri (string-append "http://dl.xonotic.org/xonotic-"
7746 version "-source.zip"))
7747 (file-name (string-append name "-" version ".zip"))
7750 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7751 (build-system gnu-build-system)
7753 `(#:configure-flags (list (string-append "--prefix="
7754 (assoc-ref %outputs "out"))
7755 "--disable-rijndael")
7757 (modify-phases %standard-phases
7758 (add-before 'configure 'make-darkplaces
7759 (lambda* (#:key outputs #:allow-other-keys)
7760 (let* ((out (assoc-ref outputs "out"))
7761 (sharedir (string-append out "/share/xonotic/")))
7762 (invoke "make" "-C" "source/darkplaces"
7763 (string-append "DP_FS_BASEDIR="
7765 "DP_LINK_TO_LIBJPEG=1"
7770 (invoke "make" "-C" "source/darkplaces"
7771 (string-append "DP_FS_BASEDIR="
7773 "DP_LINK_TO_LIBJPEG=1"
7778 (invoke "make" "-C" "source/darkplaces"
7779 (string-append "DP_FS_BASEDIR="
7781 "DP_LINK_TO_LIBJPEG=1"
7786 (add-before 'configure 'bootstrap
7788 (chdir "source/d0_blind_id")
7789 (invoke "sh" "autogen.sh")))
7790 (add-after 'build 'install-desktop-entry
7791 (lambda* (#:key outputs #:allow-other-keys)
7792 ;; Add .desktop files for the 2 variants and the symlink
7793 (let* ((output (assoc-ref outputs "out"))
7794 (apps (string-append output "/share/applications")))
7796 (with-output-to-file
7797 (string-append apps "/xonotic-glx.desktop")
7802 Comment=Xonotic glx~@
7803 Exec=~a/bin/xonotic-glx~@
7804 TryExec=~@*~a/bin/xonotic-glx~@
7809 (with-output-to-file
7810 (string-append apps "/xonotic-sdl.desktop")
7815 Comment=Xonotic sdl~@
7816 Exec=~a/bin/xonotic-sdl~@
7817 TryExec=~@*~a/bin/xonotic-sdl~@
7822 (with-output-to-file
7823 (string-append apps "/xonotic.desktop")
7829 Exec=~a/bin/xonotic-glx~@
7830 TryExec=~@*~a/bin/xonotic~@
7836 (add-after 'install-desktop-entry 'install-icons
7837 (lambda* (#:key outputs #:allow-other-keys)
7838 (let ((out (assoc-ref outputs "out")))
7839 (with-directory-excursion "../../misc/logos/icons_png/"
7842 (let* ((size (string-filter char-numeric? file))
7843 (icons (string-append out "/share/icons/hicolor/"
7844 size "x" size "/apps")))
7846 (copy-file file (string-append icons "/xonotic.png"))))
7847 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7848 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7849 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7850 (add-after 'install-icons 'install-binaries
7851 (lambda* (#:key outputs #:allow-other-keys)
7852 (let ((out (assoc-ref outputs "out")))
7853 (define (install src dst)
7854 (let ((dst (string-append out dst)))
7855 (mkdir-p (dirname dst))
7856 (copy-file src dst)))
7857 (mkdir-p (string-append out "/bin"))
7858 (install "../darkplaces/darkplaces-dedicated"
7859 "/bin/xonotic-dedicated")
7860 (install "../darkplaces/darkplaces-glx"
7862 (install "../darkplaces/darkplaces-sdl"
7864 ;; Provide a default xonotic executable, defaulting to SDL.
7865 (symlink (string-append out "/bin/xonotic-sdl")
7866 (string-append out "/bin/xonotic"))
7868 (add-after 'install-binaries 'install-data
7869 (lambda* (#:key outputs inputs #:allow-other-keys)
7870 (let* ((out (assoc-ref outputs "out"))
7871 (data (assoc-ref inputs "xonotic-data")))
7872 (symlink (string-append data "/share/xonotic")
7873 (string-append out "/share/xonotic"))
7875 (add-after 'install-binaries 'wrap-binaries
7876 (lambda* (#:key outputs inputs #:allow-other-keys)
7877 ;; Curl and libvorbis need to be wrapped so that we get
7878 ;; sound and networking.
7879 (let* ((out (assoc-ref outputs "out"))
7880 (bin (string-append out "/bin/xonotic"))
7881 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7882 (bin-glx (string-append out "/bin/xonotic-glx"))
7883 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7884 (curl (assoc-ref inputs "curl"))
7885 (vorbis (assoc-ref inputs "libvorbis")))
7887 `("LD_LIBRARY_PATH" ":" prefix
7888 (,(string-append curl "/lib:" vorbis "/lib"))))
7889 (wrap-program bin-sdl
7890 `("LD_LIBRARY_PATH" ":" prefix
7891 (,(string-append curl "/lib:" vorbis "/lib"))))
7892 (wrap-program bin-glx
7893 `("LD_LIBRARY_PATH" ":" prefix
7894 (,(string-append curl "/lib:" vorbis "/lib"))))
7895 (wrap-program bin-dedicated
7896 `("LD_LIBRARY_PATH" ":" prefix
7897 (,(string-append curl "/lib:" vorbis "/lib"))))
7900 `(("xonotic-data" ,xonotic-data)
7901 ("alsa-lib" ,alsa-lib)
7903 ("libjpeg" ,libjpeg-turbo)
7904 ("libmodplug" ,libmodplug)
7905 ("libvorbis" ,libvorbis)
7908 ("libxxf86dga" ,libxxf86dga)
7909 ("libxxf86vm" ,libxxf86vm)
7911 ("libxext" ,libxext)
7913 ("libxdmcp" ,libxdmcp)
7916 ("freetype" ,freetype)
7919 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7922 ("autoconf" ,autoconf)
7923 ("automake" ,automake)
7924 ("pkg-config" ,pkg-config)
7925 ("libtool" ,libtool)
7927 (home-page "https://xonotic.org")
7928 (synopsis "Fast-paced first-person shooter game")
7930 "Xonotic is a free, fast-paced first-person shooter.
7931 The project is geared towards providing addictive arena shooter
7932 gameplay which is all spawned and driven by the community itself.
7933 Xonotic is a direct successor of the Nexuiz project with years of
7934 development between them, and it aims to become the best possible
7935 open-source FPS of its kind.")
7936 (license (list license:gpl2+
7937 license:bsd-3 ; /source/d0_blind_id folder and others
7938 (license:x11-style "" "See file rcon.pl.")))))
7940 (define-public frotz
7946 (uri (list (string-append
7947 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7948 "frotz/frotz-" version ".tar.gz")
7950 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7951 "frotz/frotz-" version ".tar.gz")))
7954 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7955 (build-system gnu-build-system)
7957 `(#:tests? #f ; there are no tests
7959 (modify-phases %standard-phases
7961 (add-before 'build 'curses
7963 (substitute* "Makefile"
7964 (("lcurses") "lncurses"))
7967 (lambda* (#:key outputs #:allow-other-keys)
7968 (let* ((out (assoc-ref outputs "out"))
7969 (bin (string-append out "/bin"))
7970 (man (string-append out "/share/man/man6")))
7971 (install-file "frotz" bin)
7973 (install-file "doc/frotz.6" man)
7975 (inputs `(("libmodplug" ,libmodplug)
7976 ("libsamplerate" ,libsamplerate)
7977 ("libsndfile" ,libsndfile)
7978 ("libvorbis" ,libvorbis)
7979 ("ncurses" ,ncurses)))
7980 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7981 (description "Frotz is an interpreter for Infocom games and other Z-machine
7982 games in the text adventure/interactive fiction genre. This version of Frotz
7983 complies with standard 1.0 of Graham Nelson's specification. It plays all
7984 Z-code games V1-V8, including V6, with sound support through libao, and uses
7985 ncurses for text display.")
7986 (home-page "http://frotz.sourceforge.net")
7987 (license license:gpl2+)))
7989 (define-public frotz-dumb-terminal
7991 (name "frotz-dumb-terminal")
7995 (uri (list (string-append
7996 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7997 "frotz/frotz-" version ".tar.gz")
7999 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
8000 "frotz/frotz-" version ".tar.gz")))
8003 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
8004 (build-system gnu-build-system)
8006 `(#:tests? #f ; there are no tests
8008 (modify-phases %standard-phases
8012 (invoke "make" "dumb")))
8014 (lambda* (#:key outputs #:allow-other-keys)
8015 (let* ((out (assoc-ref outputs "out"))
8016 (bin (string-append out "/bin"))
8017 (man (string-append out "/share/man/man6")))
8018 (install-file "dfrotz" bin)
8020 (install-file "doc/dfrotz.6" man)
8022 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
8023 (description "Frotz is an interpreter for Infocom games and
8024 other Z-machine games in the text adventure/interactive fiction genre.
8025 dfrotz is the dumb interface version. You get no screen control; everything
8026 is just printed to the terminal line by line. The terminal handles all the
8027 scrolling. Maybe you'd like to experience what it's like to play Adventure on
8028 a teletype. A much cooler use for compiling Frotz with the dumb interface is
8029 that it can be wrapped in CGI scripting, PHP, and the like to allow people
8030 to play games on webpages. It can also be made into a chat bot.")
8031 (home-page "http://frotz.sourceforge.net")
8032 (license license:gpl2+)))
8034 (define-public frotz-sdl
8035 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
8042 (url "https://gitlab.com/DavidGriffith/frotz")
8046 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
8047 (file-name (git-file-name name version))))
8048 (build-system gnu-build-system)
8050 `(#:tests? #f ; there are no tests
8052 (modify-phases %standard-phases
8054 (add-before 'build 'patch-makefile
8056 (substitute* "Makefile"
8057 (("lcurses") "lncurses")
8058 (("^BUILD_DATE_TIME =.*$")
8059 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8063 (invoke "make" "sdl")))
8065 (lambda* (#:key outputs #:allow-other-keys)
8066 (let* ((out (assoc-ref outputs "out"))
8067 (bin (string-append out "/bin"))
8068 (man (string-append out "/share/man/man6")))
8069 (install-file "sfrotz" bin)
8071 (install-file "doc/sfrotz.6" man)
8074 `(("pkg-config" ,pkg-config)
8077 (inputs `(("sdl2" ,sdl2)
8078 ("sdl2-mixer" ,sdl2-mixer)
8079 ("libmodplug" ,libmodplug)
8080 ("libsamplerate" ,libsamplerate)
8081 ("libsndfile" ,libsndfile)
8082 ("libvorbis" ,libvorbis)
8083 ("ncurses" ,ncurses)
8084 ("freetype" ,freetype)
8085 ("libjpeg-turbo" ,libjpeg-turbo)))
8086 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8087 (description "Frotz is an interpreter for Infocom games and other Z-machine
8088 games in the text adventure/interactive fiction genre. This version of Frotz
8089 using SDL fully supports all these versions of the Z-Machine including the
8090 graphical version 6. Graphics and sound are created through the use of the SDL
8091 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8092 when packaged in Blorb container files or optionally from individual files.")
8093 (home-page "http://frotz.sourceforge.net")
8094 (license license:gpl2+))))
8096 (define-public frozen-bubble
8097 ;; Last official release is very outdated (2010). Use latest commit (2017).
8098 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8101 (name "frozen-bubble")
8102 (version (git-version "2.2.1" revision commit))
8107 (url "https://github.com/kthakore/frozen-bubble")
8109 (file-name (git-file-name name version))
8111 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8112 (build-system perl-build-system)
8115 (modify-phases %standard-phases
8116 ;; Build process needs to create files in the "server"
8118 (add-after 'unpack 'fix-permissions
8120 (for-each make-file-writable
8121 (find-files "server" "." #:directories? #t))))
8122 ;; By default, build stops at warnings.
8123 (add-after 'unpack 'prevent-build-error
8125 (substitute* "inc/My/Builder.pm"
8128 (add-after 'install 'install-desktop-file-and-icons
8129 (lambda* (#:key outputs #:allow-other-keys)
8130 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8131 (hicolor (string-append share "/icons/hicolor")))
8132 ;; Create desktop entry.
8133 (make-desktop-entry-file
8134 (string-append share "/applications/" ,name ".desktop")
8135 #:name "Frozen Bubble"
8136 #:comment "Frozen Bubble arcade game"
8139 #:categories '("Game" "ArcadeGame"))
8141 (with-directory-excursion "share/icons"
8144 (let* ((dim (string-append size "x" size))
8145 (dir (string-append hicolor "/" dim "/apps")))
8148 (string-append "frozen-bubble-icon-" dim ".png")
8149 (string-append dir "/frozen-bubble.png"))))
8150 '("16" "32" "48" "64"))))
8152 (add-after 'install 'wrap-perl-libs
8153 (lambda* (#:key outputs #:allow-other-keys)
8154 (let ((out (assoc-ref outputs "out"))
8155 (perl5lib (getenv "PERL5LIB")))
8156 (for-each (lambda (prog)
8157 (wrap-program (string-append out "/" prog)
8158 `("PERL5LIB" ":" prefix
8159 (,(string-append perl5lib ":" out
8160 "/lib/perl5/site_perl")))))
8161 (find-files "bin" ".")))
8164 `(("perl-alien-sdl" ,perl-alien-sdl)
8165 ("perl-capture-tiny" ,perl-capture-tiny)
8166 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8167 ("perl-module-build" ,perl-module-build)
8168 ("pkg-config" ,pkg-config)))
8171 ("perl-compress-bzip2" ,perl-compress-bzip2)
8172 ("perl-file-sharedir" ,perl-file-sharedir)
8173 ("perl-file-slurp" ,perl-file-slurp)
8174 ("perl-file-which" ,perl-file-which)
8175 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8176 ("perl-sdl" ,perl-sdl)
8177 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8178 (home-page "http://frozen-bubble.org/")
8179 (synopsis "Puzzle with bubbles")
8181 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8182 you attempt to shoot bubbles into groups of the same color to cause them to
8185 Players compete as penguins and must use the arrow keys to aim a colored
8186 bubble at groups of bubbles. The objective is to clear all the bubbles off
8187 the screen before a bubble passes below a line at the bottom.
8189 It features 100 single-player levels, a two-player mode, music and striking
8190 graphics. A level editor is also included to allow players to create and play
8192 (license license:gpl2))))
8194 (define-public libmanette
8200 (uri (string-append "mirror://gnome/sources/libmanette/"
8201 (version-major+minor version) "/"
8202 "libmanette-" version ".tar.xz"))
8205 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8206 (build-system meson-build-system)
8208 `(("glib" ,glib "bin") ; for glib-compile-resources
8209 ("gobject-introspection" ,gobject-introspection)
8210 ("pkg-config" ,pkg-config)
8213 `(("libevdev" ,libevdev)
8214 ("libgudev" ,libgudev)))
8215 (home-page "https://wiki.gnome.org/Apps/Games")
8216 (synopsis "Game controller library")
8217 (description "Libmanette is a small GObject library giving you simple
8218 access to game controllers. It supports the de-facto standard gamepads as
8219 defined by the W3C standard Gamepad specification or as implemented by the SDL
8221 (license license:lgpl2.1+)))
8223 (define-public quadrapassel
8225 (name "quadrapassel")
8229 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8230 (version-major+minor version) "/"
8231 "quadrapassel-" version ".tar.xz"))
8234 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8235 (build-system meson-build-system)
8239 (modify-phases %standard-phases
8240 (add-after 'unpack 'skip-gtk-update-icon-cache
8241 ;; Don't create 'icon-theme.cache'.
8243 (substitute* "build-aux/meson_post_install.py"
8244 (("gtk-update-icon-cache") (which "true")))
8247 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8248 ("gettext" ,gettext-minimal)
8249 ("glib" ,glib "bin") ;for glib-compile-resources
8250 ("itstool" ,itstool)
8251 ("libxml2" ,libxml2) ;for xmllint
8252 ("pkg-config" ,pkg-config)
8255 `(("clutter" ,clutter)
8256 ("clutter-gtk" ,clutter-gtk)
8259 ("libcanberra" ,libcanberra)
8260 ("libmanette" ,libmanette)
8261 ("librsvg" ,librsvg)))
8262 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8263 (synopsis "GNOME version of Tetris")
8264 (description "Quadrapassel comes from the classic falling-block game,
8265 Tetris. The goal of the game is to create complete horizontal lines of
8266 blocks, which will disappear. The blocks come in seven different shapes made
8267 from four blocks each: one straight, two L-shaped, one square, and two
8268 S-shaped. The blocks fall from the top center of the screen in a random
8269 order. You rotate the blocks and move them across the screen to drop them in
8270 complete lines. You score by dropping blocks fast and completing lines. As
8271 your score gets higher, you level up and the blocks fall faster.")
8272 (license license:gpl2+)))
8274 (define-public endless-sky
8276 (name "endless-sky")
8282 (url "https://github.com/endless-sky/endless-sky")
8283 (commit (string-append "v" version))))
8284 (file-name (git-file-name name version))
8286 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8287 (build-system scons-build-system)
8289 `(#:scons ,scons-python2
8290 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8291 #:tests? #f ; no tests
8293 (modify-phases %standard-phases
8294 (add-after 'unpack 'patch-resource-locations
8295 (lambda* (#:key outputs #:allow-other-keys)
8296 (substitute* "source/Files.cpp"
8298 (string-append (assoc-ref outputs "out") "/")))
8300 (add-after 'unpack 'patch-scons
8302 (substitute* "SConstruct"
8303 ;; Keep environmental variables
8304 (("Environment\\(\\)")
8305 "Environment(ENV = os.environ)")
8306 ;; Install into %out/bin
8307 (("games\"") "bin\""))
8311 ("libjpeg" ,libjpeg-turbo)
8316 (home-page "https://endless-sky.github.io/")
8317 (synopsis "2D space trading and combat game")
8318 (description "Endless Sky is a 2D space trading and combat game. Explore
8319 other star systems. Earn money by trading, carrying passengers, or completing
8320 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8321 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8322 leave human space behind and hope to find friendly aliens whose culture is more
8323 civilized than your own.")
8324 (license (list license:gpl3+
8327 license:public-domain))))
8329 (define-public stepmania
8332 (version "5.1.0-b2")
8337 (url "https://github.com/stepmania/stepmania")
8338 (commit (string-append "v" version))))
8339 (file-name (git-file-name name version))
8342 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8343 (modules '((guix build utils)))
8346 ;; Remove song files, which are licensed under a non-commercial
8347 ;; clause, and a course pointing to them.
8348 (for-each delete-file-recursively
8349 '("Songs/StepMania 5/Goin' Under"
8350 "Songs/StepMania 5/MechaTribe Assault"
8351 "Songs/StepMania 5/Springtime"))
8352 (for-each delete-file '("Courses/Default/Jupiter.crs"
8353 "Courses/Default/Jupiter.png"))
8355 (substitute* "extern/CMakeLists.txt"
8356 (("include\\(CMakeProject-png.cmake\\)") ""))
8357 (delete-file-recursively "extern/libpng")
8359 (build-system cmake-build-system)
8361 `(#:tests? #f ;FIXME: couldn't find how to run tests
8362 #:build-type "Release"
8363 #:out-of-source? #f ;for the 'install-desktop' phase
8365 (list "-DWITH_SYSTEM_FFMPEG=1"
8366 ;; SSE instructions are available on Intel systems only.
8367 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8371 '("-DWITH_SSE2=NO"))
8372 ;; Configuration cannot find GTK2 without the two following
8374 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8375 (assoc-ref %build-inputs "gtk+")
8376 "/lib/gtk-2.0/include")
8377 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8378 (assoc-ref %build-inputs "glib")
8379 "/lib/glib-2.0/include"))
8381 (modify-phases %standard-phases
8382 (add-after 'unpack 'ensure-application-files-can-be-found
8383 (lambda* (#:key outputs #:allow-other-keys)
8384 (let ((out (assoc-ref outputs "out")))
8385 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8386 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8387 (string-append "\"" out
8388 "/share/stepmania/GtkModule.so\"")))
8389 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8390 (("Root = sDirOfExecutable")
8391 (string-append "Root = \"" out "/share/stepmania/\""))
8392 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8393 (string-append "\"" out "/share/stepmania/" dir "\"")))
8394 (substitute* "src/RageFileManager.cpp"
8395 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8396 (string-append "\"" out "/share/stepmania/\""))))
8398 (add-after 'unpack 'fix-install-subdir
8399 ;; Installation would be done in "%out/stepmania-X.Y", but we
8400 ;; prefer the more common layout "%out/share/stepmania".
8402 (substitute* "src/CMakeLists.txt"
8403 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8405 (add-after 'unpack 'unbundle-libpng
8406 (lambda* (#:key inputs #:allow-other-keys)
8407 (substitute* "src/CMakeLists.txt"
8408 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8409 (string-append (assoc-ref inputs "libpng") "/include")))
8411 (add-after 'install 'install-executable
8412 (lambda* (#:key outputs #:allow-other-keys)
8413 (let* ((out (assoc-ref outputs "out"))
8414 (bin (string-append out "/bin"))
8415 (exe (string-append out "/share/stepmania/stepmania")))
8417 (symlink exe (string-append bin "/stepmania"))
8419 (add-after 'install-executable 'install-desktop
8420 (lambda* (#:key outputs #:allow-other-keys)
8421 (let* ((out (assoc-ref outputs "out"))
8422 (share (string-append out "/share"))
8423 (applications (string-append share "/applications"))
8424 (icons (string-append share "/icons")))
8425 (install-file "stepmania.desktop" applications)
8427 (copy-recursively "icons" icons)
8429 ;; Move documentation in a more usual place, i.e.,
8430 ;; "%out/share/doc/stepmania/".
8431 (add-after 'install-desktop 'install-doc
8432 (lambda* (#:key outputs #:allow-other-keys)
8433 (let* ((out (assoc-ref outputs "out"))
8434 (share (string-append out "/share")))
8435 (with-directory-excursion share
8437 (symlink "../stepmania/Docs" "doc/stepmania"))
8440 `(("pkg-config" ,pkg-config)
8443 `(("alsa-lib" ,alsa-lib)
8444 ;; Per upstream, StepMania is only guaranteed to work with a very
8445 ;; specific FFmpeg version, which is included in the repository as
8446 ;; a Git submodule. This particular version requirement usually
8447 ;; changes every few years.
8448 ("ffmpeg" ,ffmpeg-for-stepmania)
8452 ("jsoncpp" ,jsoncpp)
8454 ("libjpeg" ,libjpeg-turbo)
8458 ("libvorbis" ,libvorbis)
8459 ("libxinerama" ,libxinerama)
8460 ("libxrandr" ,libxrandr)
8463 ("pulseaudio" ,pulseaudio)
8467 (synopsis "Advanced rhythm game designed for both home and arcade use")
8468 (description "StepMania is a dance and rhythm game. It features 3D
8469 graphics, keyboard and dance pad support, and an editor for creating your own
8472 This package provides the core application, but no song is shipped. You need
8473 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8474 (home-page "https://www.stepmania.com")
8475 (license license:expat)))
8485 (url "https://github.com/fmang/oshu")
8487 (file-name (git-file-name name version))
8490 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8491 (build-system cmake-build-system)
8494 (modify-phases %standard-phases
8495 (add-before 'check 'pre-check
8496 ;; `make test' doesn't actually build the test executable
8497 (lambda _ (invoke "make" "zerotokei"))))))
8499 `(("pkg-config" ,pkg-config)))
8505 ("sdl2-image" ,sdl2-image)))
8506 (home-page "https://github.com/fmang/oshu/")
8507 (synopsis "Rhythm game in which you click on circles")
8508 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8509 which is played by pressing buttons and following along sliders as they appear
8510 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8512 This package provides the core application, but no beatmaps. You need to
8513 download and unpack them separately.")
8514 (license license:gpl3+)))
8516 (define-public btanks
8519 (version "0.9.8083")
8523 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8524 "btanks-" version ".tar.bz2"))
8527 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8528 (build-system scons-build-system)
8530 `(#:tests? #f ; there are none
8531 #:scons ,scons-python2
8532 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8534 (modify-phases %standard-phases
8535 (add-after 'unpack 'replace-removed-scons-syntax
8537 (substitute* "SConstruct"
8538 (("Options") "Variables")
8539 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8540 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8542 (add-after 'set-paths 'set-sdl-paths
8543 (lambda* (#:key inputs #:allow-other-keys)
8545 (string-append (assoc-ref inputs "sdl")
8547 (or (getenv "CPATH") "")))
8549 (add-after 'unpack 'fix-compilation-errors
8551 (substitute* "mrt/base_file.h"
8552 (("#include <string>" m)
8553 (string-append m "\n#include <sys/types.h>")))
8554 (substitute* '("engine/sl08/sl08.h"
8555 "engine/sl08/sl08.py")
8556 (("signal = NULL") "signal = 0")
8557 (("object\\(NULL\\)") "object(0)")
8558 (("func\\(NULL\\)") "func(0)")
8559 ((" connect\\(signal_ref\\)")
8560 " this->connect(signal_ref)"))
8561 (substitute* "math/range_list.h"
8562 ((" lower_bound\\(value\\)")
8563 " this->lower_bound(value)")
8566 (substitute* "clunk/source.cpp"
8567 (("using namespace clunk" m)
8568 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8570 (add-after 'unpack 'find-lua
8572 (substitute* "engine/SConscript"
8573 (("lua5.1") "lua-5.1")
8574 (("bt_libs.append\\(lua\\)")
8575 "bt_libs.append(\"lua\")"))
8580 ("libsmpeg" ,libsmpeg-with-sdl1)
8581 ("libvorbis" ,libvorbis)
8583 ("sdl" ,(sdl-union (list sdl
8589 `(("pkg-config" ,pkg-config)
8591 (home-page "http://btanks.sourceforge.net")
8592 (synopsis "Multiplayer tank battle game")
8593 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8594 game, where you can choose one of three vehicles and eliminate your enemy
8595 using the whole arsenal of weapons. It has original cartoon-like graphics and
8596 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8598 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8599 ;; released under GPLv2 or later. It comes with extra exceptions for the
8601 (license (list license:gpl2+ license:lgpl2.1+))))
8603 (define-public slimevolley
8605 (name "slimevolley")
8610 (uri (string-append "https://download.tuxfamily.org/slime/"
8611 "slimevolley_" version ".tar.gz"))
8613 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8614 (build-system cmake-build-system)
8616 `(#:tests? #f ;no test
8617 ;; Work around build failure: "error adding symbols: DSO
8618 ;; missing from command line".
8619 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8621 `(("gettext" ,gettext-minimal)))
8623 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8624 (home-page "https://slime.tuxfamily.org/")
8625 (synopsis "Unrealistic 2D volleyball simulation")
8627 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8628 the spirit of some Java games of the same name.
8630 Two teams, 1-3 players each, try to be the first to get 10 points.
8631 This happens when the one ball touches the floor on the other side of
8632 the net. There can be 1 to 8 balls in game. Once one ball touches
8633 the ground, the set ends and all balls are served again.")
8634 (license license:gpl3+)))
8636 (define-public slingshot
8644 (url "https://github.com/ryanakca/slingshot")
8646 (file-name (git-file-name name version))
8649 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8650 (build-system python-build-system)
8652 `(#:python ,python-2))
8654 `(("python-pygame" ,python2-pygame)))
8655 (home-page "https://github.com/ryanakca/slingshot")
8656 (synopsis "Simple 2D shooting strategy game set in space")
8657 (description "Slingshot is a two-dimensional strategy game where two
8658 players attempt to shoot one another through a section of space populated by
8659 planets. The main feature of the game is that the shots, once fired, are
8660 affected by the gravity of the planets.")
8661 (license license:gpl2+)))
8663 (define-public 4dtris
8670 (uri (string-append "https://launchpad.net/4dtris/"
8671 (version-major+minor version)
8672 "/" version "/+download/4dtris_"
8673 version ".orig.tar.gz"))
8676 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8677 (build-system gnu-build-system)
8680 (modify-phases %standard-phases
8681 (add-after 'unpack 'fix-install-directories
8682 (lambda* (#:key outputs #:allow-other-keys)
8683 (let ((out (assoc-ref outputs "out")))
8684 (substitute* "Makefile.in"
8685 (("bindir = /usr/games")
8686 (string-append "bindir = " out "/bin"))
8687 (("/usr/share/applications")
8688 (string-append out "/share/applications"))
8689 (("/usr/share/games/4dtris")
8690 (string-append out "/share/4dtris"))))
8692 (add-after 'set-paths 'set-sdl-paths
8693 (lambda* (#:key inputs #:allow-other-keys)
8695 (string-append (assoc-ref inputs "sdl")
8697 (or (getenv "CPATH") "")))
8700 `(("fontconfig" ,fontconfig)
8701 ("freeglut" ,freeglut)
8702 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8703 (home-page "https://launchpad.net/4dtris/")
8704 (synopsis "4D Tetris")
8705 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8706 game field is extended to 4D space, which has to filled up by the gamer with
8708 (license license:gpl3)))
8710 (define-public arx-libertatis
8712 (name "arx-libertatis")
8717 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8721 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8722 (build-system cmake-build-system)
8723 (outputs '("out" "installer"))
8725 '(#:tests? #f ; No tests.
8727 (modify-phases %standard-phases
8728 (add-after 'unpack 'fix-install-helper-paths
8729 (lambda* (#:key inputs #:allow-other-keys)
8730 (let ((p7zip (assoc-ref inputs "p7zip"))
8731 (innoextract (assoc-ref inputs "innoextract"))
8732 (wget (assoc-ref inputs "wget"))
8733 (zenity (assoc-ref inputs "zenity")))
8734 (substitute* "scripts/arx-install-data"
8735 (("have innoextract")
8736 (string-append "have " innoextract "/bin/innoextract"))
8737 (("then innoextract")
8738 (string-append "then " innoextract "/bin/innoextract"))
8739 (("else innoextract")
8740 (string-append "else " innoextract "/bin/innoextract"))
8741 (("for _extract_zip_sz in 7za 7z")
8742 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8743 (("else if have 7z")
8744 (string-append "else if have " p7zip "/bin/7za"))
8746 (string-append p7zip "/bin/7z x -tiso"))
8748 (string-append "if have " wget "/bin/wget"))
8750 (string-append wget "/bin/wget -O"))
8751 (("for backend in \\$preferred zenity")
8752 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8753 (("zenity +--title")
8754 (string-append zenity "/bin/zenity --title"))
8756 (string-append zenity "/bin/zenity)"))))
8758 (add-after 'install 'move-installer
8759 (lambda* (#:key outputs #:allow-other-keys)
8760 (let ((out (assoc-ref outputs "out"))
8761 (installer (assoc-ref outputs "installer")))
8762 (mkdir-p (string-append installer "/bin"))
8763 (rename-file (string-append out "/bin/arx-install-data")
8764 (string-append installer "/bin/arx-install-data"))))))))
8766 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8767 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8773 ("freetype" ,freetype)
8774 ;; The following are only needed by the arx-install-data script.
8775 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8776 ("zenity" ,zenity) ; GUI for install-helper.
8777 ("wget" ,wget) ; Used by the install-helper to download the patch.
8778 ;; The install-helper needs it to extract the patch.
8779 ("innoextract" ,innoextract)))
8780 (home-page "https://arx-libertatis.org/")
8781 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8782 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8783 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8784 This port however does not include the game data, so you need to obtain a copy
8785 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8786 features crafting, melee and ranged combat, as well as a unique casting system
8787 where the player draws runes in real time to effect the desired spell.")
8788 (license license:gpl3+)))
8790 (define-public edgar
8798 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8799 version "/edgar-" version "-1.tar.gz"))
8801 (base32 "1121rq5wk3g8rs413av84s2kcy6qj6maspgy2vsxs36c2jd3yygl"))))
8802 (build-system gnu-build-system)
8803 (arguments '(#:tests? #f ; there are no tests
8806 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8807 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8809 (modify-phases %standard-phases
8811 (add-before 'build 'fix-env
8812 (lambda* (#:key inputs #:allow-other-keys)
8814 (string-append (assoc-ref inputs "sdl2-union")
8816 (or (getenv "CPATH") "")))
8819 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8822 `(("pkg-config" ,pkg-config)
8823 ("autoconf" ,autoconf)
8824 ("automake" ,automake)
8825 ("gnu-gettext" ,gettext-minimal)
8826 ("libtool" ,libtool)
8828 (synopsis "2d action platformer game")
8829 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8830 When Edgar's father fails to return home after venturing out one dark and stormy night,
8831 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8832 a fortress beyond the forbidden swamp.")
8833 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8834 (license license:gpl2+)))
8836 (define-public openclonk
8843 "https://www.openclonk.org/builds/release/" version "/"
8844 "openclonk-" version "-src.tar.bz2"))
8847 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8848 (build-system cmake-build-system)
8850 `(#:configure-flags '("-DAudio_TK=OpenAL")
8851 #:test-target "tests"
8853 (modify-phases %standard-phases
8854 (add-after 'unpack 'prepare-gmock
8855 (lambda* (#:key inputs #:allow-other-keys)
8857 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8858 (substitute* "tests/CMakeLists.txt"
8860 (string-append (getcwd) "/gmock/googlemock"))
8862 (string-append (getcwd) "/gmock/googletest"))
8863 (("PATH_SUFFIXES \"src\" \"gtest\"")
8864 "PATH_SUFFIXES \"src\""))
8866 (add-after 'unpack 'adjust-backward-cpp-includes
8868 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8869 ;; that includes external libraries such as libdl from glibc.
8870 ;; By default, CMake interface includes are treated as "system
8871 ;; headers", and GCC behaves poorly when glibc is passed as a
8872 ;; system header (causing #include_next failures).
8874 ;; Here we prevent targets that consume the Backward::Backward
8875 ;; interface from treating it as "system includes".
8876 (substitute* "CMakeLists.txt"
8877 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8878 (string-append "set_property(TARGET " target " PROPERTY "
8879 "NO_SYSTEM_FROM_IMPORTED true)\n"
8882 (add-after 'unpack 'add-libiberty
8883 ;; Build fails upon linking executables without this.
8885 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8886 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8887 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8889 (add-after 'add-libiberty 'lax-freealut-requirement
8890 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8891 ;; it as 1.0.1. Force minimal version.
8893 (substitute* "cmake/FindAudio.cmake"
8894 (("freealut>=1.1.0") "freealut>=1.0.1"))
8896 (add-after 'lax-freealut-requirement 'fix-directories
8897 ;; Prefer "$out/share/openclonk" over
8898 ;; "$out/share/games/openclonk". Also install "openclonk"
8899 ;; binary in "bin/", not "games/".
8901 (substitute* "CMakeLists.txt"
8902 (("share/games/openclonk") "share/openclonk")
8903 (("TARGETS openclonk DESTINATION games")
8904 "TARGETS openclonk DESTINATION bin"))
8907 `(("googlemock" ,(package-source googletest))
8908 ("googletest" ,googletest)
8909 ("pkg-config" ,pkg-config)))
8911 `(("freealut" ,freealut)
8912 ("freetype" ,freetype)
8914 ("libiberty" ,libiberty)
8915 ("libjpeg" ,libjpeg-turbo)
8918 ("libvorbis" ,libvorbis)
8919 ("libxrandr" ,libxrandr)
8921 ("miniupnpc" ,miniupnpc)
8924 ("readline" ,readline)
8926 ("tinyxml" ,tinyxml)
8928 (home-page "https://www.openclonk.org/")
8930 "Multiplayer action game where you control small and nimble humanoids")
8931 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8932 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8933 antfarm-style landscape, the player controls a crew of Clonks, small but
8934 robust humanoid beings. The game encourages free play but the normal goal is
8935 to either exploit valuable resources from the earth by building a mine or
8936 fight each other on an arena-like map.")
8937 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8938 (license (list license:isc license:cc-by3.0))))
8940 (define-public flare-engine
8942 (name "flare-engine")
8947 (url "https://github.com/flareteam/flare-engine")
8948 (commit (string-append "v" version))))
8949 (file-name (git-file-name name version))
8952 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8953 (build-system cmake-build-system)
8955 `(#:tests? #f ;no test
8956 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8958 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8959 ("python" ,python-wrapper)
8960 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8961 (home-page "http://www.flarerpg.org/")
8962 (synopsis "Action Roleplaying Engine")
8963 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8964 game engine built to handle a very specific kind of game: single-player 2D
8966 (license license:gpl3+)))
8968 (define-public flare-game
8975 (url "https://github.com/flareteam/flare-game")
8976 (commit (string-append "v" version))))
8977 (file-name (git-file-name name version))
8980 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8981 (build-system cmake-build-system)
8983 `(#:tests? #f ;no test
8984 #:configure-flags '("-DDATADIR=share/flare")
8986 (modify-phases %standard-phases
8987 ;; Flare expects the mods to be located in the same folder.
8988 ;; Yet, "default" mod is in the engine, whereas the others
8989 ;; are in the current package. Merge everything here with
8991 (add-after 'install 'add-default-mod
8992 (lambda* (#:key inputs outputs #:allow-other-keys)
8993 (let* ((out (assoc-ref outputs "out"))
8994 (mods (string-append out "/share/flare/mods")))
8995 (with-directory-excursion mods
8996 (symlink (string-append (assoc-ref inputs "flare-engine")
8997 "/share/flare/mods/default")
9000 (add-after 'install 'install-executable
9001 ;; The package only provides assets for the game, the
9002 ;; executable coming from "flare-engine". Since more than
9003 ;; one game may use the engine, we create a new executable,
9004 ;; "flare-game", which launches the engine with appropriate
9006 (lambda* (#:key inputs outputs #:allow-other-keys)
9007 (let* ((out (assoc-ref outputs "out"))
9008 (bash (string-append (assoc-ref inputs "bash")
9010 (flare (string-append (assoc-ref inputs "flare-engine")
9012 (script (string-append out "/bin/flare-game")))
9013 (mkdir-p (dirname script))
9014 (call-with-output-file script
9018 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
9022 (chmod script #o755))
9025 `(("flare-engine" ,flare-engine)))
9026 (home-page "http://www.flarerpg.org/")
9027 (synopsis "Fantasy action RPG using the FLARE engine")
9028 (description "Flare is a single-player 2D action RPG with
9029 fast-paced action and a dark fantasy style.")
9030 (license license:cc-by-sa3.0)))
9032 (define-public meritous
9039 (url "https://gitlab.com/meritous/meritous.git")
9040 (commit (string-append "v" version))))
9041 (file-name (git-file-name name version))
9044 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
9045 (build-system gnu-build-system)
9047 `(#:tests? #f ;no test
9050 (string-append "prefix=" (assoc-ref %outputs "out")))
9052 (modify-phases %standard-phases
9054 (add-after 'unpack 'fix-sdl-path
9055 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
9056 ;; directory, not SDL-union provided as an input to the package.
9057 ;; We force the latter with "--prefix=" option.
9058 (lambda* (#:key inputs #:allow-other-keys)
9059 (substitute* "Makefile"
9060 (("sdl-config" command)
9061 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9063 (add-after 'unpack 'fix-crash
9064 ;; XXX: Songs are not present in the repository, due to licensing
9065 ;; issues. Yet, the game tries to load them, and, since it cannot
9066 ;; find them, crashes. Users cannot add them back, the store being
9067 ;; read-only, so we turn off background music altogether.
9069 (substitute* "src/audio.c"
9070 (("PlayBackgroundMusic\\(new_track\\);" all)
9071 (string-append "// " all)))
9074 `(("intltool" ,intltool)))
9076 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9078 (home-page "https://gitlab.com/meritous/meritous")
9079 (synopsis "Action-adventure dungeon crawl game")
9080 (description "Far below the surface of the planet is a place of limitless
9081 power. Those that seek to control such a utopia will soon bring an end to
9082 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9083 journeys into the hallowed Orcus Dome in search of answers.
9085 Meritous is a action-adventure game with simple controls but a challenge to
9086 find a balance of power versus recovery time during real-time battles. Set in
9087 a procedurally generated world, the player can explore thousands of rooms in
9088 search of powerful artifacts, tools to help them, and to eventually free the
9089 Orcus Dome from evil.")
9090 (license license:gpl3+)))
9092 (define-public marble-marcher
9093 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9096 (name "marble-marcher")
9097 (version (git-version "0" revision commit))
9101 (url "https://github.com/HackerPoet/MarbleMarcher")
9103 (file-name (git-file-name name version))
9106 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9107 (build-system cmake-build-system)
9109 `(#:tests? #f ; there are none
9111 (modify-phases %standard-phases
9112 (add-after 'unpack 'embed-asset-directory
9113 (lambda* (#:key outputs #:allow-other-keys)
9114 (let ((assets (string-append (assoc-ref outputs "out")
9115 "/share/marble-marcher/assets/")))
9116 ;; Some of the files we're patching are
9117 ;; ISO-8859-1-encoded, so choose it as the default
9118 ;; encoding so the byte encoding is preserved.
9119 (with-fluids ((%default-port-encoding #f))
9120 (substitute* "src/Resource.rc"
9121 (("../assets/icon.ico")
9122 (string-append assets "icon.ico")))
9123 (substitute* "src/Res.h"
9124 (("assets/") assets))))
9127 (lambda* (#:key outputs #:allow-other-keys)
9128 (let* ((out (assoc-ref outputs "out"))
9129 (assets (string-append out "/share/marble-marcher/assets"))
9130 (bin (string-append out "/bin/")))
9133 (copy-recursively "../source/assets" assets)
9134 (install-file "MarbleMarcher" bin))
9141 `(("pkg-config" ,pkg-config)))
9142 (home-page "https://codeparade.itch.io/marblemarcher")
9143 (synopsis "Guide a marble across fractal landscapes")
9144 (description "Marble Marcher is a video game that uses a fractal physics
9145 engine and fully procedural rendering to produce beautiful and unique
9146 gameplay. The game is played on the surface of evolving fractals. The goal
9147 of the game is to get your marble to the flag as quickly as possible. But be
9148 careful not to fall off the level or get crushed by the fractal! There are 24
9150 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9151 (license (list license:gpl2+
9153 license:cc-by-sa3.0)))))
9155 ;; This must be updated together with flightgear.
9159 (version "2018.3.5")
9163 (uri (string-append "mirror://sourceforge/flightgear/release-"
9164 (version-major+minor version) "/"
9165 "simgear-" version ".tar.bz2"))
9167 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9168 (build-system cmake-build-system)
9171 (modify-phases %standard-phases
9174 ;; Skip tests that require internet access.
9175 (invoke "ctest" "-E" "(http|dns)"))))))
9177 `(("boost" ,boost-for-mysql) ; fails with 1.69
9182 ("openscenegraph" ,openscenegraph-3.4)
9184 (home-page "https://home.flightgear.org/")
9185 (synopsis "Libraries for 3D simulations and games")
9186 (description "SimGear is a set of libraries designed to be used as
9187 building blocks for quickly assembling 3D simulations, games, and
9188 visualization applications. SimGear is developed by the FlightGear project
9189 and also provides the base for the FlightGear Flight Simulator.")
9190 (license license:lgpl2.0+)))
9192 (define-public flightgear
9195 (version (package-version simgear))
9199 (uri (string-append "mirror://sourceforge/flightgear/release-"
9200 (version-major+minor version) "/"
9201 "flightgear-" version ".tar.bz2"))
9203 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9204 (modules '((guix build utils)))
9207 ;; There are some bundled libraries.
9208 (for-each delete-file-recursively
9209 '("3rdparty/sqlite3/"))
9211 (build-system cmake-build-system)
9214 (list "-DSYSTEM_SQLITE=ON"
9215 (string-append "-DFG_DATA_DIR="
9216 (assoc-ref %outputs "out")
9217 "/share/flightgear"))
9218 ;; TODO: test cannot be run because the "run_test_suite" executable
9219 ;; does not seem to be built.
9222 (modify-phases %standard-phases
9223 (add-after 'install 'wrap-executable
9224 (lambda* (#:key inputs outputs #:allow-other-keys)
9225 (let ((out (assoc-ref outputs "out")))
9226 (wrap-program (string-append out "/bin/fgfs")
9227 `("QT_PLUGIN_PATH" ":" prefix
9228 ,(map (lambda (label)
9229 (string-append (assoc-ref inputs label)
9230 "/lib/qt5/plugins"))
9231 '("qtbase" "qtdeclarative" "qtsvg")))
9232 `("QML2_IMPORT_PATH" ":" prefix
9233 ,(map (lambda (label)
9234 (string-append (assoc-ref inputs label)
9236 '("qtdeclarative" "qtsvg"))))
9238 (add-after 'install 'install-data
9239 (lambda* (#:key inputs outputs #:allow-other-keys)
9240 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9242 (with-directory-excursion share
9243 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9244 "--strip-components=1")))
9247 `(("boost" ,boost-for-mysql) ; same as simgear
9250 ("freeglut" ,freeglut)
9251 ("freetype" ,freetype)
9255 ("openscenegraph" ,openscenegraph-3.4)
9258 ("qtdeclarative" ,qtdeclarative)
9260 ("simgear" ,simgear)
9261 ("speexdsp" ,speexdsp)
9265 `(("cppunit" ,cppunit)
9266 ("pkg-config" ,pkg-config)
9267 ("qttools" ,qttools)
9271 (uri (string-append "mirror://sourceforge/flightgear/release-"
9272 (version-major+minor version) "/"
9273 "FlightGear-" version "-data.tar.bz2"))
9276 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9277 (home-page "https://home.flightgear.org/")
9278 (synopsis "Flight simulator")
9279 (description "The goal of the FlightGear project is to create a
9280 sophisticated flight simulator framework for use in research or academic
9281 environments, pilot training, as an industry engineering tool, for DIY-ers to
9282 pursue their favorite interesting flight simulation idea, and last but
9283 certainly not least as a fun, realistic, and challenging desktop flight
9285 (license license:gpl2+)))
9287 (define-public jumpnbump
9294 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9296 (file-name (git-file-name name version))
9299 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9300 (build-system gnu-build-system)
9304 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9305 #:tests? #f ;no test
9307 (modify-phases %standard-phases
9308 (delete 'configure) ;no configure script
9309 (add-after 'unpack 'fix-sdl-path
9310 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9311 ;; directory, not SDL-union provided as an input to the package.
9312 ;; We force the latter with "--prefix=" option.
9313 (lambda* (#:key inputs #:allow-other-keys)
9314 (substitute* "Makefile"
9315 (("sdl2-config" command)
9316 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9320 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9323 `(("gettext" ,gettext-minimal))) ;for msgfmt
9324 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9325 (synopsis "Multiplayer platform game with bunnies")
9326 (description "You, as a bunny, have to jump on your opponents to make them
9327 explode. It is a true multiplayer game; you cannot play this alone. You can
9328 play with up to four players simultaneously. It has network support.")
9329 (license license:gpl2+)))
9331 (define-public hedgewars
9337 (uri (string-append "https://www.hedgewars.org/download/releases/"
9338 "hedgewars-src-" version ".tar.bz2"))
9341 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9342 (build-system cmake-build-system)
9344 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9345 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9346 ;; a Pascal to C translator and Clang instead.
9347 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9348 "-Dhaskell_flags=-dynamic;-fPIC")
9350 (modify-phases %standard-phases
9351 (add-before 'configure 'fix-sources
9353 ;; Fix a missing 'include'.
9354 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9355 (("#include <QSizePolicy>")
9356 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9358 (lambda _ (invoke "ctest")))
9359 (add-after 'install 'install-icon
9361 ;; Install icon for the desktop file.
9362 (let* ((out (assoc-ref %outputs "out"))
9363 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9364 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9365 (install-file "misc/hedgewars.png" icons)))
9368 `(("ffmpeg" ,ffmpeg)
9369 ("freeglut" ,freeglut)
9370 ("ghc-entropy" ,ghc-entropy)
9371 ("ghc-hslogger" ,ghc-hslogger)
9372 ("ghc-network" ,ghc-network)
9373 ("ghc-random" ,ghc-random)
9374 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9375 ("ghc-sandi" ,ghc-sandi)
9376 ("ghc-sha" ,ghc-sha)
9377 ("ghc-utf8-string" ,ghc-utf8-string)
9378 ("ghc-vector" ,ghc-vector)
9379 ("ghc-zlib" ,ghc-zlib)
9386 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9390 ("pkg-config" ,pkg-config)
9391 ("qttools" ,qttools)))
9392 (home-page "https://hedgewars.org/")
9393 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9395 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9396 featuring the antics of pink hedgehogs with attitude as they battle from the
9397 depths of hell to the depths of space.
9399 As commander, it's your job to assemble your crack team of hedgehog soldiers
9400 and bring the war to your enemy.")
9401 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9402 ;; scripts are distributed under various terms.
9403 (license (list license:gpl2
9404 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9405 license:expat license:fdl1.3+ license:public-domain
9408 (define-public harmonist
9415 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9416 (commit (string-append "v" version))))
9417 (file-name (git-file-name name version))
9420 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9421 (build-system go-build-system)
9423 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9425 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9426 (home-page "https://harmonist.tuxfamily.org/")
9427 (synopsis "Stealth coffee-break roguelike game")
9428 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9429 coffee-break roguelike game. The game has a heavy focus on tactical
9430 positioning, light and noise mechanisms, making use of various terrain types
9431 and cones of view for monsters. Aiming for a replayable streamlined experience,
9432 the game avoids complex inventory management and character building, relying
9433 on items and player adaptability for character progression.")
9434 (license license:isc)))
9436 (define-public harmonist-tk
9439 (name "harmonist-tk")
9442 (package-arguments harmonist)
9444 (modify-phases %standard-phases
9447 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9448 "git.tuxfamily.org/harmonist/harmonist")))
9451 (invoke "go" "test" "--tags" "tk"
9452 "git.tuxfamily.org/harmonist/harmonist")))))))
9454 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9456 (define-public drascula
9462 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9463 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9464 "drascula-" version ".zip"))
9467 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9468 (build-system trivial-build-system)
9470 `(#:modules ((guix build utils))
9473 (use-modules (guix build utils)
9475 (let* ((out (assoc-ref %outputs "out"))
9476 (share (string-append out "/share/drascula"))
9477 (scummvm (assoc-ref %build-inputs "scummvm")))
9479 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9481 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9486 (assoc-ref %build-inputs input)
9488 ;; Every input provides "readme.txt", and we want to
9489 ;; preserve them all. Therefore we rename them first.
9492 (rename-file "readme.txt" "readme-international.txt"))
9494 (rename-file "readme.txt" "readme-audio.txt"))
9496 ;; Install documentation.
9497 (for-each (lambda (f) (install-file f doc))
9498 (find-files "." "\\.(txt|doc)$"))
9500 (for-each (lambda (f) (install-file f share))
9501 (find-files "." "\\.(ogg|00[0-9])$")))
9502 '("drascula-audio" "drascula-int" "source")))
9503 ;; Create standalone executable.
9504 (let* ((bin (string-append out "/bin"))
9505 (executable (string-append bin "/drascula"))
9506 (bash (string-append (assoc-ref %build-inputs "bash")
9509 (with-output-to-file executable
9511 (format #t "#!~a~%" bash)
9513 "exec ~a/bin/scummvm --path=~a drascula~%"
9515 (chmod executable #o755))
9516 ;; Create desktop file. There is no dedicated icon for the
9517 ;; game, so we borrow SCUMMVM's.
9518 (let ((apps (string-append out "/share/applications")))
9520 (make-desktop-entry-file
9521 (string-append apps "/drascula.desktop")
9522 #:name "Drascula: The Vampire Strikes Back"
9523 #:generic-name "Drascula"
9524 #:exec (string-append out "/bin/drascula")
9525 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9526 #:categories '("AdventureGame" "Game" "RolePlaying")
9527 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9528 #:comment '((#f "Classic 2D point and click adventure game")
9529 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9530 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9531 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9537 `(("scummvm" ,scummvm)
9539 ,(let ((version "1.1"))
9542 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9543 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9544 "drascula-int-" version ".zip"))
9547 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9549 ,(let ((version "2.0"))
9552 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9553 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9554 "drascula-audio-" version ".zip"))
9557 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9558 (home-page "https://www.scummvm.org")
9559 (synopsis "Classic 2D point and click adventure game")
9560 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9561 point and click adventure game.
9563 In Drascula you play the role of John Hacker, a British estate agent, that
9564 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9565 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9566 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9567 the World and demonstrating that he is even more evil than his brother Vlad.")
9568 ;; Drascula uses a BSD-like license.
9569 (license (license:non-copyleft "file:///readme.txt"))))
9571 (define (make-lure-package name language hash)
9579 "mirror://sourceforge/scummvm/extras/"
9580 "Lure%20of%20the%20Temptress/"
9581 name "-" version ".zip"))
9584 (build-system trivial-build-system)
9586 `(#:modules ((guix build utils))
9589 (use-modules (guix build utils))
9590 (let* ((out (assoc-ref %outputs "out"))
9591 (share (string-append out "/share"))
9592 (data (string-append share "/" ,name "/" ,language))
9593 (apps (string-append share "/applications"))
9594 (bin (string-append out "/bin"))
9595 (executable (string-append bin "/" ,name))
9596 (scummvm (assoc-ref %build-inputs "scummvm")))
9597 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9599 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9600 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9601 (for-each (lambda (f) (install-file f doc))
9602 (find-files "." "\\.(txt|PDF|pdf)$")))
9603 (for-each (lambda (f) (install-file f data))
9604 (find-files "." "\\.(vga|VGA)$"))
9605 ;; Build the executable.
9607 (let ((bash (assoc-ref %build-inputs "bash")))
9608 (with-output-to-file executable
9610 (format #t "#!~a/bin/bash~%" bash)
9611 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9612 scummvm ,language data))))
9613 (chmod executable #o755)
9614 ;; Create desktop file. There is no dedicated
9615 ;; icon for the game, so we borrow SCUMMVM's.
9617 (with-output-to-file (string-append apps "/" ,name ".desktop")
9621 Name=Lure of the Temptress~@
9624 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9625 Categories=AdventureGame;Game;RolePlaying;~@
9626 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9627 Comment=Classic 2D point and click adventure game~@
9628 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9629 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9630 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9632 executable scummvm)))
9635 `(("unzip" ,unzip)))
9638 ("scummvm" ,scummvm)))
9639 (home-page "https://www.scummvm.org")
9640 (synopsis "2D point and click fantasy adventure game")
9642 "Lure of the Temptress is a classic 2D point and click adventure game.
9644 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9645 intents and purposes, a good man. After decades of unrest the King has united
9646 the warring factions in his kingdom and all his lands are at peace, except
9647 a remote region around a town called Turnvale. A revolt has recently taken
9648 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9649 Selena, the titular temptress. The king calls together his finest horsemen
9650 and heads off (with you in tow) to Turnvale just to witness how hellish
9651 mercenary monsters called Skorl are invading the town.
9653 The king's men are defeated, the king is killed and you fall of your horse and
9654 bang your head heavily on the ground. You have been *unconscious for a while
9655 when you realize that you are in a dingy cell guarded by a not so friendly
9656 Skorl. Maybe it would be an idea to try and escape...")
9657 (license (license:non-copyleft "file:///README"))))
9661 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9663 (define-public lure-de
9665 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9667 (define-public lure-es
9669 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9671 (define-public lure-fr
9673 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9675 (define-public lure-it
9677 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9679 (define (make-queen-package name file-prefix release language hash)
9686 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9687 "Flight%20of%20the%20Amazon%20Queen/"
9688 file-prefix release ".zip"))
9691 (build-system trivial-build-system)
9693 `(#:modules ((guix build utils))
9696 (use-modules (guix build utils))
9697 (let* ((out (assoc-ref %outputs "out"))
9698 (share (string-append out "/share"))
9699 (data (string-append share "/" ,name))
9700 (apps (string-append share "/applications"))
9701 (bin (string-append out "/bin"))
9702 (executable (string-append bin "/" ,name))
9703 (scummvm (assoc-ref %build-inputs "scummvm")))
9704 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9706 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9707 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9708 (install-file "readme.txt" doc))
9709 (install-file "queen.1c" data)
9711 (let ((bash (assoc-ref %build-inputs "bash")))
9712 (with-output-to-file executable
9714 (format #t "#!~a/bin/bash~%" bash)
9715 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9717 (chmod executable #o755)
9718 ;; Create desktop file. There is no dedicated
9719 ;; icon for the game, so we borrow SCUMMVM's.
9721 (with-output-to-file (string-append apps "/" ,name ".desktop")
9725 Name=Flight of the Amazon Queen~@
9727 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~@
9728 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~@
9731 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9732 Categories=AdventureGame;Game;RolePlaying;~@
9733 Keywords=adventure;game;roleplaying;fantasy;~%"
9734 executable scummvm))))
9737 `(("unzip" ,unzip)))
9740 ("scummvm" ,scummvm)))
9741 (home-page "https://www.scummvm.org/")
9742 (synopsis "Classic 2D point and click adventure game")
9743 (description "Flight of the Amazon Queen is a 2D point-and-click
9744 adventure game set in the 1940s.
9746 You assume the role of Joe King, a pilot for hire who is given the job
9747 of flying Faye Russell (a famous movie star) into the Amazon jungle
9748 for a photo shoot. Of course, things never go according to plans.
9749 After an unfortunate turn of events they find themselves stranded in
9750 the heart of the Amazon jungle, where Joe will embark on a quest to
9751 rescue a kidnapped princess and in the process, discover the true
9752 sinister intentions of a suspiciously located Lederhosen company. In
9753 a rich 2D environment, Joe will cross paths with a variety of unlikely
9754 jungle inhabitants including, but not limited to, a tribe of Amazon
9755 women and 6-foot-tall pygmies.")
9756 (license (license:non-copyleft "file:///readme.txt"))))
9758 (define-public queen
9760 "queen" "FOTAQ_Talkie-" "1.1" "en"
9761 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9763 (define-public queen-de
9765 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9766 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9768 (define-public queen-fr
9770 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9771 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9773 (define-public queen-it
9775 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9776 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9781 (version "1.2") ;1.3 is floppy version
9785 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9786 "Beneath%20a%20Steel%20Sky/"
9787 "bass-cd-" version ".zip"))
9789 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9790 (build-system trivial-build-system)
9792 `(#:modules ((guix build utils))
9795 (use-modules (guix build utils))
9796 (let* ((out (assoc-ref %outputs "out"))
9797 (share (string-append out "/share"))
9798 (data (string-append share "/" ,name))
9799 (apps (string-append share "/applications"))
9800 (bin (string-append out "/bin"))
9801 (executable (string-append bin "/" ,name))
9802 (scummvm (assoc-ref %build-inputs "scummvm")))
9803 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9805 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9806 (let ((doc (string-append share "/doc/bass-" ,version)))
9807 (install-file "readme.txt" doc))
9808 (for-each (lambda (f) (install-file f data))
9809 (find-files "." "^sky\\."))
9810 ;; Build the executable.
9812 (let ((bash (assoc-ref %build-inputs "bash")))
9813 (with-output-to-file executable
9815 (format #t "#!~a/bin/bash~%" bash)
9816 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9817 (chmod executable #o755)
9818 ;; Create desktop file. There is no dedicated
9819 ;; icon for the game, so we borrow SCUMMVM's.
9821 (with-output-to-file (string-append apps "/" ,name ".desktop")
9825 Name=Beneath a Steel Sky~@
9828 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9829 Categories=AdventureGame;Game;RolePlaying;~@
9830 Keywords=adventure;game;roleplaying;cyberpunk;~@
9831 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9832 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9833 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9835 executable scummvm)))
9838 `(("unzip" ,unzip)))
9841 ("scummvm" ,scummvm)))
9842 (home-page "https://www.scummvm.org/")
9843 (synopsis "Classic 2D point and click science-fiction adventure game")
9845 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9846 post-apocalyptic vision of the future. It revolves around Union City,
9847 where selfishness, rivalry, and corruption by its citizens seems to be
9848 all too common, those who can afford it live underground, away from
9849 the pollution and social problems which are plaguing the city.
9851 You take on the role of Robert Foster, an outcast of sorts from the
9852 city since a boy who was raised in a remote environment outside of
9853 Union City simply termed ``the gap''. Robert's mother took him away
9854 from Union City as a child on their way to ``Hobart'' but the
9855 helicopter crashed on its way. Unfortunately, Robert's mother died,
9856 but he survived and was left to be raised by a local tribe from the
9859 Years later, Union City security drops by and abducts Robert, killing
9860 his tribe in the process; upon reaching the city the helicopter taking
9861 him there crashes with him escaping, high upon a tower block in the
9862 middle of the city. He sets out to discover the truth about his past,
9863 and to seek vengeance for the killing of his tribe.")
9864 (license (license:non-copyleft "file:///readme.txt"))))
9866 (define-public gnurobots
9873 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9877 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9878 (build-system gnu-build-system)
9883 ("readline" ,readline)
9884 ("guile" ,guile-1.8)))
9886 `(("pkg-config" ,pkg-config)))
9890 ;; Do not abort build on "deprecated-declarations" warnings.
9891 "CFLAGS=-Wno-error=deprecated-declarations"
9892 ;; Find readline headers in sub-directory.
9893 (string-append "READLINE_CFLAGS=-I"
9894 (assoc-ref %build-inputs "readline")
9895 "/include/readline/"))
9897 (modify-phases %standard-phases
9898 (add-after 'install 'install-doc
9899 (lambda* (#:key outputs #:allow-other-keys)
9900 (install-file "doc/Robots-HOWTO"
9901 (string-append (assoc-ref outputs "out")
9902 "/share/doc/gnurobots-"
9905 (home-page "https://www.gnu.org/software/gnurobots/")
9906 (synopsis "Program a little robot and watch it explore a world")
9908 "GNU Robots is a game in which you program a robot to explore a world
9909 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9910 the game is to stay alive and collect prizes. The robot program conveniently
9911 may be written in a plain text file in the Scheme programming language.")
9912 (license license:gpl3+)))
9914 (define-public ri-li
9920 (uri (string-append "mirror://sourceforge/ri-li/"
9921 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9922 "Ri-li-" version ".tar.bz2"))
9925 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9927 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9928 ;; It doesn't build otherwise.
9929 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9930 (build-system gnu-build-system)
9933 (modify-phases %standard-phases
9934 ;; Remove "gentoo" subdirectory from Makefile, as it is
9935 ;; missing a make file and generates a build failure.
9936 (add-after 'configure 'fix-build
9938 (substitute* "Makefile"
9941 (add-after 'install 'install-desktop-file
9942 (lambda* (#:key outputs #:allow-other-keys)
9943 (let* ((out (assoc-ref outputs "out"))
9944 (apps (string-append out "/share/applications"))
9945 (pixmaps (string-append out "/share/pixmaps")))
9946 (for-each (lambda (f) (install-file f pixmaps))
9947 (find-files "data" "\\.(png|ico)$"))
9949 (with-output-to-file (string-append apps "/ri-li.desktop")
9955 Icon=~a/Ri-li-icon-32x32.png~@
9956 Categories=Game;ArcadeGame;~@
9957 Keywords=toy;train;wooden;snake-like;engine;~@
9958 Comment=a toy simulator game~@
9959 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9960 Comment[fr]=un jeu de petit train~@
9961 Comment[ro_RO]=un joc cu un tren de jucărie~@
9966 (add-after 'install-desktop-file 'remove-spurious-files
9967 ;; Delete redundant files already installed somewhere else.
9968 (lambda* (#:key outputs #:allow-other-keys)
9969 (let ((out (assoc-ref outputs "out")))
9970 (for-each delete-file
9971 (find-files (string-append out "/share/Ri-li")
9972 "\\.(png|ico)|COPYING"))
9975 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9976 (home-page "http://www.ri-li.org")
9977 (synopsis "Toy train simulation game")
9978 (description "Ri-li is a game in which you drive a wooden toy
9979 steam locomotive across many levels and collect all the coaches to
9981 ;; The project is dual-licensed GPL2+ and GPL3+.
9982 (license (list license:gpl2+ license:gpl3+))))
9984 (define-public freeorion
9991 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9992 "download/v" version "/FreeOrion_v" version
9993 "_2020-07-10.f3d403e_Source.tar.gz"))
9995 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9996 (modules '((guix build utils)))
9999 ;; There are some bundled fonts.
10000 (for-each delete-file-recursively '("default/data/fonts"))
10002 (build-system cmake-build-system)
10004 '(#:tests? #f ;no test
10006 (modify-phases %standard-phases
10007 (add-after 'unpack 'unbundle-fonts
10008 (lambda* (#:key inputs #:allow-other-keys)
10009 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
10010 "/share/fonts/truetype/")))
10011 (substitute* "UI/ClientUI.cpp"
10012 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
10014 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
10018 ("boost_signals" ,boost-signals2)
10019 ("font-dejavu" ,font-dejavu)
10020 ("font-roboto" ,font-google-roboto)
10021 ("freetype2" ,freetype)
10026 ("libvorbis" ,libvorbis)
10031 (home-page "https://www.freeorion.org/index.php/Main_Page")
10032 (synopsis "Turn-based space empire and galactic conquest computer game")
10034 "FreeOrion is a turn-based space empire and galactic conquest (4X)
10035 computer game being designed and built by the FreeOrion project. Control an
10036 empire with the goal of exploring the galaxy, expanding your territory,
10037 exploiting the resources, and exterminating rival alien empires. FreeOrion is
10038 inspired by the tradition of the Master of Orion games, but is not a clone or
10039 remake of that series or any other game.")
10040 ;; Source code is released under gpl2. Artwork, music and sounds, and
10041 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
10042 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
10043 ;; released under lgpl2.1+.
10044 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
10046 (define-public leela-zero
10048 (name "leela-zero")
10053 (uri (git-reference
10054 (url "https://github.com/leela-zero/leela-zero")
10055 (commit (string-append "v" version))))
10056 (file-name (git-file-name name version))
10059 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10060 (patches (search-patches "leela-zero-gtest.patch"))))
10061 (build-system cmake-build-system)
10063 `(("googletest" ,googletest)))
10066 ("ocl-icd" ,ocl-icd)
10067 ("openblas" ,openblas)
10068 ("opencl-headers" ,opencl-headers)
10072 '(#:configure-flags '("-DUSE_BLAS=YES")
10073 #:phases (modify-phases %standard-phases
10074 (add-before 'configure 'fix-tests
10075 (lambda* (#:key outputs #:allow-other-keys)
10076 (let ((home (getcwd)))
10077 (setenv "HOME" home)
10078 (substitute* "src/tests/gtests.cpp"
10079 (("\\.\\./src/tests/0k\\.txt")
10080 (string-append home "/src/tests/0k.txt"))
10081 (("cfg_gtp_mode = true;")
10082 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10086 (invoke "./tests"))))))
10087 (home-page "https://github.com/leela-zero/leela-zero")
10088 (synopsis "Program playing the game of Go")
10090 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10091 the AlphaGo Zero paper. The current best network weights file for the engine
10092 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10093 (license license:gpl3+)))
10095 (define-public q5go
10101 (uri (git-reference
10102 (url "https://github.com/bernds/q5Go")
10103 (commit (string-append "q5go-" version))))
10104 (file-name (git-file-name name version))
10107 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10108 (build-system gnu-build-system)
10110 `(("pkg-config" ,pkg-config)))
10112 `(("qtbase" ,qtbase)
10113 ("qtmultimedia" ,qtmultimedia)
10117 (modify-phases %standard-phases
10118 (add-after 'unpack 'fix-configure-script
10120 ;; Bypass the unavailable qtchooser program.
10121 (substitute* "configure"
10122 (("test -z \"QTCHOOSER\"")
10124 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10127 (add-after 'unpack 'fix-paths
10129 (substitute* '("src/pics/Makefile.in"
10130 "src/translations/Makefile.in")
10131 (("\\$\\(datadir\\)/qGo/")
10132 "$(datadir)/q5go/"))
10134 (add-after 'install 'install-desktop-file
10135 (lambda* (#:key outputs #:allow-other-keys)
10136 (let* ((out (assoc-ref outputs "out"))
10137 (apps (string-append out "/share/applications"))
10138 (pics (string-append out "/share/q5go/pics")))
10139 (delete-file-recursively (string-append out "/share/applnk"))
10140 (delete-file-recursively (string-append out "/share/mimelnk"))
10141 (install-file "../source/src/pics/Bowl.ico" pics)
10143 (with-output-to-file (string-append apps "/q5go.desktop")
10151 Comment=Game of Go~@
10152 Comment[de]=Spiel des Go~@
10154 Comment[es]=Juego de Go~@
10155 Comment[fr]=Jeu de Go~@
10160 Type=Application~%"
10163 (synopsis "Qt GUI to play the game of Go")
10165 "This a tool for Go players which performs the following functions:
10168 @item Analysis frontend for Leela Zero (or compatible engines),
10169 @item GTP interface (to play against an engine),
10170 @item IGS client (to play on the internet),
10171 @item Export games to a variety of formats.
10173 (home-page "https://github.com/bernds/q5Go")
10174 (license license:gpl2+)))
10176 (define-public ktuberling
10178 (name "ktuberling")
10179 (version "20.12.0")
10183 (uri (string-append "mirror://kde/stable/release-service/" version
10184 "/src/ktuberling-" version ".tar.xz"))
10186 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10187 (build-system qt-build-system)
10189 `(("extra-cmake-modules" ,extra-cmake-modules)
10190 ("kdoctools" ,kdoctools)
10193 `(("kcompletion" ,kcompletion)
10194 ("kconfigwidgets" ,kconfigwidgets)
10195 ("kcoreaddons" ,kcoreaddons)
10197 ("kdbusaddons" ,kdbusaddons)
10200 ("kwidgetsaddons" ,kwidgetsaddons)
10201 ("kxmlgui" ,kxmlgui)
10202 ("libkdegames" ,libkdegames)
10203 ("python" ,python-wrapper)
10205 ("qtmultimedia" ,qtmultimedia)
10206 ("qtdeclarative" ,qtdeclarative)
10208 (home-page "https://games.kde.org/")
10209 (synopsis "Stamp drawing toy")
10210 (description "KTuberling is a drawing toy intended for small children and
10211 adults who remain young at heart. The game has no winner; the only purpose is
10212 to make the funniest faces you can. Several activities are possible, e.g.:
10215 @item Give the potato a funny face, clothes, and other goodies
10216 @item Build a small town, complete with school, zoo, and fire department
10217 @item Create a fantastic moonscape with spaceships and aliens
10221 KTuberling can speak the name of each the object in several languages,
10222 to assist in learning basic vocabulary.
10224 This package is part of the KDE games module.")
10225 (license (list license:gpl2+ license:fdl1.2+))))
10227 (define-public picmi
10230 (version "20.12.0")
10234 (uri (string-append "mirror://kde/stable/release-service/" version
10235 "/src/picmi-" version ".tar.xz"))
10237 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10238 (build-system qt-build-system)
10240 `(("extra-cmake-modules" ,extra-cmake-modules)
10241 ("kdoctools" ,kdoctools)))
10243 `(("kcoreaddons" ,kcoreaddons)
10245 ("kdbusaddons" ,kdbusaddons)
10246 ("kdeclarative" ,kdeclarative)
10249 ("knewstuff" ,knewstuff)
10250 ("kxmlgui" ,kxmlgui)
10251 ("libkdegames" ,libkdegames)
10253 ("qtdeclarative" ,qtdeclarative)
10255 (home-page "https://games.kde.org/")
10256 (synopsis "Number logic game")
10257 (description "Picmi is a number logic game in which cells in a grid have
10258 to be colored or left blank according to numbers given at the side of the
10259 grid. The aim is to reveal a hidden picture.
10261 This package is part of the KDE games module.")
10262 (license (list license:gpl2+ license:fdl1.2+))))
10264 (define-public kolf
10267 (version "20.12.0")
10271 (uri (string-append "mirror://kde/stable/release-service/" version
10272 "/src/kolf-" version ".tar.xz"))
10274 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10275 (build-system qt-build-system)
10277 `(("extra-cmake-modules" ,extra-cmake-modules)
10278 ("kdoctools" ,kdoctools)))
10280 `(("kcompletion" ,kcompletion)
10281 ("kconfigwidgets" ,kconfigwidgets)
10282 ("kcoreaddons" ,kcoreaddons)
10284 ("kdbusaddons" ,kdbusaddons)
10287 ("kwidgetsaddons" ,kwidgetsaddons)
10288 ("kxmlgui" ,kxmlgui)
10289 ("ktextwidgets" ,ktextwidgets)
10290 ("libkdegames" ,libkdegames)
10292 ("qtdeclarative" ,qtdeclarative)))
10293 (home-page "https://games.kde.org/")
10294 (synopsis "Miniature golf game")
10295 (description "Kolf is a miniature golf game for one to ten players. The
10296 game is played from an overhead view, with a short bar representing the golf
10297 club. Kolf features many different types of objects, such as water hazards,
10298 slopes, sand traps, and black holes (warps), among others.
10302 @item Single and Multi-player (up to ten players) modes
10303 @item High scores table
10304 @item Dynamic courses
10305 @item Third-party courses
10306 @item Course editor
10309 This package is part of the KDE games module.")
10310 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10312 (define-public libkmahjongg
10314 (name "libkmahjongg")
10315 (version "20.12.0")
10319 (uri (string-append "mirror://kde/stable/release-service/"
10320 version "/src/libkmahjongg-" version ".tar.xz"))
10322 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10323 (build-system qt-build-system)
10325 `(("extra-cmake-modules" ,extra-cmake-modules)))
10328 ("kcompletion" ,kcompletion)
10329 ;("kconfig" ,kconfig)
10330 ("kcodecs" ,kcodecs)
10331 ("kconfigwidgets" ,kconfigwidgets)
10332 ("kcoreaddons" ,kcoreaddons)
10334 ("kwidgetsaddons" ,kwidgetsaddons)
10337 (home-page "https://games.kde.org/")
10338 (synopsis "Shared library for kmahjongg and kshisen")
10339 (description "Shared library and common files for kmahjongg, kshisen and
10340 other Mah Jongg like games.")
10341 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10343 (define-public kmahjongg
10346 (version "20.12.0")
10350 (uri (string-append "mirror://kde/stable/release-service/"
10351 version "/src/kmahjongg-" version ".tar.xz"))
10353 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10354 (build-system qt-build-system)
10356 `(("extra-cmake-modules" ,extra-cmake-modules)
10357 ("kdoctools" ,kdoctools)))
10359 `(("kcompletion" ,kcompletion)
10361 ("kdbusaddons" ,kdbusaddons)
10362 ("kdeclarative" ,kdeclarative)
10364 ("knewstuff" ,knewstuff)
10365 ("kxmlgui" ,kxmlgui)
10366 ("libkdegames" ,libkdegames)
10367 ("libkmahjongg" ,libkmahjongg)
10369 ("qtdeclarative" ,qtdeclarative)
10371 (home-page "https://games.kde.org/")
10372 (synopsis "Tile laying patience")
10373 (description "In KMahjongg the tiles are scrambled and staked on top of
10374 each other to resemble a certain shape. The player is then expected to remove
10375 all the tiles off the game board by locating each tile's matching pair.
10377 A variety of tile layouts are included, as well as an editor to create new
10380 This package is part of the KDE games module.")
10381 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10383 (define-public kshisen
10386 (version "20.12.0")
10390 (uri (string-append "mirror://kde/stable/release-service/"
10391 version "/src/kshisen-" version ".tar.xz"))
10393 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10394 (build-system qt-build-system)
10396 `(("extra-cmake-modules" ,extra-cmake-modules)
10398 ;("pkg-config" ,pkg-config)
10399 ("kdoctools" ,kdoctools)))
10402 ("kcompletion" ,kcompletion)
10403 ("kconfigwidgets" ,kconfigwidgets)
10404 ("kcoreaddons" ,kcoreaddons)
10406 ("kdbusaddons" ,kdbusaddons)
10408 ("kxmlgui" ,kxmlgui)
10409 ("libkdegames" ,libkdegames)
10410 ("libkmahjongg" ,libkmahjongg)
10412 ("qtdeclarative" ,qtdeclarative)))
10413 (home-page "https://games.kde.org/")
10414 (synopsis "Shisen-Sho solitaire game")
10415 (description "KShisen is a solitaire-like game played using the standard
10416 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10419 This package is part of the KDE games module.")
10420 (license license:gpl2+)))
10422 (define-public kajongg
10425 (version "20.12.0")
10429 (uri (string-append "mirror://kde/stable/release-service/"
10430 version "/src/kajongg-" version ".tar.xz"))
10432 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10433 (build-system qt-build-system)
10436 (modify-phases %standard-phases
10437 (add-after 'install 'wrap
10438 (lambda* (#:key outputs #:allow-other-keys)
10439 (let ((out (assoc-ref outputs "out")))
10440 (wrap-program (string-append out "/bin/kajongg")
10441 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10444 `(("extra-cmake-modules" ,extra-cmake-modules)
10446 ("kdoctools" ,kdoctools)))
10448 `(("kconfig" ,kconfig)
10449 ("kconfigwidgets" ,kconfigwidgets)
10450 ("kcoreaddons" ,kcoreaddons)
10452 ("libkmahjongg" ,libkmahjongg)
10454 ("python-twisted" ,python-twisted)
10455 ("python-pyqt" ,python-pyqt)
10458 (home-page "https://games.kde.org/")
10459 (synopsis "Classical Mah Jongg game for 4 players")
10460 (description "Kajongg is the ancient Chinese board game for 4 players.
10462 If you are looking for the Mah Jongg solitaire please use the application
10465 Kajongg can be used in two different ways: Scoring a manual game where you
10466 play as always and use Kajongg for the computation of scores and for
10467 bookkeeping. Or you can use Kajongg to play against any combination of other
10468 human players or computer players.
10470 This package is part of the KDE games module.")
10471 (license (list license:gpl2+ license:fdl1.2+))))
10473 (define-public kbreakout
10476 (version "20.12.0")
10480 (uri (string-append "mirror://kde/stable/release-service/" version
10481 "/src/kbreakout-" version ".tar.xz"))
10483 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10484 (build-system qt-build-system)
10486 `(("extra-cmake-modules" ,extra-cmake-modules)
10487 ("kdoctools" ,kdoctools)))
10489 `(("kcompletion" ,kcompletion)
10490 ("kconfig" ,kconfig)
10491 ("kconfigwidgets" ,kconfigwidgets)
10492 ("kcoreaddons" ,kcoreaddons)
10494 ("kdbusaddons" ,kdbusaddons)
10496 ("kwidgetsaddons" ,kwidgetsaddons)
10497 ("kxmlgui" ,kxmlgui)
10498 ("libkdegames" ,libkdegames)
10500 ("qtdeclarative" ,qtdeclarative)))
10501 (home-page "https://games.kde.org/")
10502 (synopsis "Breakout like game")
10503 (description "KBreakout is similar to the classics breakout and xboing,
10504 featuring a number of added graphical enhancements and effects. You control a
10505 paddle at the bottom of the playing-field, and must destroy bricks at the top
10506 by bouncing balls against them.
10508 This package is part of the KDE games module.")
10509 (license (list license:gpl2+ license:fdl1.2+))))
10511 (define-public kmines
10514 (version "20.12.0")
10518 (uri (string-append "mirror://kde/stable/release-service/" version
10519 "/src/kmines-" version ".tar.xz"))
10521 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10522 (build-system qt-build-system)
10524 `(("extra-cmake-modules" ,extra-cmake-modules)
10525 ("kdoctools" ,kdoctools)))
10527 `(("kcompletion" ,kcompletion)
10528 ("kconfig" ,kconfig)
10529 ("kconfigwidgets" ,kconfigwidgets)
10530 ("kcoreaddons" ,kcoreaddons)
10532 ("kdbusaddons" ,kdbusaddons)
10534 ("ktextwidgets" ,ktextwidgets)
10535 ("kwidgetsaddons" ,kwidgetsaddons)
10536 ("kxmlgui" ,kxmlgui)
10537 ("libkdegames" ,libkdegames)
10539 ("qtdeclarative" ,qtdeclarative)))
10540 (home-page "https://games.kde.org/")
10541 (synopsis "Classical mine sweeper game")
10542 (description "KMines is a classic Minesweeper game. The idea is to
10543 uncover all the squares without blowing up any mines. When a mine is blown
10544 up, the game is over.
10546 This package is part of the KDE games module.")
10547 (license (list license:gpl2+ license:fdl1.2+))))
10549 (define-public konquest
10552 (version "20.12.0")
10556 (uri (string-append "mirror://kde/stable/release-service/"
10557 version "/src/konquest-" version ".tar.xz"))
10559 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10560 (build-system qt-build-system)
10562 `(("extra-cmake-modules" ,extra-cmake-modules)
10563 ("kdoctools" ,kdoctools)))
10565 `(("kcompletion" ,kcompletion)
10566 ("kconfig" ,kconfig)
10567 ("kcoreaddons" ,kcoreaddons)
10569 ("kdbusaddons" ,kdbusaddons)
10570 ("kguiaddons" ,kguiaddons)
10572 ("kwidgetsaddons" ,kwidgetsaddons)
10573 ("kxmlgui" ,kxmlgui)
10574 ("libkdegames" ,libkdegames)
10576 ("qtdeclarative" ,qtdeclarative)
10578 (home-page "https://games.kde.org/")
10579 (synopsis "Simple turn-based strategy game")
10580 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10581 conquer other planets by sending ships to them. The goal is to build an
10582 interstellar empire and ultimately conquer all other player's planets. The
10583 game can be played with up to nine empires, commanded either by the computer
10584 or by puny earthlings.
10586 This package is part of the KDE games module.")
10587 (license (list license:gpl2+ license:fdl1.2+))))
10589 (define-public kbounce
10592 (version "20.12.0")
10596 (uri (string-append "mirror://kde/stable/release-service/"
10597 version "/src/kbounce-" version ".tar.xz"))
10599 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10600 (build-system qt-build-system)
10602 `(("extra-cmake-modules" ,extra-cmake-modules)
10603 ("kdoctools" ,kdoctools)))
10605 `(("kcompletion" ,kcompletion)
10606 ("kconfigwidgets" ,kconfigwidgets)
10607 ("kcoreaddons" ,kcoreaddons)
10609 ("kdbusaddons" ,kdbusaddons)
10612 ("kwidgetsaddons" ,kwidgetsaddons)
10613 ("kxmlgui" ,kxmlgui)
10614 ("libkdegames" ,libkdegames)
10616 ("qtdeclarative" ,qtdeclarative)
10618 (home-page "https://games.kde.org/")
10619 (synopsis "Jezzball arcade game")
10620 (description "KBounce is a single player arcade game with the elements of
10621 puzzle. It is played on a field, surrounded by wall, with two or more balls
10622 bouncing around within the walls. The object of the game is to build new
10623 walls to decrease the size of the active field.
10625 This package is part of the KDE games module.")
10626 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10628 (define-public kblocks
10631 (version "20.12.0")
10635 (uri (string-append "mirror://kde/stable/release-service/"
10636 version "/src/kblocks-" version ".tar.xz"))
10638 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10639 (build-system qt-build-system)
10641 `(("extra-cmake-modules" ,extra-cmake-modules)
10642 ("kdoctools" ,kdoctools)))
10644 `(("kcompletion" ,kcompletion)
10645 ("kconfig" ,kconfig)
10646 ("kconfigwidgets" ,kconfigwidgets)
10647 ("kcoreaddons" ,kcoreaddons)
10649 ("kdbusaddons" ,kdbusaddons)
10651 ("kwidgetsaddons" ,kwidgetsaddons)
10652 ("kxmlgui" ,kxmlgui)
10653 ("libkdegames" ,libkdegames)
10655 ("qtdeclarative" ,qtdeclarative)
10657 (home-page "https://games.kde.org/")
10658 (synopsis "Single player falling blocks puzzle game")
10659 (description "KBlocks is the classic Tetris-like falling blocks game.
10661 The idea is to stack the falling blocks to create horizontal lines without any
10662 gaps. When a line is completed it is removed, and more space is available in
10663 the play area. When there is not enough space for blocks to fall, the game is
10666 This package is part of the KDE games module.")
10667 (license (list license:gpl2+ license:fdl1.2+))))
10669 (define-public ksudoku
10672 (version "20.12.0")
10676 (uri (string-append "mirror://kde/stable/release-service/"
10677 version "/src/ksudoku-" version ".tar.xz"))
10679 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10680 (build-system qt-build-system)
10682 `(("extra-cmake-modules" ,extra-cmake-modules)
10683 ("kdoctools" ,kdoctools)))
10685 `(("karchive" ,karchive)
10686 ("kconfig" ,kconfig)
10687 ("kconfigwidgets" ,kconfigwidgets)
10688 ("kcoreaddons" ,kcoreaddons)
10690 ("kguiaddons" ,kguiaddons)
10692 ("kiconthemes" ,kiconthemes)
10694 ("kwidgetsaddons" ,kwidgetsaddons)
10695 ("kxmlgui" ,kxmlgui)
10696 ("libkdegames" ,libkdegames)
10699 ("qtdeclarative" ,qtdeclarative)
10701 (home-page "https://games.kde.org/")
10702 (synopsis "Sudoku puzzle game and solver")
10703 (description "KSudoku is a Sudoku game and solver, supporting a range of
10704 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10705 puzzle sheets and find the solution to any Sudoku puzzle.
10707 The word Sudoku means \"single number in an allotted place\" in Japanese.
10708 These are the basic rules: Every Sudoku is a square divided into 3x3
10709 subsquares with 3x3 cells each.
10711 Some cells are filled with a number at the beginning. The remaining ones are
10712 to be filled by the player using numbers from 1 to 9, without repeating a
10713 number twice on each column, row or subsquare (each of them must contain only
10714 one 1, one 2, one 3, and so on). The game requires logic and patience.
10715 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10718 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10719 board we use letters): arithmetic relationships between numbers are
10722 This program supports also 16x16 games with numbers from 1 to 16 and 256
10723 cells with 16 cols, rows and subsquares!
10725 More information at http://en.wikipedia.org/wiki/Sudoku
10727 This package is part of the KDE games module.")
10728 (license (list license:gpl2+ license:fdl1.2+))))
10730 (define-public klines
10733 (version "20.12.0")
10737 (uri (string-append "mirror://kde/stable/release-service/" version
10738 "/src/klines-" version ".tar.xz"))
10740 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10741 (build-system qt-build-system)
10743 `(("extra-cmake-modules" ,extra-cmake-modules)
10744 ("kdoctools" ,kdoctools)))
10746 `(("kcompletion" ,kcompletion)
10747 ("kconfigwidgets" ,kconfigwidgets)
10748 ("kcoreaddons" ,kcoreaddons)
10750 ("kdbusaddons" ,kdbusaddons)
10752 ("kwidgetsaddons" ,kwidgetsaddons)
10753 ("kxmlgui" ,kxmlgui)
10754 ("libkdegames" ,libkdegames)
10756 ("qtdeclarative" ,qtdeclarative)))
10757 (home-page "https://games.kde.org/")
10758 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10759 (description "KLines is a simple but highly addictive one player game.
10761 The player has to move the colored balls around the game board, gathering them
10762 into the lines of the same color by five. Once the line is complete it is
10763 removed from the board, therefore freeing precious space. In the same time
10764 the new balls keep arriving by three after each move, filling up the game
10767 KLines is a single-player game where the player removes colored balls from the
10768 board by arranging them into lines of five or more. However, every time the
10769 player moves a ball, three more balls are added to the board.
10771 This package is part of the KDE games module.")
10772 (license (list license:gpl2+ license:fdl1.2+))))
10774 (define-public kgoldrunner
10776 (name "kgoldrunner")
10777 (version "20.12.0")
10781 (uri (string-append "mirror://kde/stable/release-service/" version
10782 "/src/kgoldrunner-" version ".tar.xz"))
10784 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10785 (build-system qt-build-system)
10787 `(("extra-cmake-modules" ,extra-cmake-modules)
10788 ("kdoctools" ,kdoctools)))
10790 `(("kcompletion" ,kcompletion)
10791 ("kcoreaddons" ,kcoreaddons)
10793 ("kdbusaddons" ,kdbusaddons)
10796 ("kwidgetsaddons" ,kwidgetsaddons)
10797 ("kxmlgui" ,kxmlgui)
10798 ("libkdegames" ,libkdegames)
10800 ("qtdeclarative" ,qtdeclarative)))
10801 (home-page "https://games.kde.org/")
10802 (synopsis "Action and puzzle solving game")
10803 (description "KGoldrunner is an action game where the hero runs through a
10804 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10805 gold nuggets and escape to the next level. Your enemies are also after the
10806 gold. Worse still, they are after you!.
10808 KGoldrunner is a fast-paced platform game where the player must navigate a
10809 maze while collecting gold nuggets and avoiding enemies. A variety of level
10810 packs are included, as well as an editor to create new levels.
10812 This package is part of the KDE games module.")
10813 (license (list license:gpl2+ license:fdl1.2+))))
10815 (define-public kdiamond
10818 (version "20.12.0")
10822 (uri (string-append "mirror://kde/stable/release-service/" version
10823 "/src/kdiamond-" version ".tar.xz"))
10825 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10826 (build-system qt-build-system)
10828 `(("extra-cmake-modules" ,extra-cmake-modules)
10829 ("kdoctools" ,kdoctools)))
10831 `(("kcompletion" ,kcompletion)
10832 ("kconfig" ,kconfig)
10833 ("kconfigwidgets" ,kconfigwidgets)
10834 ("kcoreaddons" ,kcoreaddons)
10836 ("kdbusaddons" ,kdbusaddons)
10838 ("knotifications" ,knotifications)
10839 ("knotifyconfig" ,knotifyconfig)
10840 ("kwidgetsaddons" ,kwidgetsaddons)
10841 ("kxmlgui" ,kxmlgui)
10842 ("libkdegames" ,libkdegames)
10844 ("qtdeclarative" ,qtdeclarative)))
10845 (home-page "https://games.kde.org/")
10846 (synopsis "Three-in-a-row game")
10847 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10848 features unlimited fun with randomly generated games and five difficulty
10849 levels with varying number of diamond colors and board sizes.
10851 This package is part of the KDE games module.")
10852 (license (list license:gpl2+ license:fdl1.2+))))
10854 (define-public kfourinline
10856 (name "kfourinline")
10857 (version "20.12.0")
10861 (uri (string-append "mirror://kde/stable/release-service/" version
10862 "/src/kfourinline-" version ".tar.xz"))
10864 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10865 (build-system qt-build-system)
10867 `(("extra-cmake-modules" ,extra-cmake-modules)
10868 ("kdoctools" ,kdoctools)))
10870 `(("kcompletion" ,kcompletion)
10871 ("kconfig" ,kconfig)
10872 ("kconfigwidgets" ,kconfigwidgets)
10873 ("kcoreaddons" ,kcoreaddons)
10877 ("kxmlgui" ,kxmlgui)
10878 ("libkdegames" ,libkdegames)
10880 ("qtdeclarative" ,qtdeclarative)
10882 (home-page "https://games.kde.org/")
10883 (synopsis "Place 4 pieces in a row")
10884 (description "KFourInLine is a board game for two players based on the
10887 KFourInLine is a game where two players take turns dropping pieces into a
10888 grid, the winner being the first to place four pieces in a line.
10890 This package is part of the KDE games module.")
10891 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10893 (define-public kblackbox
10896 (version "20.12.0")
10900 (uri (string-append "mirror://kde/stable/release-service/" version
10901 "/src/kblackbox-" version ".tar.xz"))
10903 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10904 (build-system qt-build-system)
10906 `(("extra-cmake-modules" ,extra-cmake-modules)
10907 ("kdoctools" ,kdoctools)))
10909 `(("karchive" ,karchive)
10910 ("kcompletion" ,kcompletion)
10911 ("kconfig" ,kconfig)
10912 ("kcoreaddons" ,kcoreaddons)
10914 ("kdbusaddons" ,kdbusaddons)
10916 ("ktextwidgets" ,ktextwidgets)
10917 ("kxmlgui" ,kxmlgui)
10918 ("libkdegames" ,libkdegames)
10920 ("qtdeclarative" ,qtdeclarative)
10922 (home-page "https://games.kde.org/")
10923 (synopsis "Find atoms in a grid by shooting electrons")
10924 (description "KBlackbox is a game of hide and seek played on a grid of
10925 boxes where the computer has hidden several balls. The position of the hidden
10926 balls can be deduced by shooting beams into the box
10928 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10929 player shoots rays into the grid to deduce the positions of hidden objects.
10931 This package is part of the KDE games module.")
10932 (license (list license:gpl2+ license:fdl1.2+))))
10934 (define-public knetwalk
10937 (version "20.12.0")
10941 (uri (string-append "mirror://kde/stable/release-service/" version
10942 "/src/knetwalk-" version ".tar.xz"))
10944 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10945 (build-system qt-build-system)
10947 `(("extra-cmake-modules" ,extra-cmake-modules)
10948 ("kdoctools" ,kdoctools)))
10950 `(("kcompletion" ,kcompletion)
10951 ("kconfig" ,kconfig)
10952 ("kconfigwidgets" ,kconfigwidgets)
10953 ("kcoreaddons" ,kcoreaddons)
10955 ("kdbusaddons" ,kdbusaddons)
10957 ("ktextwidgets" ,ktextwidgets)
10958 ("kwidgetsaddons" ,kwidgetsaddons)
10959 ("kxmlgui" ,kxmlgui)
10960 ("libkdegames" ,libkdegames)
10962 ("qtdeclarative" ,qtdeclarative)))
10963 (home-page "https://games.kde.org/")
10964 (synopsis "Turn the board pieces to get all computers connected")
10965 (description "KNetWalk is a small game where you have to build up a
10966 computer network by rotating the wires to connect the terminals to the server.
10967 When the network is build, a highscore-list comes up where competitions can be
10970 KNetwalk is a puzzle game where the player arranges sections of wire to
10971 connect all the computers on the board.
10973 This package is part of the KDE games module.")
10974 (license (list license:gpl2+ license:fdl1.2+))))
10976 (define-public bomber
10979 (version "20.12.0")
10983 (uri (string-append "mirror://kde/stable/release-service/" version
10984 "/src/bomber-" version ".tar.xz"))
10986 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10987 (build-system qt-build-system)
10989 `(("extra-cmake-modules" ,extra-cmake-modules)
10990 ("kdoctools" ,kdoctools)))
10992 `(("kcompletiom" ,kcompletion)
10993 ("kconfig" ,kconfig)
10994 ("kcoreaddons" ,kcoreaddons)
10996 ("kdbusaddons" ,kdbusaddons)
10998 ("kxmlgui" ,kxmlgui)
10999 ("libkdegames" ,libkdegames)
11001 ("qtdeclarative" ,qtdeclarative)))
11002 (home-page "https://games.kde.org/")
11003 (synopsis "Arcade bombing game")
11004 (description "Bomber is a single player arcade game.
11006 The player is invading various cities in a plane that is decreasing in height.
11007 The goal of the game is to destroy all the buildings and advance to the next
11008 level. Each level gets a bit harder by increasing the speed of the plane and
11009 the height of the buildings.
11011 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
11012 below you. Each pass the spaceship makes, it gets lower and lower. If you've
11013 not destroyed a building in your path, you will crash into it.
11015 This package is part of the KDE games module.")
11016 (license (list license:gpl2+ license:fdl1.2+))))
11018 (define-public granatier
11021 (version "20.12.0")
11025 (uri (string-append "mirror://kde/stable/release-service/" version
11026 "/src/granatier-" version ".tar.xz"))
11028 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
11029 (build-system qt-build-system)
11031 `(("extra-cmake-modules" ,extra-cmake-modules)
11032 ("kdoctools" ,kdoctools)))
11034 `(("kcompletion" ,kcompletion)
11035 ("kconfig" ,kconfig)
11036 ("kconfigwidgets" ,kconfigwidgets)
11037 ("kcoreaddons" ,kcoreaddons)
11039 ("kdbusaddons" ,kdbusaddons)
11041 ("knewstuff" ,knewstuff)
11042 ("kwidgetsaddons" ,kwidgetsaddons)
11043 ("kxmlgui" ,kxmlgui)
11044 ("libkdegames" ,libkdegames)
11046 ("qtdeclarative" ,qtdeclarative)
11048 (home-page "https://games.kde.org/")
11049 (synopsis "Bomberman clone")
11050 (description "Granatier is a clone of the classic Bomberman game,
11051 inspired by the work of the Clanbomber clone.
11053 This package is part of the KDE games module.")
11054 (license (list license:gpl2+ license:fdl1.2+))))
11056 (define-public ksirk
11059 (version "20.12.0")
11063 (uri (string-append "mirror://kde/stable/release-service/" version
11064 "/src/ksirk-" version ".tar.xz"))
11066 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11067 (build-system qt-build-system)
11069 `(("extra-cmake-modules" ,extra-cmake-modules)
11070 ("kdoctools" ,kdoctools)))
11072 `(("kcrash" ,kcrash)
11074 ("kiconthemes" ,kiconthemes)
11076 ("knewstuff" ,knewstuff)
11077 ("kwallet" ,kwallet)
11078 ("kxmlgui" ,kxmlgui)
11079 ("libkdegames" ,libkdegames)
11083 ("qtdeclarative" ,qtdeclarative)
11086 (home-page "https://games.kde.org/")
11087 (synopsis "Computerized version of the well known strategy board game
11089 (description "KsirK is a multi-player network-enabled game. The goal of
11090 the game is simply to conquer the world by attacking your neighbors with your
11093 At the beginning of the game, countries are distributed to all the players.
11094 Each country contains one army represented by an infantryman. Each player has
11095 some armies to distribute to his countries. On each turn, each player can
11096 attack his neighbours, eventually conquering one or more countries. At the
11097 end of each turn, some bonus armies are distributed to the players in function
11098 of the number of countries they own. The winner is the player that conquered
11103 @item Support for 1-6 human or computer players
11104 @item Multi-player gaming over a network
11105 @item You can easily create new skins with SVG graphics and the skin editor
11106 @item Hot New Stuff support. You can easily download and install new skins
11109 This package is part of the KDE games module.")
11110 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11112 (define-public palapeli
11115 (version "20.12.0")
11119 (uri (string-append "mirror://kde/stable/release-service/" version
11120 "/src/palapeli-" version ".tar.xz"))
11122 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11123 (build-system qt-build-system)
11125 `(("extra-cmake-modules" ,extra-cmake-modules)
11126 ("kdoctools" ,kdoctools)))
11128 `(("karchive" ,karchive)
11129 ("kcompletion" ,kcompletion)
11130 ("kconfig" ,kconfig)
11131 ("kconfigwidgets" ,kconfigwidgets)
11132 ("kcoreaddons" ,kcoreaddons)
11138 ("kitemviews" ,kitemviews)
11139 ("knotifications" ,knotifications)
11140 ("kservice" ,kservice)
11141 ("kwidgetsaddons" ,kwidgetsaddons)
11142 ("kxmlgui" ,kxmlgui)
11143 ("libkdegames" ,libkdegames)
11145 ("qtdeclarative" ,qtdeclarative)
11147 ("shared-mime-info" ,shared-mime-info)))
11148 (home-page "https://games.kde.org/")
11149 (synopsis "Jigsaw puzzle game")
11150 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11151 that genre, you are not limited to aligning pieces on imaginary grids. The
11152 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11153 everything you do is saved on your disk immediately.
11155 Palapeli is the Finnish word for jigsaw puzzle.
11157 This package is part of the KDE games module.")
11158 (license license:gpl2+)))
11160 (define-public kiriki
11163 (version "20.12.0")
11167 (uri (string-append "mirror://kde/stable/release-service/" version
11168 "/src/kiriki-" version ".tar.xz"))
11170 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11171 (build-system qt-build-system)
11173 `(("extra-cmake-modules" ,extra-cmake-modules)
11174 ("kdoctools" ,kdoctools)))
11176 `(("kcompletion" ,kcompletion)
11177 ("kconfig" ,kconfig)
11178 ("kconfigwidgets" ,kconfigwidgets)
11179 ("kcoreaddons" ,kcoreaddons)
11181 ("kdbusaddons" ,kdbusaddons)
11183 ("kiconthemes" ,kiconthemes)
11184 ("kxmlgui" ,kxmlgui)
11185 ("libkdegames" ,libkdegames)
11187 ("qtdeclarative" ,qtdeclarative)))
11188 (home-page "https://games.kde.org/")
11189 (synopsis "Yahtzee dice game")
11190 (description "Kiriki is an addictive and fun dice game, designed to be
11191 played by as many as six players.
11193 Participants have to collect points by rolling five dice for up to three times
11194 per single turn to make combinations with the highest score.
11196 This package is part of the KDE games module.")
11197 (license (list license:gpl2+ license:fdl1.2+))))
11199 (define-public kigo
11202 (version "20.12.0")
11206 (uri (string-append "mirror://kde/stable/release-service/" version
11207 "/src/kigo-" version ".tar.xz"))
11209 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11210 (build-system qt-build-system)
11212 `(("extra-cmake-modules" ,extra-cmake-modules)
11213 ("kdoctools" ,kdoctools)))
11215 `(("kconfig" ,kconfig)
11216 ("kconfigwidgets" ,kconfigwidgets)
11217 ("kcoreaddons" ,kcoreaddons)
11219 ("kdbusaddons" ,kdbusaddons)
11222 ("knewstuff" ,knewstuff)
11223 ("ktextwidgets" ,ktextwidgets)
11224 ("kxmlgui" ,kxmlgui)
11225 ("libkdegames" ,libkdegames)
11227 ("qtdeclarative" ,qtdeclarative)
11229 (home-page "https://games.kde.org/")
11230 (synopsis "Go board game")
11231 (description "Kigo is an open-source implementation of the popular Go
11234 Go is a strategic board game for two players. It is also known as
11235 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11236 for being rich in strategic complexity despite its simple rules. The game is
11237 played by two players who alternately place black and white stones (playing
11238 pieces, now usually made of glass or plastic) on the vacant intersections of a
11239 grid of 19x19 lines (9x9 or 13x13 for easier games).
11241 You also need to install a go engine, e.g. @code{gnugo}.
11243 This package is part of the KDE games module.")
11244 (license license:gpl3+)))
11246 (define-public kubrick
11249 (version "20.12.0")
11253 (uri (string-append "mirror://kde/stable/release-service/" version
11254 "/src/kubrick-" version ".tar.xz"))
11256 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11257 (build-system qt-build-system)
11259 `(("extra-cmake-modules" ,extra-cmake-modules)
11260 ("kdoctools" ,kdoctools)))
11263 ("kconfig" ,kconfig)
11264 ("kconfigwidgets" ,kconfigwidgets)
11265 ("kcoreaddons" ,kcoreaddons)
11269 ("kwidgetsaddons" ,kwidgetsaddons)
11270 ("kxmlgui" ,kxmlgui)
11271 ("libkdegames" ,libkdegames)
11273 ("qtdeclarative" ,qtdeclarative)
11275 (home-page "https://games.kde.org/")
11276 (synopsis "Game based on Rubik's Cube")
11277 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11279 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11280 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11281 selection of puzzles at several levels of difficulty, as well as demos of
11282 pretty patterns and solution moves, or you can make up your own puzzles. The
11283 game has unlimited undo, redo, save and reload capabilities.
11285 This package is part of the KDE games module.")
11286 (license (list license:gpl2+ license:fdl1.2+))))
11288 (define-public lskat
11291 (version "20.12.0")
11295 (uri (string-append "mirror://kde/stable/release-service/" version
11296 "/src/lskat-" version ".tar.xz"))
11298 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11299 (build-system qt-build-system)
11301 `(("extra-cmake-modules" ,extra-cmake-modules)
11302 ("kdoctools" ,kdoctools)))
11304 `(("kcompletion" ,kcompletion)
11305 ("kconfig" ,kconfig)
11306 ("kcoreaddons" ,kcoreaddons)
11308 ("kguiaddons" ,kguiaddons)
11310 ("kwidgetsaddons" ,kwidgetsaddons)
11311 ("kxmlgui" ,kxmlgui)
11312 ("libkdegames" ,libkdegames)
11314 ("qtdeclarative" ,qtdeclarative)
11316 (home-page "https://games.kde.org/")
11317 (synopsis "Lieutnant Skat card game")
11318 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11319 engaging card game for two players, where the second player is either live
11320 opponent, or a built in artificial intelligence.
11322 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11324 This package is part of the KDE games module.")
11325 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11327 (define-public kapman
11330 (version "20.12.0")
11334 (uri (string-append "mirror://kde/stable/release-service/" version
11335 "/src/kapman-" version ".tar.xz"))
11337 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11338 (build-system qt-build-system)
11340 `(("extra-cmake-modules" ,extra-cmake-modules)
11341 ("kdoctools" ,kdoctools)))
11343 `(("kcompletion" ,kcompletion)
11344 ("kconfig" ,kconfig)
11345 ("kconfigwidgets" ,kconfigwidgets)
11346 ("kcoreaddons" ,kcoreaddons)
11348 ("kdbusaddons" ,kdbusaddons)
11350 ("kxmlgui" ,kxmlgui)
11351 ("libkdegames" ,libkdegames)
11353 ("qtdeclarative" ,qtdeclarative)
11355 (home-page "https://games.kde.org/")
11356 (synopsis "Pac-Man clone")
11357 (description "Kapman is a clone of the well known game Pac-Man.
11359 You must run through the maze to eat all pills without being captured by a
11360 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11361 few seconds. When a stage is cleared of pills and energizer the player is
11362 taken to the next stage with slightly increased game speed
11364 This package is part of the KDE games module.")
11365 (license (list license:gpl2+ license:fdl1.2+))))
11367 (define-public kspaceduel
11369 (name "kspaceduel")
11370 (version "20.12.0")
11374 (uri (string-append "mirror://kde/stable/release-service/" version
11375 "/src/kspaceduel-" version ".tar.xz"))
11377 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11378 (build-system qt-build-system)
11380 `(("extra-cmake-modules" ,extra-cmake-modules)
11381 ("kdoctools" ,kdoctools)))
11383 `(("kcompletion" ,kcompletion)
11384 ("kconfig" ,kconfig)
11385 ("kconfigwidgets" ,kconfigwidgets)
11386 ("kcoreaddons" ,kcoreaddons)
11388 ("kdbusaddons" ,kdbusaddons)
11390 ("kxmlgui" ,kxmlgui)
11391 ("libkdegames" ,libkdegames)
11393 ("qtdeclarative" ,qtdeclarative)
11395 (home-page "https://games.kde.org/")
11396 (synopsis "Two player game with shooting spaceships flying around a sun")
11397 (description "KSpaceduel is a space battle game for one or two players,
11398 where two ships fly around a star in a struggle to be the only survivor.
11400 This package is part of the KDE games module.")
11401 (license (list license:gpl2+ license:fdl1.2+))))
11403 (define-public bovo
11406 (version "20.12.0")
11410 (uri (string-append "mirror://kde/stable/release-service/" version
11411 "/src/bovo-" version ".tar.xz"))
11413 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11414 (build-system qt-build-system)
11416 `(("extra-cmake-modules" ,extra-cmake-modules)
11417 ("kdoctools" ,kdoctools)))
11419 `(("kcompletion" ,kcompletion)
11420 ("kcoreaddons" ,kcoreaddons)
11422 ("kdbusaddons" ,kdbusaddons)
11424 ("kxmlgui" ,kxmlgui)
11425 ("libkdegames" ,libkdegames)
11427 ("qtdeclarative" ,qtdeclarative)
11429 (home-page "https://games.kde.org/")
11430 (synopsis "Classic pen and paper game: five in a line")
11431 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11432 points\") like game for two players, where the opponents alternate in placing
11433 their respective pictogram on the game board. The winner is the first to
11434 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11435 X and O, Naughts and Crosses)
11437 This package is part of the KDE games module.")
11438 (license (list license:gpl2+ license:fdl1.2+))))
11440 (define-public killbots
11443 (version "20.12.0")
11447 (uri (string-append "mirror://kde/stable/release-service/" version
11448 "/src/killbots-" version ".tar.xz"))
11450 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11451 (build-system qt-build-system)
11453 `(("extra-cmake-modules" ,extra-cmake-modules)
11454 ("kdoctools" ,kdoctools)))
11456 `(("kcompletion" ,kcompletion)
11457 ("kconfig" ,kconfig)
11458 ("kconfigwidgets" ,kconfigwidgets)
11459 ("kcoreaddons" ,kcoreaddons)
11461 ("kdbusaddons" ,kdbusaddons)
11463 ("kwidgetsaddons" ,kwidgetsaddons)
11464 ("kxmlgui" ,kxmlgui)
11465 ("libkdegames" ,libkdegames)
11467 ("qtdeclarative" ,qtdeclarative)))
11468 (home-page "https://games.kde.org/")
11469 (synopsis "Port of the classic BSD console game robots")
11470 (description "Killbots is a simple game of evading killer robots.
11472 Who created the robots and why they have been programmed to destroy, no one
11473 knows. All that is known is that the robots are numerous and their sole
11474 objective is to destroy you. Fortunately for you, their creator has focused
11475 on quantity rather than quality and as a result the robots are severely
11476 lacking in intelligence. Your superior wit and a fancy teleportation device
11477 are your only weapons against the never-ending stream of mindless automatons.
11479 This package is part of the KDE games module.")
11480 (license (list license:gpl2+ license:fdl1.2+))))
11482 (define-public ksnakeduel
11484 (name "ksnakeduel")
11485 (version "20.12.0")
11489 (uri (string-append "mirror://kde/stable/release-service/" version
11490 "/src/ksnakeduel-" version ".tar.xz"))
11492 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11493 (build-system qt-build-system)
11495 `(("extra-cmake-modules" ,extra-cmake-modules)
11496 ("kdoctools" ,kdoctools)))
11498 `(("kcompletion" ,kcompletion)
11499 ("kconfig" ,kconfig)
11500 ("kconfigwidgets" ,kconfigwidgets)
11501 ("kcoreaddons" ,kcoreaddons)
11503 ("kdbusaddons" ,kdbusaddons)
11504 ("kguiaddons" ,kguiaddons)
11506 ("kxmlgui" ,kxmlgui)
11507 ("libkdegames" ,libkdegames)
11509 ("qtdeclarative" ,qtdeclarative)
11511 (home-page "https://games.kde.org/")
11512 (synopsis "Snake race played against the computer")
11513 (description "KSnakeDuel is a fast action game where you steer a snake
11514 which has to eat food. While eating the snake grows. But once a player
11515 collides with the other snake or the wall the game is lost. This becomes of
11516 course more and more difficult the longer the snakes grow.
11518 This package is part of the KDE games module.")
11519 (license (list license:gpl2+ license:fdl1.2+))))
11521 (define-public kollision
11524 (version "20.12.0")
11528 (uri (string-append "mirror://kde/stable/release-service/" version
11529 "/src/kollision-" version ".tar.xz"))
11531 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11532 (build-system qt-build-system)
11534 `(("extra-cmake-modules" ,extra-cmake-modules)
11535 ("kdoctools" ,kdoctools)))
11537 `(("kcompletion" ,kcompletion)
11538 ("kconfig" ,kconfig)
11539 ("kcoreaddons" ,kcoreaddons)
11541 ("kdbusaddons" ,kdbusaddons)
11543 ("kwidgetsaddons" ,kwidgetsaddons)
11544 ("kxmlgui" ,kxmlgui)
11545 ("libkdegames" ,libkdegames)
11547 ("qtdeclarative" ,qtdeclarative)))
11548 (home-page "https://games.kde.org/")
11549 (synopsis "Simple ball dodging game")
11550 (description "In Kollision you use mouse to control a small blue ball in a
11551 closed space environment filled with small red balls, which move about
11552 chaotically. Your goal is to avoid touching any of those red balls with your
11553 blue one, because the moment you do the game will be over. The longer you can
11554 stay in game the higher will your score be.
11556 This package is part of the KDE games module.")
11557 (license (list license:gpl2+ license:fdl1.2+))))
11559 (define-public knavalbattle
11561 (name "knavalbattle")
11562 (version "20.12.0")
11566 (uri (string-append "mirror://kde/stable/release-service/" version
11567 "/src/knavalbattle-" version ".tar.xz"))
11569 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11570 (build-system qt-build-system)
11572 `(("extra-cmake-modules" ,extra-cmake-modules)
11573 ("kdoctools" ,kdoctools)))
11576 ("kcompletion" ,kcompletion)
11577 ("kconfig" ,kconfig)
11578 ("kconfigwidgets" ,kconfigwidgets)
11579 ("kcoreaddons" ,kcoreaddons)
11581 ("kdbusaddons" ,kdbusaddons)
11584 ("ktextwidgets" ,ktextwidgets)
11585 ("kxmlgui" ,kxmlgui)
11586 ("libkdegames" ,libkdegames)
11588 ("qtdeclarative" ,qtdeclarative)))
11589 (home-page "https://games.kde.org/")
11590 (synopsis "Battleship board game with built-in game server")
11591 (description "KBattleship is a Battle Ship game for KDE.
11593 Ships are placed on a board which represents the sea. Players try to hit each
11594 others ships in turns without knowing where they are placed. The first player
11595 to destroy all ships wins the game.
11597 This package is part of the KDE games module.")
11598 (license (list license:gpl2+ license:fdl1.2+))))
11600 (define-public kreversi
11603 (version "20.08.3")
11607 (uri (string-append "mirror://kde/stable/release-service/" version
11608 "/src/kreversi-" version ".tar.xz"))
11610 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11611 (build-system qt-build-system)
11613 `(("extra-cmake-modules" ,extra-cmake-modules)
11614 ("kdoctools" ,kdoctools)))
11616 `(("kconfig" ,kconfig)
11617 ("kconfigwidgets" ,kconfigwidgets)
11618 ("kcoreaddons" ,kcoreaddons)
11620 ("kdbusaddons" ,kdbusaddons)
11621 ("kdeclarative" ,kdeclarative)
11623 ("kiconthemes" ,kiconthemes)
11625 ("kxmlgui" ,kxmlgui)
11626 ("libkdegames" ,libkdegames)
11628 ("qtdeclarative" ,qtdeclarative)
11630 (home-page "https://games.kde.org/")
11631 (synopsis "Old reversi board game, also known as othello")
11632 (description "KReversi is a simple one player strategy game played
11633 against the computer.
11635 If a player's piece is captured by an opposing player, that piece is turned
11636 over to reveal the color of that player. A winner is declared when one player
11637 has more pieces of his own color on the board and there are no more possible
11640 This package is part of the KDE games module.")
11641 (license (list license:gpl2+ license:fdl1.2+))))
11643 (define-public ksquares
11646 (version "20.12.0")
11650 (uri (string-append "mirror://kde/stable/release-service/" version
11651 "/src/ksquares-" version ".tar.xz"))
11653 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11654 (build-system qt-build-system)
11656 `(("extra-cmake-modules" ,extra-cmake-modules)
11657 ("kdoctools" ,kdoctools)))
11659 `(("kcompletion" ,kcompletion)
11660 ("kconfig" ,kconfig)
11661 ("kconfigwidgets" ,kconfigwidgets)
11662 ("kcoreaddons" ,kcoreaddons)
11664 ("kdbusaddons" ,kdbusaddons)
11666 ("kwidgetsaddons" ,kwidgetsaddons)
11667 ("kxmlgui" ,kxmlgui)
11668 ("libkdegames" ,libkdegames)
11670 ("qtdeclarative" ,qtdeclarative)))
11671 (home-page "https://games.kde.org/")
11672 (synopsis "Dots and Boxes game")
11673 (description "KSquares is an implementation of the popular paper based
11674 game Squares. Two players take turns connecting dots on a grid to complete
11675 squares, the player with the most squares wins.
11677 This package is part of the KDE games module.")
11678 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11680 (define-public kjumpingcube
11682 (name "kjumpingcube")
11683 (version "20.12.0")
11687 (uri (string-append "mirror://kde/stable/release-service/" version
11688 "/src/kjumpingcube-" version ".tar.xz"))
11690 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11691 (build-system qt-build-system)
11693 `(("extra-cmake-modules" ,extra-cmake-modules)
11694 ("kdoctools" ,kdoctools)))
11696 `(("kconfig" ,kconfig)
11697 ("kconfigwidgets" ,kconfigwidgets)
11698 ("kcoreaddons" ,kcoreaddons)
11700 ("kdbusaddons" ,kdbusaddons)
11703 ("kwidgetsaddons" ,kwidgetsaddons)
11704 ("kxmlgui" ,kxmlgui)
11705 ("libkdegames" ,libkdegames)
11707 ("qtdeclarative" ,qtdeclarative)
11709 (home-page "https://games.kde.org/")
11710 (synopsis "Simple tactical game for number-crunchers")
11711 (description "KJumpingcube is a simple tactical game for one or two
11712 players, played on a grid of numbered squares. Each turn, players compete for
11713 control of the board by capturing or adding to one square.
11715 This package is part of the KDE games module.")
11716 (license (list license:gpl2+ license:fdl1.2+))))
11718 (define-public xmoto
11725 (uri (git-reference
11726 (url "https://github.com/xmoto/xmoto")
11728 (file-name (git-file-name name version))
11730 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11731 (modules '((guix build utils)
11734 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11735 ;; it appears to be incompatible with the (older) one bundled.
11738 (let ((keep '("chipmunk" "glad" "md5sum")))
11739 (with-directory-excursion "vendor"
11740 (for-each delete-file-recursively
11741 (lset-difference string=?
11743 (cons* "." ".." keep))))
11744 (substitute* "src/CMakeLists.txt"
11745 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11746 (if (member library keep) line ""))))
11748 (build-system cmake-build-system)
11750 `(#:tests? #f ;no test
11752 (modify-phases %standard-phases
11753 (add-after 'unpack 'fix-hard-coded-directory
11754 (lambda* (#:key outputs #:allow-other-keys)
11755 (substitute* "src/common/VFileIO.cpp"
11757 (string-append (assoc-ref outputs "out") "/share")))
11759 (add-before 'build 'set-SDL
11760 ;; Set correct environment for SDL.
11761 (lambda* (#:key inputs #:allow-other-keys)
11764 (assoc-ref inputs "sdl") "/include/SDL:"
11765 (or (getenv "CPATH") "")))
11767 (add-after 'install 'unbundle-fonts
11768 ;; Unbundle DejaVuSans TTF files.
11769 (lambda* (#:key outputs inputs #:allow-other-keys)
11770 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11771 "/share/fonts/truetype/"))
11772 (target-dir (string-append (assoc-ref outputs "out")
11773 "/share/xmoto/Textures/Fonts/")))
11774 (for-each (lambda (f)
11775 (let ((font (string-append font-dir f))
11776 (target (string-append target-dir f)))
11777 (delete-file target)
11778 (symlink font target)))
11779 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11782 `(("gettext" ,gettext-minimal)
11783 ("pkg-config" ,pkg-config)))
11787 ("font-dejavu" ,font-dejavu)
11789 ("libjpeg" ,libjpeg-turbo)
11791 ("libxdg-basedir" ,libxdg-basedir)
11792 ("libxml2" ,libxml2)
11795 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11798 (home-page "https://xmoto.tuxfamily.org/")
11799 (synopsis "2D motocross platform game")
11801 "X-Moto is a challenging 2D motocross platform game, where
11802 physics play an all important role in the gameplay. You need to
11803 control your bike to its limit, if you want to have a chance finishing
11804 the more difficult challenges.")
11805 (license (list license:gpl2+ ;whole project
11806 license:bsd-3 ;vendor/md5sum
11810 (define-public eboard
11817 (uri (git-reference
11818 (url "https://github.com/fbergo/eboard")
11819 (commit (string-append "v" version))))
11820 (file-name (git-file-name name version))
11822 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11823 (build-system gnu-build-system)
11826 ("pkg-config" ,pkg-config)))
11830 ("gstreamer" ,gstreamer)))
11834 (modify-phases %standard-phases
11835 (replace 'configure
11836 (lambda* (#:key outputs #:allow-other-keys)
11837 (make-file-writable "eboard-config")
11838 (setenv "CC" "gcc")
11839 (invoke "./configure"
11840 (string-append "--prefix=" (assoc-ref outputs "out")))
11842 (add-before 'install 'make-required-directories
11843 (lambda* (#:key outputs #:allow-other-keys)
11844 (mkdir-p (string-append (assoc-ref outputs "out")
11847 (synopsis "Graphical user interface to play chess")
11849 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11850 and chess engines.")
11851 (home-page "https://www.bergo.eng.br/eboard/")
11852 (license license:gpl2+)))
11854 (define-public chessx
11861 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11862 version "/chessx-" version ".tgz"))
11864 (base32 "01fjchil2h6ry2ywr0dwjw2g7zd29580cr4c74d5z74h999lp6nh"))))
11865 (build-system qt-build-system)
11867 `(("qttools" ,qttools)))
11869 `(("qtbase" ,qtbase)
11870 ("qtmultimedia" ,qtmultimedia)
11871 ("qtspeech" ,qtspeech)
11877 (modify-phases %standard-phases
11878 (add-after 'unpack 'fix-paths
11879 (lambda* (#:key inputs #:allow-other-keys)
11880 (substitute* "chessx.pro"
11881 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11882 (string-append (assoc-ref inputs "qttools") "/bin/lrelease")))
11884 (add-after 'fix-paths 'make-qt-deterministic
11886 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11888 (replace 'configure
11893 (lambda* (#:key outputs #:allow-other-keys)
11894 (let ((out (assoc-ref outputs "out")))
11895 (install-file "release/chessx" (string-append out "/bin"))
11896 (install-file "unix/chessx.desktop"
11897 (string-append out "/share/applications")))
11899 (synopsis "Chess game database")
11901 "ChessX is a chess database. With ChessX you can operate on your
11902 collection of chess games in many ways: browse, edit, add, organize, analyze,
11903 etc. You can also play games on FICS or against an engine.")
11904 (home-page "http://chessx.sourceforge.net/")
11905 (license license:gpl2+)))
11907 (define-public stockfish
11914 (uri (git-reference
11915 (url "https://github.com/official-stockfish/Stockfish")
11916 (commit (string-append "sf_" version))))
11917 (file-name (git-file-name name version))
11919 (base32 "15dfp9fnl3w7dgxhqmsm461amsysn646rj1arnzvwhy2i6ijhg2m"))))
11920 (build-system gnu-build-system)
11922 `(("neural-network"
11925 (uri "https://tests.stockfishchess.org/api/nn/nn-62ef826d1a6d.nnue")
11927 (base32 "0qsy9rr4zgxrpgwhwbi96z01a2560am2b00q2klbj4bd39nq5vv2"))))))
11930 #:make-flags (list "-C" "src"
11932 (string-append "PREFIX="
11933 (assoc-ref %outputs "out"))
11934 (string-append "ARCH="
11935 ,(match (%current-system)
11936 ("x86_64-linux" "x86-64")
11937 ("i686-linux" "x86-32")
11938 ("aarch64-linux" "general-64")
11939 ("armhf-linux" "armv7")
11940 ("mips64el-linux" "general-64")
11941 (_ "general-32"))))
11942 #:phases (modify-phases %standard-phases
11943 (delete 'configure)
11944 ;; The official neural network file is needed for building
11945 ;; and is embedded in the resulting binary.
11946 (add-after 'unpack 'copy-net
11947 (lambda* (#:key inputs #:allow-other-keys)
11948 (copy-file (assoc-ref inputs "neural-network")
11949 "src/nn-62ef826d1a6d.nnue")
11951 (synopsis "Strong chess engine")
11953 "Stockfish is a very strong chess engine. It is much stronger than the
11954 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11956 (home-page "https://stockfishchess.org/")
11957 (license license:gpl3+)))
11959 (define-public barrage
11966 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11967 "barrage-" version ".tar.gz"))
11969 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11970 (build-system gnu-build-system)
11972 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11974 ("sdl-mixer" ,sdl-mixer)))
11976 `(#:configure-flags
11978 (string-append "CFLAGS="
11979 "-I" (assoc-ref %build-inputs "sdl-mixer")
11981 (home-page "http://lgames.sourceforge.net/Barrage/")
11982 (synopsis "Violent point-and-click shooting game with nice effects")
11984 "Barrage is a rather destructive action game that puts you on a shooting
11985 range with the objective to hit as many dummy targets as possible within
11986 3 minutes. You control a gun that may either fire small or large grenades at
11987 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11989 (license license:gpl2+)))
11991 (define-public burgerspace
11993 (name "burgerspace")
11998 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11999 "burgerspace-" version ".tar.gz"))
12001 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
12002 (build-system gnu-build-system)
12004 `(("pkg-config" ,pkg-config)))
12006 `(("flatzebra" ,flatzebra)))
12007 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
12008 (synopsis "Avoid evil foodstuffs and make burgers")
12010 "This is a clone of the classic game BurgerTime. In it, you play
12011 the part of a chef who must create burgers by stepping repeatedly on
12012 the ingredients until they fall into place. And to make things more
12013 complicated, you also must avoid evil animate food items while
12014 performing this task, with nothing but your trusty pepper shaker to
12016 (license license:gpl2+)))
12018 (define-public 7kaa
12021 (version "2.15.4p1")
12025 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
12026 "releases/download/v" version "/"
12027 "7kaa-" version ".tar.xz"))
12029 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
12030 (build-system gnu-build-system)
12032 `(("gettext" ,gettext-minimal)
12033 ("pkg-config" ,pkg-config)))
12039 (home-page "https://7kfans.com/")
12040 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
12042 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
12043 Strategy with the addition of trade, diplomacy, and espionage. The game
12044 enables players to compete against up to six other kingdoms allowing players
12045 to conquer opponents by defeating them in war (with troops or machines),
12046 capturing their buildings with spies, or offering opponents money for their
12048 (license license:gpl2+)))
12050 (define-public neverball
12051 ;; Git version is 6-years younger than latest release.
12052 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
12056 (version (git-version "1.6.0" revision commit))
12060 (uri (git-reference
12061 (url "https://github.com/Neverball/neverball")
12065 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12066 (file-name (git-file-name name version))
12067 (modules '((guix build utils)))
12070 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12071 (delete-file-recursively "data/ball/octocat")
12073 (build-system copy-build-system)
12076 '(("neverball" "bin/")
12077 ("neverputt" "bin/")
12079 ("data" "share/games/neverball/")
12080 ("locale" "share/")
12081 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12084 ("dist/" "share/applications" #:include ("neverball.desktop"
12085 "neverputt.desktop"))
12086 ("dist/neverball_16.png"
12087 "/share/icons/hicolor/16x16/apps/neverball.png")
12088 ("dist/neverball_24.png"
12089 "/share/icons/hicolor/24x24/apps/neverball.png")
12090 ("dist/neverball_32.png"
12091 "/share/icons/hicolor/32x32/apps/neverball.png")
12092 ("dist/neverball_48.png"
12093 "/share/icons/hicolor/48x48/apps/neverball.png")
12094 ("dist/neverball_64.png"
12095 "/share/icons/hicolor/64x64/apps/neverball.png")
12096 ("dist/neverball_128.png"
12097 "/share/icons/hicolor/128x128/apps/neverball.png")
12098 ("dist/neverball_256.png"
12099 "/share/icons/hicolor/256x256/apps/neverball.png")
12100 ("dist/neverball_512.png"
12101 "/share/icons/hicolor/512x512/apps/neverball.png")
12102 ("dist/neverputt_16.png"
12103 "/share/icons/hicolor/16x16/apps/neverputt.png")
12104 ("dist/neverputt_24.png"
12105 "/share/icons/hicolor/24x24/apps/neverputt.png")
12106 ("dist/neverputt_32.png"
12107 "/share/icons/hicolor/32x32/apps/neverputt.png")
12108 ("dist/neverputt_48.png"
12109 "/share/icons/hicolor/48x48/apps/neverputt.png")
12110 ("dist/neverputt_64.png"
12111 "/share/icons/hicolor/64x64/apps/neverputt.png")
12112 ("dist/neverputt_128.png"
12113 "/share/icons/hicolor/128x128/apps/neverputt.png")
12114 ("dist/neverputt_256.png"
12115 "/share/icons/hicolor/256x256/apps/neverputt.png")
12116 ("dist/neverputt_512.png"
12117 "/share/icons/hicolor/512x512/apps/neverputt.png")
12118 ("dist/" "share/man/man1" #:include ("mapc.1"))
12119 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12120 ("doc/" "share/doc/neverball")
12121 ("README.md" "share/doc/neverball/"))
12123 (modify-phases %standard-phases
12124 (add-before 'install 'build
12125 (lambda* (#:key inputs outputs #:allow-other-keys)
12126 (let* ((out (assoc-ref outputs "out"))
12127 (sdl (assoc-ref inputs "sdl")))
12128 (invoke "make" "-j" (number->string (parallel-job-count))
12129 "--environment-overrides"
12130 "CC=gcc" "BUILD=release"
12131 (string-append "DATADIR="
12133 "/share/games/neverball/data")
12134 (string-append "LOCALEDIR=" out "/share/locale")
12135 (string-append "SDL_CPPFLAGS=-I"
12137 "/include/SDL2/")))
12139 (add-after 'install 'fix-some-broken-fonts
12140 (lambda* (#:key outputs #:allow-other-keys)
12141 (let* ((out (assoc-ref outputs "out")))
12142 (wrap-program (string-append out "/bin/neverball")
12143 `("LANG" = ("en_US.utf8")))
12144 (wrap-program (string-append out "/bin/neverputt")
12145 `("LANG" = ("en_US.utf8"))))
12148 `(("gettext" ,gettext-minimal))) ;for msgfmt
12150 `(("libjpeg" ,libjpeg-turbo)
12152 ("libvorbis" ,libvorbis)
12154 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12155 (home-page "https://neverball.org/")
12156 (synopsis "3D floor-tilting game")
12158 "In the grand tradition of Marble Madness and Super Monkey Ball,
12159 Neverball has you guide a rolling ball through dangerous territory. Balance
12160 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12161 and shovers to get to the goal. Race against the clock to collect coins to
12162 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12163 game.") ;thanks to Debian for description
12164 (license license:gpl2+))))
12166 (define-public pokerth
12173 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12174 version "/pokerth-" version ".tar.gz"))
12176 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12177 (modules '((guix build utils)))
12180 ;; Remove bundled websocketpp.
12181 (delete-file-recursively "src/third_party/websocketpp")
12182 (substitute* "pokerth_lib.pro"
12183 (("src/third_party/websocketpp")
12186 (build-system qt-build-system)
12191 ("libgcrypt" ,libgcrypt)
12192 ("libircclient" ,libircclient)
12193 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12195 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12197 ("tinyxml" ,tinyxml)
12198 ("websocketpp" ,websocketpp)
12201 `(#:tests? #f ; No test suite
12203 (modify-phases %standard-phases
12204 (add-after 'unpack 'fix-paths
12205 (lambda* (#:key inputs #:allow-other-keys)
12206 (substitute* (find-files "." "\\.pro$")
12208 (assoc-ref inputs "gsasl"))
12209 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12210 (string-append (assoc-ref inputs "libircclient")
12211 "/include/libircclient"))
12213 (string-append "LIB_DIRS = "
12214 (assoc-ref inputs "boost") "/lib")))
12216 (add-after 'unpack 'fix-build
12218 ;; Fixes for Boost versions >= 1.66.
12219 (substitute* '("src/net/common/clientthread.cpp"
12220 "src/net/serveraccepthelper.h")
12221 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12223 (("newSock->io_control\\(command\\);")
12224 "newSock->non_blocking(true);")
12225 (("acceptedSocket->io_control\\(command\\);")
12226 "acceptedSocket->non_blocking(true);"))
12228 (replace 'configure
12229 (lambda* (#:key outputs #:allow-other-keys)
12230 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12231 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12232 (home-page "https://www.pokerth.net")
12233 (synopsis "Texas holdem poker game")
12235 "With PokerTH you can play the Texas holdem poker game, either against
12236 computer opponents or against real players online.")
12237 (license license:agpl3+)))
12239 (define-public azimuth
12242 ;; Not marked as latest release, but it fixes a compiling issue
12243 ;; and adds the install target.
12248 (uri (git-reference
12249 (url "https://github.com/mdsteele/azimuth")
12250 (commit (string-append "v" version))))
12251 (file-name (git-file-name name version))
12254 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12255 (build-system gnu-build-system)
12257 `(#:test-target "test"
12259 (modify-phases %standard-phases
12260 (delete 'configure) ; no configure script
12261 ;; Build release version instead of debug version.
12262 (add-after 'unpack 'set-release
12264 (setenv "BUILDTYPE" "release") #t))
12265 (add-after 'unpack 'fix-install ; set install directory
12266 (lambda* (#:key outputs #:allow-other-keys)
12267 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12268 (inputs `(("sdl" ,sdl)))
12269 (home-page "https://mdsteele.games/azimuth/")
12270 (synopsis "Metroidvania game with vector graphics")
12272 "Pilot your ship inside a planet to find and rescue the colonists trapped
12273 inside the Zenith Colony.")
12274 (license license:gpl3+)))
12276 (define-public cgoban
12283 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12284 version "/cgoban-" version ".tar.gz"))
12286 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12287 (build-system gnu-build-system)
12289 `(("libx11" ,libx11)
12291 ("xorgproto" ,xorgproto)))
12292 (home-page "http://cgoban1.sourceforge.net/")
12293 (synopsis "Go client for X11")
12294 (description "Provides a large set of Go-related services for X11:
12296 @item Local games with precise implementation of the Chinese and Japanese rulesets
12297 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12298 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12301 (license license:gpl2+)))
12303 (define-public passage
12310 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12311 version "/Passage_v" version "_UnixSource.tar.gz"))
12313 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12314 (build-system gnu-build-system)
12316 `(#:tests? #false ; there are none
12318 (modify-phases %standard-phases
12319 (add-after 'unpack 'chdir
12321 (chdir "gamma256/gameSource")
12322 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12323 (replace 'configure
12324 (lambda* (#:key outputs inputs #:allow-other-keys)
12327 (assoc-ref inputs "sdl") "/include/SDL:"
12328 (or (getenv "CPATH") "")))
12329 (let* ((out (assoc-ref outputs "out"))
12330 (assets (string-append out "/share/passage")))
12331 (substitute* "common.cpp"
12332 (("readTGA\\( \"graphics\"")
12333 (format #false "readTGA(\"~a/graphics\"" assets)))
12334 (substitute* "musicPlayer.cpp"
12335 (("readTGA\\( \"music\"")
12336 (format #false "readTGA(\"~a/music\"" assets))))))
12338 (lambda* (#:key outputs #:allow-other-keys)
12339 (let* ((out (assoc-ref outputs "out"))
12340 (bin (string-append out "/bin"))
12341 (assets (string-append out "/share/passage/")))
12342 (install-file "Passage" bin)
12343 (install-file "../documentation/Readme.txt" assets)
12344 (copy-recursively "graphics" (string-append assets "graphics"))
12345 (copy-recursively "music" (string-append assets "music"))
12346 (copy-recursively "settings" (string-append assets "settings"))))))))
12348 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12350 `(("imagemagick" ,imagemagick)))
12351 (home-page "http://hcsoftware.sourceforge.net/passage/")
12352 (synopsis "Memento mori game")
12354 "Passage is meant to be a memento mori game. It presents an entire life,
12355 from young adulthood through old age and death, in the span of five minutes.
12356 Of course, it's a game, not a painting or a film, so the choices that you make
12357 as the player are crucial. There's no ``right'' way to play Passage, just as
12358 there's no right way to interpret it.")
12359 (license license:public-domain)))
12361 (define-public paperview
12362 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12366 (version (git-version "0.0.1" revision commit)) ;no upstream release
12369 (uri (git-reference
12370 (url "https://github.com/glouw/paperview")
12372 (file-name (git-file-name name version))
12375 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12376 (build-system gnu-build-system)
12380 '(#:tests? #f ;no tests
12382 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12384 (modify-phases %standard-phases
12385 (delete 'configure))))
12386 (home-page "https://github.com/glouw/paperview/")
12387 (synopsis "High performance X11 animated wallpaper setter")
12388 (description "High performance animated desktop background setter for
12389 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12391 (license license:unlicense))))
12393 (define-public curseofwar
12395 (name "curseofwar")
12400 (uri (git-reference
12401 (url "https://github.com/a-nikolaev/curseofwar")
12402 (commit (string-append "v" version))))
12403 (file-name (git-file-name name version))
12405 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12406 (build-system gnu-build-system)
12408 `(#:tests? #f ; no tests
12410 (list (string-append "CC=" ,(cc-for-target))
12411 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12413 (modify-phases %standard-phases
12414 (delete 'configure))))
12415 (inputs `(("ncurses" ,ncurses)))
12416 (home-page "https://a-nikolaev.github.io/curseofwar/")
12417 (synopsis "Fast-paced action strategy game")
12418 (description "Curse of War is a fast-paced action strategy game originally
12419 implemented using ncurses user interface. An SDL graphical version is also
12421 (license license:gpl3+)))