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 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 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>
61 ;;; This file is part of GNU Guix.
63 ;;; GNU Guix is free software; you can redistribute it and/or modify it
64 ;;; under the terms of the GNU General Public License as published by
65 ;;; the Free Software Foundation; either version 3 of the License, or (at
66 ;;; your option) any later version.
68 ;;; GNU Guix is distributed in the hope that it will be useful, but
69 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
70 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
71 ;;; GNU General Public License for more details.
73 ;;; You should have received a copy of the GNU General Public License
74 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
76 (define-module (gnu packages games)
77 #:use-module (ice-9 match)
78 #:use-module ((guix licenses) #:prefix license:)
79 #:use-module (guix utils)
80 #:use-module (guix packages)
81 #:use-module (guix download)
82 #:use-module (guix git-download)
83 #:use-module (guix svn-download)
84 #:use-module (guix gexp)
85 #:use-module (gnu packages)
86 #:use-module (gnu packages adns)
87 #:use-module (gnu packages algebra)
88 #:use-module (gnu packages autotools)
89 #:use-module (gnu packages backup)
90 #:use-module (gnu packages base)
91 #:use-module (gnu packages build-tools)
92 #:use-module (gnu packages admin)
93 #:use-module (gnu packages audio)
94 #:use-module (gnu packages avahi)
95 #:use-module (gnu packages assembly)
96 #:use-module (gnu packages bash)
97 #:use-module (gnu packages bison)
98 #:use-module (gnu packages boost)
99 #:use-module (gnu packages check)
100 #:use-module (gnu packages cmake)
101 #:use-module (gnu packages compression)
102 #:use-module (gnu packages cpp)
103 #:use-module (gnu packages curl)
104 #:use-module (gnu packages crypto)
105 #:use-module (gnu packages cyrus-sasl)
106 #:use-module (gnu packages documentation)
107 #:use-module (gnu packages docbook)
108 #:use-module (gnu packages emulators)
109 #:use-module (gnu packages flex)
110 #:use-module (gnu packages fltk)
111 #:use-module (gnu packages fonts)
112 #:use-module (gnu packages fontutils)
113 #:use-module (gnu packages freedesktop)
114 #:use-module (gnu packages fribidi)
115 #:use-module (gnu packages game-development)
116 #:use-module (gnu packages gcc)
117 #:use-module (gnu packages gettext)
118 #:use-module (gnu packages ghostscript)
119 #:use-module (gnu packages gimp)
120 #:use-module (gnu packages gl)
121 #:use-module (gnu packages glib)
122 #:use-module (gnu packages gnome)
123 #:use-module (gnu packages gnu-doc)
124 #:use-module (gnu packages gnupg)
125 #:use-module (gnu packages gnuzilla)
126 #:use-module (gnu packages gperf)
127 #:use-module (gnu packages graphics)
128 #:use-module (gnu packages gsasl)
129 #:use-module (gnu packages gstreamer)
130 #:use-module (gnu packages gtk)
131 #:use-module (gnu packages guile)
132 #:use-module (gnu packages haskell)
133 #:use-module (gnu packages haskell-crypto)
134 #:use-module (gnu packages haskell-xyz)
135 #:use-module (gnu packages icu4c)
136 #:use-module (gnu packages image)
137 #:use-module (gnu packages imagemagick)
138 #:use-module (gnu packages javascript)
139 #:use-module (gnu packages kde)
140 #:use-module (gnu packages kde-frameworks)
141 #:use-module (gnu packages less)
142 #:use-module (gnu packages libcanberra)
143 #:use-module (gnu packages libedit)
144 #:use-module (gnu packages libunwind)
145 #:use-module (gnu packages linux)
146 #:use-module (gnu packages llvm)
147 #:use-module (gnu packages lua)
148 #:use-module (gnu packages man)
149 #:use-module (gnu packages maths)
150 #:use-module (gnu packages messaging)
151 #:use-module (gnu packages mp3)
152 #:use-module (gnu packages music)
153 #:use-module (gnu packages multiprecision)
154 #:use-module (gnu packages ncurses)
155 #:use-module (gnu packages netpbm)
156 #:use-module (gnu packages networking)
157 #:use-module (gnu packages ocaml)
158 #:use-module (gnu packages opencl)
159 #:use-module (gnu packages pcre)
160 #:use-module (gnu packages perl)
161 #:use-module (gnu packages perl-check)
162 #:use-module (gnu packages perl-compression)
163 #:use-module (gnu packages pkg-config)
164 #:use-module (gnu packages protobuf)
165 #:use-module (gnu packages pulseaudio)
166 #:use-module (gnu packages python)
167 #:use-module (gnu packages python-xyz)
168 #:use-module (gnu packages qt)
169 #:use-module (gnu packages readline)
170 #:use-module (gnu packages ruby)
171 #:use-module (gnu packages shells)
172 #:use-module (gnu packages sdl)
173 #:use-module (gnu packages serialization)
174 #:use-module (gnu packages sqlite)
175 #:use-module (gnu packages squirrel)
176 #:use-module (gnu packages swig)
177 #:use-module (gnu packages tcl)
178 #:use-module (gnu packages terminals)
179 #:use-module (gnu packages texinfo)
180 #:use-module (gnu packages textutils)
181 #:use-module (gnu packages tls)
182 #:use-module (gnu packages upnp)
183 #:use-module (gnu packages video)
184 #:use-module (gnu packages vulkan)
185 #:use-module (gnu packages web)
186 #:use-module (gnu packages wget)
187 #:use-module (gnu packages wxwidgets)
188 #:use-module (gnu packages xdisorg)
189 #:use-module (gnu packages xorg)
190 #:use-module (gnu packages xiph)
191 #:use-module (gnu packages xml)
192 #:use-module (guix build-system copy)
193 #:use-module (guix build-system cmake)
194 #:use-module (guix build-system glib-or-gtk)
195 #:use-module (guix build-system gnu)
196 #:use-module (guix build-system go)
197 #:use-module (guix build-system meson)
198 #:use-module (guix build-system perl)
199 #:use-module (guix build-system python)
200 #:use-module (guix build-system qt)
201 #:use-module (guix build-system scons)
202 #:use-module (guix build-system trivial)
203 #:use-module ((srfi srfi-1) #:hide (zip))
204 #:use-module (srfi srfi-26))
213 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
214 "/abe-" version ".tar.gz"))
216 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
217 (build-system gnu-build-system)
220 (list (string-append "--with-data-dir="
221 (assoc-ref %outputs "out")
224 (modify-phases %standard-phases
226 (lambda _ (invoke "sh" "autogen.sh")))
227 (add-before 'build 'set-SDL
228 ;; Set correct environment for SDL.
229 (lambda* (#:key inputs #:allow-other-keys)
232 (assoc-ref inputs "sdl") "/include/SDL:"
233 (or (getenv "CPATH") "")))
235 (add-after 'install 'finalize-install
236 (lambda* (#:key outputs #:allow-other-keys)
237 (let ((share (string-append (assoc-ref outputs "out") "/share")))
238 ;; Installation script does not copy game data files.
239 (let ((data (string-append share "/abe")))
240 (for-each (lambda (dir)
241 (let ((target (string-append data "/" dir)))
243 (copy-recursively dir target)))
244 '("images" "maps" "sounds")))
245 ;; Create desktop file.
246 (let ((apps (string-append share "/applications")))
248 (make-desktop-entry-file
249 (string-append apps "/abe.desktop")
250 #:name "Abe's Amazing Adventure"
252 #:categories '("AdventureGame" "Game")
254 '("side-scrolling" "adventure" "pyramid" "singleplayer")
256 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
257 (#f "Side-scrolling game")))))
260 `(("autoconf" ,autoconf)
261 ("automake" ,automake)))
266 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
267 (home-page "http://abe.sourceforge.net")
268 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
270 "Abe's Amazing Adventure is a scrolling,
271 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
272 the style of similar games for the Commodore+4.")
273 (license license:gpl2+)))
275 ;; Data package for adanaxisgpl.
276 (define adanaxis-mush
277 (let ((version "1.1.0"))
280 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
283 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
285 (define-public adanaxisgpl
292 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
295 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
296 (modules '((guix build utils)))
299 ;; Necessary for building with gcc >=4.7.
300 (substitute* "src/Mushcore/MushcoreSingleton.h"
301 (("SingletonPtrSet\\(new SingletonType\\);")
302 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
303 ;; Avoid an "invalid conversion from const char* to char*" error.
304 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
305 (("char \\*end, \\*result;")
306 (string-append "const char *end;"
310 (build-system gnu-build-system)
312 `(#:tests? #f ; no check target
314 (modify-phases %standard-phases
315 (add-after 'install 'install-data
316 (lambda* (#:key inputs outputs #:allow-other-keys)
317 (let ((data (assoc-ref inputs "adanaxis-mush"))
318 (share (string-append (assoc-ref outputs "out")
319 "/share/" ,name "-" ,version)))
321 (invoke "tar" "xvf" data "-C" share)))))))
323 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
326 ("freeglut" ,freeglut)
328 ("libjpeg" ,libjpeg-turbo)
331 ("libvorbis" ,libvorbis)
336 ("sdl-mixer" ,sdl-mixer)))
337 (home-page "https://www.mushware.com")
338 (synopsis "Action game in four spatial dimensions")
340 "Adanaxis is a fast-moving first person shooter set in deep space, where
341 the fundamentals of space itself are changed. By adding another dimension to
342 space this game provides an environment with movement in four directions and
343 six planes of rotation. Initially the game explains the 4D control system via
344 a graphical sequence, before moving on to 30 levels of gameplay with numerous
345 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
346 mouse and joystick control, and original music.")
347 (license license:gpl2)))
357 (url "https://github.com/carstene1ns/alex4")
359 (file-name (git-file-name name version))
361 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
362 (build-system gnu-build-system)
364 `(#:tests? #f ; no check target
367 "CFLAGS=-D_FILE_OFFSET_BITS=64"
368 (string-append "PREFIX=" (assoc-ref %outputs "out")))
370 (modify-phases %standard-phases
371 (delete 'configure) ; no configure script
372 (add-after 'install 'install-data
373 (lambda* (#:key outputs #:allow-other-keys)
374 (let ((share (string-append (assoc-ref outputs "out")
376 (install-file "alex4.ini" share)
379 `(("allegro" ,allegro-4)
380 ("dumb" ,dumb-allegro4)))
381 (home-page "http://allegator.sourceforge.net/")
382 (synopsis "Retro platform game")
384 "Guide Alex the Allegator through the jungle in order to save his
385 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
386 Plenty of classic platforming in four nice colors guaranteed!
388 The game includes a built-in editor so you can design and share your own maps.")
389 (license license:gpl2+)))
391 (define-public armagetronad
393 (name "armagetronad")
394 (version "0.2.9.0.1")
397 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
398 version "/armagetronad-" version ".tbz"))
401 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
402 (build-system gnu-build-system)
404 `(("pkg-config" ,pkg-config)))
406 `(("libxml2" ,libxml2)
408 ("sdl-image" ,sdl-image)
409 ("freeglut" ,freeglut)
411 ("libjpeg-turbo" ,libjpeg-turbo)))
412 (home-page "http://www.armagetronad.org")
413 (synopsis "Tron clone in 3D")
414 (description "Armagetron Advanced is a multiplayer game in 3d that
415 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
416 It's an old school arcade game slung into the 21st century. Highlights
417 include a customizable playing arena, HUD, unique graphics, and AI bots. For
418 the more advanced player there are new game modes and a wide variety of
419 physics settings to tweak as well.")
420 (license license:gpl2+)))
422 (define-public astromenace
430 (url "https://github.com/viewizard/astromenace")
431 (commit (string-append "v" version))))
432 (file-name (git-file-name name version))
434 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
435 (build-system cmake-build-system)
437 `(#:tests? #f ;no test
438 #:configure-flags (list (string-append "-DDATADIR="
439 (assoc-ref %outputs "out")
440 "/share/astromenace"))
442 (modify-phases %standard-phases
444 ;; Upstream provides no install phase.
445 (lambda* (#:key inputs outputs #:allow-other-keys)
446 (let* ((out (assoc-ref outputs "out"))
447 (bin (string-append out "/bin"))
448 (share (string-append out "/share"))
449 (apps (string-append share "/applications"))
450 (data (string-append share "/astromenace"))
451 (icons (string-append share "/icons/hicolor/64x64/apps")))
452 (install-file "astromenace" bin)
453 (install-file "gamedata.vfs" data)
454 (let ((source (assoc-ref inputs "source")))
455 (with-directory-excursion (string-append source "/share")
456 (install-file "astromenace.desktop" apps)
458 (copy-file "astromenace_64.png"
459 (string-append icons "/astromenace.png")))))
462 `(("freealut" ,freealut)
463 ("freetype" ,freetype)
466 ("libvorbis" ,libvorbis)
469 (home-page "https://www.viewizard.com/")
470 (synopsis "3D space shooter with spaceship upgrade possibilities")
472 "Space is a vast area, an unbounded territory where it seems there is
473 a room for everybody, but reversal of fortune put things differently. The
474 hordes of hostile creatures crawled out from the dark corners of the universe,
475 craving to conquer your homeland. Their force is compelling, their legions
476 are interminable. However, humans didn't give up without a final showdown and
477 put their best pilot to fight back. These malicious invaders chose the wrong
478 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
479 regret their insolence.")
480 ;; Game is released under GPL3+ terms. Artwork is subject to CC
481 ;; BY-SA 4.0, and fonts to OFL1.1.
482 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
484 (define-public bastet
492 (url "https://github.com/fph/bastet")
494 (file-name (git-file-name name version))
496 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
498 (search-patches "bastet-change-source-of-unordered_set.patch"))))
499 (build-system gnu-build-system)
502 (list (string-append "CXXFLAGS=-I"
503 (assoc-ref %build-inputs "boost") "/include"))
505 (modify-phases %standard-phases
506 (delete 'configure) ; no configure script
508 ;; The 'Test' target builds the tests, but doesn't actually run them.
509 (lambda* (#:key make-flags #:allow-other-keys)
510 (apply invoke "make" "Test" make-flags)
514 (lambda* (#:key outputs #:allow-other-keys)
515 (let* ((out (assoc-ref outputs "out"))
516 (share (string-append out "/share"))
517 (hicolor (string-append share "/icons/hicolor")))
518 (install-file "bastet"
519 (string-append out "/bin"))
521 (install-file "bastet.desktop"
522 (string-append share "/applications"))
523 (install-file "bastet.svg"
524 (string-append hicolor "/scalable/apps"))
526 (install-file "bastet.appdata.xml"
527 (string-append share "/appdata"))
529 (install-file "bastet.6"
530 (string-append out "/share/man/man6"))
533 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
536 ("ncurses" ,ncurses)))
537 (home-page "https://fph.altervista.org/prog/bastet.html")
538 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
540 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
541 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
542 Instead, it uses a special algorithm to choose the worst brick possible.
544 Playing bastet can be a painful experience, especially if you usually make
545 canyons and wait for the long I-shaped block to clear four rows at a time.")
546 (license license:gpl3+)))
548 (define-public blobwars
555 (uri (string-append "mirror://sourceforge/blobwars/"
556 "blobwars-" version ".tar.gz"))
558 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
559 (build-system gnu-build-system)
561 `(#:tests? #f ;no test
563 (let ((out (assoc-ref %outputs "out")))
564 (list (string-append "PREFIX=" out)
565 (string-append "BINDIR=" out "/bin/")
569 (modify-phases %standard-phases
570 (add-after 'unpack 'werror-begone
572 (substitute* "Makefile" (("-Werror") ""))
574 (delete 'configure)))) ;no configure script
576 `(("gettext" ,gettext-minimal)
577 ("pkg-config" ,pkg-config)))
579 `(("hicolor-icon-theme" ,hicolor-icon-theme)
580 ("sdl" ,(sdl-union (list sdl2
585 (home-page "https://sourceforge.net/projects/blobwars/")
586 (synopsis "Platform action game featuring a blob with a lot of weapons")
587 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
588 in the Blobwars series. You take on the role of a fearless Blob agent. Your
589 mission is to infiltrate various enemy bases and rescue as many MIAs as
590 possible, while battling many vicious aliens.")
591 (license (list license:gpl2 ; For code and graphics
592 license:cc0 ; Music and sounds have specific licenses
593 license:cc-by3.0 ; see /doc/readme
598 (define-public bsd-games
605 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
607 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
610 ;; thanks Arch, and Debian
611 "bsd-games-2.17-64bit.patch"
612 "bsd-games-bad-ntohl-cast.patch"
613 "bsd-games-gamescreen.h.patch"
614 "bsd-games-getline.patch"
615 "bsd-games-null-check.patch"
616 "bsd-games-number.c-and-test.patch"
617 "bsd-games-stdio.h.patch"
618 "bsd-games-prevent-name-collisions.patch"
619 ;; Guix customizations
620 "bsd-games-add-configure-config.patch"
621 "bsd-games-dont-install-empty-files.patch"
622 "bsd-games-add-wrapper.patch"))))
623 (build-system gnu-build-system)
628 `(("curses" ,ncurses)
630 ("miscfiles" ,miscfiles)
631 ("openssl" ,openssl))) ;used only by 'factor'
634 (modify-phases %standard-phases
636 (lambda* (#:key outputs inputs #:allow-other-keys)
637 (let* ((out (assoc-ref outputs "out"))
638 (bin (string-append out "/bin"))
639 (doc (string-append out "/share/doc/bsd-games-" ,version))
640 (man (string-append out "/share/man"))
641 (word-list (string-append (assoc-ref inputs "miscfiles")
643 (static-data (string-append out "/share/games/bsd-games"))
644 ;; Not a "./" because of substitute* in 'patch-install
645 ;; below. The .// allow us not to mess with the games'
646 ;; code any further: we just use a wrapper script that
647 ;; cd's to a BSD_GAMES_DIR. :]
649 (substitute* "configure"
650 (("/usr/share/man") man)
651 (("/usr/share/doc/bsd-games") doc)
652 (("/usr/share/[^\n/]*") static-data)
653 (("/var/games") save-files)
654 (("/usr/bin/less") (which "less"))
655 (("(/usr/bin|/usr/games)") bin))
656 (substitute* "config.params" (("WORD_LIST") word-list))
657 (substitute* "wrapper" (("STATIC_DATA") static-data))
658 (invoke "./configure"))
660 (add-before 'install 'patch-install
661 ;; Some games need a writable directory containing pre-maded files.
662 ;; The files get installed to the Store. Then the wrapper kicks in.
663 (lambda* (#:key outputs #:allow-other-keys)
664 (let* ((out (assoc-ref outputs "out"))
665 (static-data (string-append out "/share/games/bsd-games"))
667 (substitute* "Makeconfig" ((save-files) static-data)))
669 (add-after 'install 'install-documents
670 (lambda* (#:key outputs #:allow-other-keys)
671 (let* ((out (assoc-ref outputs "out"))
672 (doc (string-append out "/share/doc/bsd-games-" ,version)))
673 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
675 (lambda(file) (install-file file doc))
676 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
677 "phantasia-COPYRIGHT")))
679 (home-page "https://github.com/vattam/BSDGames")
680 (synopsis "Collection of the old text-based games and amusements")
682 "These are the BSD games. See the fortune-mod package for fortunes.
684 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
685 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
686 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
687 the $$ from the cave, anger the snake, and get out alive), tetris (game of
688 lining up the falling bricks of different shapes), and worm (eat, grow big,
689 and neither bite your tail, nor ram the wall).
691 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
692 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
693 the input), factor (factorizes a number), number (translates numbers into
694 text), pig (translates from English to Pig Latin), pom (should print the
695 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
696 in terminal), random (prints randomly chosen lines from files, or returns a
697 random exit-code), and wtf (explains what do some acronyms mean).
699 Board: backgammon (lead the men out of board faster than the friend do),
700 boggle (find the words in the square of letters), dab (game of dots and
701 boxes), gomoku (game of five in a row), hangman (guess a word before man is
702 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
703 canfield, cribbage, fish (juniors game), and mille.
705 Quests: adventure (search for treasures with the help of wizard),
706 battlestar (explore the world around, starting from dying spaceship),
707 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
708 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
710 Quizes: arithmetic, and quiz.")
711 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
712 ;; not bearing copyright notices, probably fall under the terms of the UCB
713 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
714 ;; warning in regard to the fortune databases."
716 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
717 ;; lib/strlcpy.c, wargames/wargames.6
719 ;; dab and hunt. Files: adventure/extern.h,
720 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
721 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
722 ;; hack/extern.h, robots/auto.c, sail/display.h,
723 ;; sail/restart.h, wargames/wargames
726 license:public-domain
727 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
728 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
731 (define-public bzflag
738 (uri (string-append "https://download.bzflag.org/bzflag/source/"
739 version "/bzflag-" version ".tar.bz2"))
741 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
742 (build-system gnu-build-system)
745 (modify-phases %standard-phases
746 (add-after 'install 'install-desktop-file-and-icons
747 (lambda* (#:key outputs #:allow-other-keys)
748 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
749 (data (string-append share "/bzflag"))
750 (hicolor (string-append share "/icons/hicolor"))
751 (applications (string-append share "/applications")))
752 ;; Move desktop file.
753 (install-file (string-append data "/bzflag.desktop")
756 (for-each (lambda (size)
757 (let* ((dim (string-append size "x" size))
758 (dir (string-append hicolor "/" dim "/apps")))
761 (string-append data "/bzflag-" dim ".png")
762 (string-append dir "/bzflag.png"))))
766 `(("pkg-config" ,pkg-config)))
774 (home-page "https://www.bzflag.org/")
775 (synopsis "3D first person tank battle game")
777 "BZFlag is a 3D multi-player multiplatform tank battle game that
778 allows users to play against each other in a network environment.
779 There are five teams: red, green, blue, purple and rogue (rogue tanks
780 are black). Destroying a player on another team scores a win, while
781 being destroyed or destroying a teammate scores a loss. Rogues have
782 no teammates (not even other rogues), so they cannot shoot teammates
783 and they do not have a team score.
785 There are two main styles of play: capture-the-flag and free-for-all.
786 In capture-the-flag, each team (except rogues) has a team base and
787 each team with at least one player has a team flag. The object is to
788 capture an enemy team's flag by bringing it to your team's base. This
789 destroys every player on the captured team, subtracts one from that
790 team's score, and adds one to your team's score. In free-for-all,
791 there are no team flags or team bases. The object is simply to get as
792 high a score as possible.")
793 ;; The game is dual-licensed.
794 (license (list license:lgpl2.1 license:mpl2.0))))
796 (define-public cataclysm-dda
798 (name "cataclysm-dda")
804 (url "https://github.com/CleverRaven/Cataclysm-DDA")
807 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
808 (file-name (git-file-name name version))))
809 (build-system gnu-build-system)
812 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
813 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
814 "LOCALIZE=1" "LANGUAGES=all")
816 (modify-phases %standard-phases
818 (add-after 'build 'build-tiles
819 (lambda* (#:key make-flags outputs #:allow-other-keys)
820 ;; Change prefix directory and enable tile graphics and sound.
821 (apply invoke "make" "TILES=1" "SOUND=1"
822 (string-append "PREFIX="
823 (assoc-ref outputs "tiles"))
825 (add-after 'install 'install-tiles
826 (lambda* (#:key make-flags outputs #:allow-other-keys)
827 (apply invoke "make" "install" "TILES=1" "SOUND=1"
828 (string-append "PREFIX="
829 (assoc-ref outputs "tiles"))
831 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
832 ;; input in order to support tests.
835 "tiles")) ;for tile graphics and sound support
837 `(("gettext" ,gettext-minimal)
838 ("pkg-config" ,pkg-config)))
840 `(("freetype" ,freetype)
842 ("libvorbis" ,libvorbis)
845 ("sdl2-image" ,sdl2-image)
846 ("sdl2-ttf" ,sdl2-ttf)
847 ("sdl2-mixer" ,sdl2-mixer)))
848 (home-page "https://cataclysmdda.org/")
849 (synopsis "Survival horror roguelike video game")
851 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
852 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
853 procedurally generated world. Scavenge the remnants of a dead civilization
854 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
855 to get you out of Dodge. Fight to defeat or escape from a wide variety of
856 powerful monstrosities, from zombies to giant insects to killer robots and
857 things far stranger and deadlier, and against the others like yourself, that
858 want what you have.")
859 (license license:cc-by-sa3.0)))
861 (define-public corsix-th
869 (url "https://github.com/CorsixTH/CorsixTH")
870 (commit (string-append "v" version))))
871 (file-name (git-file-name name version))
873 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
874 (build-system cmake-build-system)
877 (modify-phases %standard-phases
878 (add-after 'install 'wrap-binary
880 ;; Set Lua module paths and default MIDI soundfont on startup.
881 (let* ((out (assoc-ref %outputs "out"))
882 (fluid (assoc-ref %build-inputs "fluid-3"))
883 (lua-version ,(version-major+minor (package-version lua)))
887 (assoc-ref %build-inputs (string-append "lua-" lib))
888 "/lib/lua/" lua-version "/?.so"))
889 '("filesystem" "lpeg"))))
890 (wrap-program (string-append out "/bin/corsix-th")
891 `("LUA_CPATH" ";" = ,lua-cpath)
892 `("SDL_SOUNDFONTS" ":" suffix
893 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
895 #:tests? #f)) ; TODO need busted package to run tests
896 ;; Omit Lua-Socket dependency to disable automatic updates.
900 ("freetype" ,freetype)
902 ("lua-filesystem" ,lua-filesystem)
903 ("lua-lpeg" ,lua-lpeg)
905 ("sdl2-mixer" ,sdl2-mixer)))
906 (home-page "https://corsixth.com")
907 (synopsis "Implementation of the @i{Theme Hospital} game engine")
909 "This package provides a reimplementation of the 1997 Bullfrog business
910 simulation game @i{Theme Hospital}. As well as faithfully recreating the
911 original engine, CorsixTH adds support for high resolutions, custom levels and
912 more. This package does @emph{not} provide the game assets.")
914 license:expat ; main license
915 license:bsd-3)))) ; CorsixTH/Src/random.c
917 (define-public cowsay
924 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
925 (commit (string-append name "-" version))))
926 (file-name (git-file-name name version))
929 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
930 (build-system gnu-build-system)
933 (modify-phases %standard-phases
934 (delete 'configure) ; no configure script
935 (delete 'build) ; nothing to be built
937 (lambda* (#:key outputs #:allow-other-keys)
938 (invoke "sh" "install.sh"
939 (assoc-ref outputs "out"))))
941 (add-after 'install 'check
942 (lambda* (#:key outputs #:allow-other-keys)
943 (invoke (string-append (assoc-ref outputs "out")
948 (home-page (string-append "https://web.archive.org/web/20071026043648/"
949 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
950 (synopsis "Speaking cow text filter")
951 (description "Cowsay is basically a text filter. Send some text into it,
952 and you get a cow saying your text. If you think a talking cow isn't enough,
953 cows can think too: all you have to do is run @command{cowthink}. If you're
954 tired of cows, a variety of other ASCII-art messengers are available.")
955 (license license:gpl3+)))
957 (define-public lolcat
958 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
962 (version (git-version "1.0" revision commit))
967 (url "https://github.com/jaseg/lolcat")
971 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
972 (file-name (git-file-name name version))))
973 (build-system gnu-build-system)
975 `(#:tests? #f ; no check target
977 (list ,(string-append "CC=" (cc-for-target)))
979 (modify-phases %standard-phases
983 (lambda* (#:key outputs #:allow-other-keys)
984 (let* ((out (assoc-ref outputs "out"))
985 (dest (string-append out "/bin")))
987 (install-file "lolcat" dest)
988 (install-file "censor" dest)
990 (home-page "https://github.com/jaseg/lolcat")
991 (synopsis "Rainbow coloring effect for text console display")
992 (description "@command{lolcat} concatenates files and streams like
993 regular @command{cat}, but it also adds terminal escape codes between
994 characters and lines resulting in a rainbow effect.")
995 (license license:wtfpl2))))
997 (define-public foobillard++
998 ;; Even though this latest revision is old already, stable release is
999 ;; lagging way behind it, and has issues with textures rendering.
1000 (let ((svn-revision 170))
1002 (name "foobillard++")
1003 (version (string-append "3.43-r" (number->string svn-revision)))
1008 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1009 (revision svn-revision)))
1010 (file-name (git-file-name name version))
1012 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1014 (search-patches "foobillard++-pkg-config.patch"))
1015 (modules '((guix build utils)))
1018 ;; Unfortunately, the game includes background music with
1019 ;; a non-commercial clause. Delete it.
1020 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1022 (build-system gnu-build-system)
1026 ;; Install data in a less exotic location.
1027 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1028 ;; Prevent a build error about undefined trigonometric functions.
1029 "--enable-fastmath=no")
1031 (modify-phases %standard-phases
1032 (add-after 'unpack 'fix-makefile
1033 ;; Remove hard-coded directories. Also fix installation
1034 ;; rule: it tries to move around non-existent files or
1035 ;; files already moved.
1036 (lambda* (#:key outputs #:allow-other-keys)
1037 (substitute* "Makefile.am"
1038 (("/usr") (assoc-ref outputs "out"))
1039 (("cp .*?/foobillardplus\\.desktop.*") "")
1040 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1043 (add-after 'unpack 'unbundle-font
1044 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1045 ;; LinBiolinum_aS.ttf, which are not provided by
1046 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1048 (lambda* (#:key inputs #:allow-other-keys)
1049 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1050 "/share/fonts/truetype/")))
1051 (with-directory-excursion "data"
1052 (for-each (lambda (f)
1054 (symlink (string-append dejavu f) f))
1055 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1059 (invoke "aclocal" "--force")
1060 (invoke "autoconf" "-f")
1061 (invoke "autoheader" "-f")
1062 (invoke "automake" "-a" "-c" "-f")))
1063 (add-before 'build 'prepare-build
1064 ;; Set correct environment for SDL.
1065 (lambda* (#:key inputs #:allow-other-keys)
1067 (string-append (assoc-ref inputs "sdl")
1069 (or (getenv "CPATH") "")))
1071 (add-before 'build 'fix-settings-directory
1072 ;; Hide foobillardplus settings directory in $HOME.
1074 (substitute* "src/history.c"
1075 (("/foobillardplus-data") "/.foobillardplus"))
1077 (add-before 'install 'create-directories
1078 ;; Install process does not create directories before
1079 ;; trying to move file in it.
1080 (lambda* (#:key outputs #:allow-other-keys)
1081 (let ((out (assoc-ref outputs "out")))
1082 (mkdir-p (string-append out "/share/icons"))
1083 (mkdir-p (string-append out "/share/applications")))
1085 (add-after 'install 'symlink-executable
1086 ;; Symlink executable to $out/bin.
1087 (lambda* (#:key outputs #:allow-other-keys)
1088 (let* ((out (assoc-ref outputs "out"))
1089 (bin (string-append out "/bin")))
1091 (with-directory-excursion bin
1092 (symlink "../share/foobillardplus/bin/foobillardplus"
1096 `(("autoconf" ,autoconf)
1097 ("automake" ,automake)
1098 ("pkg-config" ,pkg-config)))
1100 `(("font-dejavu" ,font-dejavu)
1101 ("freetype" ,freetype)
1104 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1105 (home-page "http://foobillardplus.sourceforge.net/")
1106 (synopsis "3D billiard game")
1107 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1108 based on the original foobillard 3.0a sources from Florian Berger.
1109 You can play it with one or two players or against the computer.
1114 @item Wood paneled table with gold covers and gold diamonds.
1115 @item Reflections on balls.
1116 @item Zoom in and out, rotation, different angles and bird's eye view.
1117 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1118 @item Tournaments. Compete against other players.
1119 @item Animated cue with strength and eccentric hit adjustment.
1120 @item Jump shots and snipping.
1121 @item Realistic gameplay and billiard sounds.
1122 @item Red-Green stereo.
1123 @item And much more.
1125 (license (list license:gpl2 license:silofl1.1)))))
1127 (define-public freedoom
1135 (url "https://github.com/freedoom/freedoom")
1136 (commit (string-append "v" version))))
1137 (file-name (git-file-name name version))
1139 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1140 (build-system gnu-build-system)
1143 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1144 #:tests? #f ; no check target
1146 (modify-phases %standard-phases
1149 (lambda* (#:key inputs outputs #:allow-other-keys)
1150 (let* ((freedoom (assoc-ref outputs "out"))
1151 (wad-dir (string-append freedoom "/share/games/doom")))
1152 ;; Make sure that the install scripts know where to find
1153 ;; the appropriate WAD files.
1154 (substitute* "dist/freedoom"
1155 (("IWAD=freedm.wad")
1156 (string-append "IWAD=" wad-dir "/freedm.wad"))
1157 (("IWAD=freedoom1.wad")
1158 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1159 (("IWAD=freedoom2.wad")
1160 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1163 `(("asciidoc" ,asciidoc)
1166 ("python-pillow" ,python-pillow)))
1167 (home-page "https://freedoom.github.io/")
1168 (synopsis "Free content game based on the Doom engine")
1169 (native-search-paths
1170 (list (search-path-specification
1171 (variable "DOOMWADDIR")
1172 (files '("share/games/doom")))
1173 (search-path-specification
1174 (variable "DOOMWADPATH")
1175 (files '("share/games/doom")))))
1177 "The Freedoom project aims to create a complete free content first person
1178 shooter game. Freedoom by itself is just the raw material for a game: it must
1179 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1180 played. Freedoom complements the Doom engine with free levels, artwork, sound
1181 effects and music to make a completely free game.")
1182 (license license:bsd-3)))
1184 (define-public freedroidrpg
1186 (name "freedroidrpg")
1191 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1192 "freedroidRPG-" (version-major+minor version) "/"
1193 "freedroidRPG-" version ".tar.gz"))
1195 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1196 (build-system gnu-build-system)
1200 (string-append "CFLAGS="
1201 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1202 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1203 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1205 ;; FIXME: the test suite fails with the following error output:
1206 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1207 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1210 `(("pkg-config" ,pkg-config)))
1213 ("libjpeg" ,libjpeg-turbo)
1216 ("libvorbis" ,libvorbis)
1218 ("python" ,python-wrapper)
1220 ("sdl-gfx" ,sdl-gfx)
1221 ("sdl-image" ,sdl-image)
1222 ("sdl-mixer" ,sdl-mixer)
1224 (home-page "https://www.freedroid.org/")
1225 (synopsis "Isometric role-playing game against killer robots")
1227 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1228 The game tells the story of a world destroyed by a conflict between robots and
1229 their human masters. To restore peace to humankind, the player must complete
1230 numerous quests while fighting off rebelling robots---either by taking control
1231 of them, or by simply blasting them to pieces with melee and ranged weapons in
1233 (license (list license:expat ; lua/
1234 license:gpl3 ; src/gen_savestruct.py
1235 license:gpl2+)))) ; the rest
1237 (define-public golly
1243 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1244 version "/golly-" version
1248 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1249 (build-system gnu-build-system)
1251 '(#:make-flags (list "CC=gcc"
1252 (string-append "GOLLYDIR="
1253 (assoc-ref %outputs "out")
1255 #:tests? #f ; no check target
1257 (modify-phases %standard-phases
1259 (lambda* (#:key inputs #:allow-other-keys)
1260 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1261 ;; properly set the path to the Python shared library. This
1262 ;; substitution acheives the same end by different means.
1263 (substitute* "gui-wx/wxprefs.cpp"
1264 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1265 (string-append "pythonlib = \""
1266 (assoc-ref inputs "python")
1267 "/lib/libpython-2.7.so\"")))
1270 (lambda* (#:key make-flags outputs #:allow-other-keys)
1271 (with-directory-excursion "gui-wx"
1272 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1274 (lambda* (#:key outputs #:allow-other-keys)
1275 (let* ((out (assoc-ref outputs "out"))
1276 (bin (string-append out "/bin"))
1277 (doc (string-append out "/share/doc/golly"))
1278 (pixmaps (string-append out "/share/pixmaps"))
1279 (share (string-append out "/share/golly")))
1280 (for-each (lambda (binary)
1281 (install-file binary bin))
1282 '("bgolly" "golly"))
1283 (for-each (lambda (document)
1285 (string-append "docs/" document ".html")
1287 '("License" "ReadMe" "ToDo"))
1288 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1289 (for-each (lambda (folder)
1292 (string-append share "/" folder)))
1293 '("Help" "Patterns" "Rules" "Scripts")))
1300 ("python" ,python-2)
1301 ("wxwidgets" ,wxwidgets-gtk2)
1303 (home-page "http://golly.sourceforge.net/")
1304 (synopsis "Software for exploring cellular automata")
1306 "Golly simulates Conway's Game of Life and many other types of cellular
1307 automata. The following features are available:
1309 @item Support for bounded and unbounded universes, with cells of up to 256
1311 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1313 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1314 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1315 @item Scriptable via Lua or Python.
1316 @item Extracting patterns, rules and scripts from zip files.
1317 @item Downloading patterns, rules and scripts from online archives.
1318 @item Pasting patterns from the clipboard.
1319 @item Unlimited undo/redo.
1320 @item Configurable keyboard shortcuts.
1321 @item Auto fit option to keep patterns within the view.
1323 (license license:gpl2+)))
1325 (define-public julius
1333 (url "https://github.com/bvschaik/julius")
1334 (commit (string-append "v" version))))
1335 (file-name (git-file-name name version))
1337 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1338 ;; Remove unused bundled libraries.
1339 (modules '((guix build utils)))
1342 (with-directory-excursion "ext"
1343 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1345 (build-system cmake-build-system)
1347 `(("libpng" ,libpng)
1349 ("sdl2-mixer" ,sdl2-mixer)))
1350 (home-page "https://github.com/bvschaik/julius")
1351 (synopsis "Re-implementation of Caesar III game engine")
1353 "Engine for Caesar III, a city-building real-time strategy game.
1354 Julius includes some UI enhancements while preserving the logic (including
1355 bugs) of the original game, so that saved games are compatible. This package
1356 does not include game data.")
1357 (license (list license:agpl3
1358 license:zlib)))) ; ext/tinyfiledialogs
1360 (define-public augustus
1369 (url "https://github.com/Keriew/augustus")
1370 (commit (string-append "v" version))))
1371 (file-name (git-file-name name version))
1373 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1374 ;; Remove unused bundled libraries.
1375 (modules '((guix build utils)))
1378 (with-directory-excursion "ext"
1379 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1382 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1384 (home-page "https://github.com/Keriew/augustus")
1385 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1387 "Fork of Julius, an engine for the a city-building real-time strategy
1388 game Caesar III. Gameplay enhancements include:
1392 @item market special orders;
1393 @item global labour pool;
1394 @item partial warehouse storage;
1395 @item increased game limits;
1396 @item zoom controls.
1399 (define-public meandmyshadow
1401 (name "meandmyshadow")
1405 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1406 version "/meandmyshadow-" version
1410 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1411 (build-system cmake-build-system)
1413 `(#:tests? #f)) ; there are no tests
1415 `(("pkg-config" ,pkg-config)))
1418 ("libarchive" ,libarchive)
1420 ("sdl" ,(sdl-union (list sdl2
1424 (home-page "https://acmepjz.github.io/meandmyshadow/")
1425 (synopsis "Puzzle/platform game")
1426 (description "Me and My Shadow is a puzzle/platform game in which you try
1427 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1428 and much more stand between you and the exit. Record your moves and let your
1429 shadow mimic them to reach blocks you couldn't reach alone.")
1430 (license license:gpl3+)))
1432 (define-public opensurge
1440 (url "https://github.com/alemart/opensurge")
1441 (commit (string-append "v" version))))
1442 (file-name (git-file-name name version))
1444 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1445 (build-system cmake-build-system)
1447 `(#:tests? #f ;there are no tests
1449 (let* ((out (assoc-ref %outputs "out"))
1450 (share (string-append out "/share")))
1451 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1452 (string-append "-DGAME_DATADIR=" share "/" ,name)
1453 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1454 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1455 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1457 (modify-phases %standard-phases
1458 (add-after 'unpack 'fix-xdg-open-path
1459 (lambda* (#:key inputs #:allow-other-keys)
1460 ;; Look for xdg-open in the store.
1461 (substitute* "src/core/web.c"
1462 (("/usr(/bin/xdg-open)" _ bin)
1463 (string-append (assoc-ref inputs "xdg-utils") bin)))
1465 (add-after 'unpack 'unbundle-fonts
1466 (lambda* (#:key inputs #:allow-other-keys)
1467 ;; Replace bundled Roboto fonts with links to the store.
1468 (with-directory-excursion "fonts"
1469 (let ((roboto-dir (string-append
1470 (assoc-ref inputs "font-google-roboto")
1471 "/share/fonts/truetype/")))
1475 (symlink (string-append roboto-dir font) font))
1476 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1479 `(("allegro" ,allegro)
1480 ("font-google-roboto" ,font-google-roboto)
1481 ("surgescript" ,surgescript)
1482 ("xdg-utils" ,xdg-utils)))
1483 (home-page "https://opensurge2d.org")
1484 (synopsis "2D retro side-scrolling game")
1485 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1486 inspired by the Sonic games. The player runs at high speeds through each
1487 level while collecting items and avoiding obstacles. The game includes a
1488 built-in level editor.")
1490 ;; Code is under GPL 3+, assets are under various licenses.
1491 ;; See src/misc/credits.c for details.
1497 license:public-domain
1498 license:silofl1.1))))
1500 (define-public knights
1506 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1507 version "_src.tar.gz"))
1510 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1511 (build-system gnu-build-system)
1514 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1515 "CXXFLAGS=-lpthread")
1517 (modify-phases %standard-phases
1518 ;; No configure script.
1519 (delete 'configure))
1520 #:tests? #f)) ;; No check target.
1523 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1524 ("freetype" ,freetype)
1525 ("fontconfig" ,fontconfig)
1528 `(("pkg-config" ,pkg-config)))
1529 (home-page "http://www.knightsgame.org.uk/")
1530 (synopsis "Multiplayer dungeon game involving knights and quests")
1531 (description "Knights is a multiplayer game involving several knights who
1532 must run around a dungeon and complete various quests. Each game revolves
1533 around a quest – for example, you might have to find some items and carry them
1534 back to your starting point. This may sound easy, but as there are only
1535 enough items in the dungeon for one player to win, you may end up having to
1536 kill your opponents to get their stuff! Other quests involve escaping from
1537 the dungeon, fighting a duel to the death against the enemy knights, or
1538 destroying an ancient book using a special wand.")
1539 ;; This package includes modified sources of lua (X11), enet (Expat), and
1540 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1541 ;; license. The whole package is released under GPLv3+.
1542 (license license:gpl3+)))
1544 (define-public gnome-chess
1546 (name "gnome-chess")
1550 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1551 (version-major+minor version) "/"
1552 "gnome-chess-" version ".tar.xz"))
1555 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1556 (build-system meson-build-system)
1560 (modify-phases %standard-phases
1561 (add-after 'unpack 'skip-gtk-update-icon-cache
1562 ;; Don't create 'icon-theme.cache'.
1564 (substitute* "meson_post_install.py"
1565 (("gtk-update-icon-cache") "true"))
1569 ("librsvg" ,librsvg)))
1571 `(("gettext" ,gettext-minimal)
1572 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1573 ("itstool" ,itstool)
1574 ("pkg-config" ,pkg-config)
1576 (home-page "https://wiki.gnome.org/Apps/Chess")
1577 (synopsis "Chess board for GNOME")
1578 (description "GNOME Chess provides a 2D board for playing chess games
1579 against human or computer players. It supports loading and saving games in
1580 Portable Game Notation. To play against a computer, install a chess engine
1581 such as chess or stockfish.")
1582 (license license:gpl3+)))
1584 (define-public gnubg
1587 (version "1.06.002")
1591 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1592 version "-sources.tar.gz"))
1595 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1596 (build-system gnu-build-system)
1597 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1598 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1599 ("pango" ,pango-1.42)
1602 ("readline" ,readline)
1606 ("gtkglext" ,gtkglext)
1608 ("libcanberra" ,libcanberra)))
1609 (native-inputs `(("python-2" ,python-2)
1610 ("pkg-config" ,pkg-config)))
1613 ;; SSE instructions are available on Intel systems only.
1614 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1617 '("--enable-simd=sse2") ; prevent avx instructions
1620 (modify-phases %standard-phases
1621 (add-after 'install 'install-desktop-file
1622 (lambda* (#:key outputs #:allow-other-keys)
1623 (let* ((out (assoc-ref outputs "out"))
1624 (apps (string-append out "/share/applications")))
1626 (with-output-to-file (string-append apps "/gnubg.desktop")
1630 Name=GNU Backgammon~@
1631 Exec=~a/bin/gnubg -w~@
1638 (home-page "https://www.gnu.org/software/gnubg/")
1639 (synopsis "Backgammon game")
1640 (description "The GNU backgammon application (also known as \"gnubg\") can
1641 be used for playing, analyzing and teaching the game. It has an advanced
1642 evaluation engine based on artificial neural networks suitable for both
1643 beginners and advanced players. In addition to a command-line interface, it
1644 also features an attractive, 3D representation of the playing board.")
1645 (license license:gpl3+)))
1647 (define-public gnubik
1654 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1658 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1659 (build-system gnu-build-system)
1661 '(#:phases (modify-phases %standard-phases
1662 (add-after 'unpack 'skip-gtk-update-icon-cache
1664 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1665 ;; unnecessary and causes a needless dependency on glib.
1666 (substitute* "Makefile.in"
1667 (("gtk-update-icon-cache")
1670 (inputs `(("gtk+" ,gtk+-2)
1674 ("guile" ,guile-2.0)
1675 ("gtkglext" ,gtkglext)))
1676 (native-inputs `(("gettext" ,gettext-minimal)
1677 ("pkg-config" ,pkg-config)))
1678 (home-page "https://www.gnu.org/software/gnubik/")
1679 (synopsis "3d Rubik's cube game")
1681 "GNUbik is a puzzle game in which you must manipulate a cube to make
1682 each of its faces have a uniform color. The game is customizable, allowing
1683 you to set the size of the cube (the default is 3x3) or to change the colors.
1684 You may even apply photos to the faces instead of colors. The game is
1685 scriptable with Guile.")
1686 (license license:gpl3+)))
1688 (define-public gnushogi
1695 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1699 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1700 (arguments `(#:tests? #f)) ;; No check target.
1701 (build-system gnu-build-system)
1702 (home-page "https://www.gnu.org/software/gnushogi/")
1703 (synopsis "The game of Shogi (Japanese chess)")
1704 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1705 Chess). It is similar to standard chess but this variant is far more complicated.")
1706 (license license:gpl3+)))
1708 (define-public ltris
1715 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1716 "ltris-" version ".tar.gz"))
1718 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1719 (build-system gnu-build-system)
1721 '(;; The code in LTris uses traditional GNU semantics for inline functions
1722 #:configure-flags '("CFLAGS=-fgnu89-inline")
1724 (modify-phases %standard-phases
1725 (add-after 'set-paths 'set-sdl-paths
1726 (lambda* (#:key inputs #:allow-other-keys)
1728 (string-append (assoc-ref inputs "sdl-union")
1730 (or (getenv "CPATH") "")))
1733 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1734 (home-page "http://lgames.sourceforge.net/LTris/")
1735 (synopsis "Tetris clone based on the SDL library")
1737 "LTris is a tetris clone: differently shaped blocks are falling down the
1738 rectangular playing field and can be moved sideways or rotated by 90 degree
1739 units with the aim of building lines without gaps which then disappear (causing
1740 any block above the deleted line to fall down). LTris has three game modes: In
1741 Classic you play until the stack of blocks reaches the top of the playing field
1742 and no new blocks can enter. In Figures the playing field is reset to a new
1743 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1744 up to three players (either human or CPU) compete with each other sending
1745 removed lines to all opponents. There is also a Demo mode in which you can
1746 watch your CPU playing while enjoying a cup of tea!")
1747 (license license:gpl2+)))
1749 (define-public nethack
1757 (string-append "https://www.nethack.org/download/" version "/nethack-"
1758 (string-join (string-split version #\.) "") "-src.tgz"))
1760 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1765 `(("ncurses" ,ncurses)
1767 (build-system gnu-build-system)
1770 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1772 (modify-phases %standard-phases
1773 (add-before 'configure 'patch-paths
1775 (substitute* "sys/unix/nethack.sh"
1777 (substitute* "sys/unix/Makefile.utl"
1778 (("^YACC *=.*$") "YACC = bison -y\n")
1779 (("^LEX *=.*$") "LEX = flex\n")
1780 (("^# CC = gcc") "CC = gcc"))
1781 (substitute* "sys/unix/hints/linux"
1782 (("/bin/gzip") (string-append
1783 (assoc-ref %build-inputs "gzip")
1785 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1786 (substitute* "include/config.h"
1787 (("^.*define CHDIR.*$") "")
1788 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1789 ;; Honor SOURCE_DATE_EPOCH.
1790 "#define REPRODUCIBLE_BUILD"))
1792 ;; Note: 'makedefs' rejects and ignores dates that are too old
1793 ;; or too new, so we must choose something reasonable here.
1794 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1796 (substitute* "sys/unix/Makefile.src"
1797 (("^# CC = gcc") "CC = gcc"))
1801 (let ((bash (string-append
1802 (assoc-ref %build-inputs "bash")
1804 (with-directory-excursion "sys/unix"
1805 (substitute* "setup.sh" (("/bin/sh") bash))
1806 (invoke bash "setup.sh" "hints/linux"))
1808 (add-after 'install 'fixup-paths
1810 (let* ((output (assoc-ref %outputs "out"))
1811 (nethack-script (string-append output "/bin/nethack")))
1812 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1816 (string-append output "/games/lib/nethackdir/" file)
1817 (string-append output "/games/lib/nethackuserdir/"
1819 '("xlogfile" "logfile" "perm" "record" "save"))
1820 (mkdir-p (string-append output "/bin"))
1821 (call-with-output-file nethack-script
1823 (format port "#!~a/bin/sh
1825 if [ ! -d ~~/.config/nethack ]; then
1826 mkdir -p ~~/.config/nethack
1827 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1828 chmod -R +w ~~/.config/nethack
1839 for i in ~~/.config/nethack/*; do
1840 ln -s $i $(basename $i)
1842 for i in ~a/games/lib/nethackdir/*; do
1843 ln -s $i $(basename $i)
1846 (assoc-ref %build-inputs "bash")
1847 (list->search-path-as-string
1850 (assoc-ref %build-inputs "coreutils") "/bin")
1852 (assoc-ref %build-inputs "less") "/bin"))
1857 (chmod nethack-script #o555)
1860 (home-page "https://nethack.org")
1861 (synopsis "Classic dungeon crawl game")
1862 (description "NetHack is a single player dungeon exploration game that runs
1863 on a wide variety of computer systems, with a variety of graphical and text
1864 interfaces all using the same game engine. Unlike many other Dungeons &
1865 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1866 the dungeon and not simply killing everything in sight - in fact, killing
1867 everything in sight is a good way to die quickly. Each game presents a
1868 different landscape - the random number generator provides an essentially
1869 unlimited number of variations of the dungeon and its denizens to be discovered
1870 by the player in one of a number of characters: you can pick your race, your
1871 role, and your gender.")
1873 (license:fsdg-compatible
1874 "https://nethack.org/common/license.html"))))
1876 (define-public pipewalker
1883 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1884 version "/pipewalker-" version ".tar.gz"))
1886 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1887 (build-system gnu-build-system)
1890 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1891 "/share/doc/" ,name "-" ,version))
1893 (modify-phases %standard-phases
1894 (add-after 'configure 'patch-docdir
1895 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1897 (substitute* "Makefile"
1898 (("(pkgdocdatadir = ).*" _ assignment)
1899 (string-append assignment "$(docdir)\n")))
1902 `(("libpng" ,libpng)
1905 (home-page "http://pipewalker.sourceforge.net/")
1906 (synopsis "Logical tile puzzle")
1908 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1909 computers to one network server, bring water from a source to the taps, etc.
1910 The underlying mechanism is always the same: you must turn each tile in the
1911 grid in the right direction to combine all components into a single circuit.
1912 Every puzzle has a complete solution, although there may be more than one.")
1913 (license license:gpl3+)))
1915 (define-public prboom-plus
1917 (name "prboom-plus")
1921 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1922 version "/prboom-plus-" version ".tar.gz"))
1924 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1925 (modules '((guix build utils)))
1928 (substitute* "src/version.c"
1932 (build-system gnu-build-system)
1934 '(#:configure-flags '("--disable-cpu-opt")
1935 #:make-flags `(,(string-append "gamesdir="
1936 (assoc-ref %outputs "out") "/bin"))
1938 (modify-phases %standard-phases
1939 (add-after 'set-paths 'set-sdl'paths
1940 (lambda* (#:key inputs #:allow-other-keys)
1942 (string-append (assoc-ref inputs "sdl-union")
1944 (or (getenv "CPATH") "")))
1947 `(("fluidsynth" ,fluidsynth)
1951 ("libvorbis" ,libvorbis)
1953 ("portmidi" ,portmidi)
1954 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1955 (home-page "http://prboom-plus.sourceforge.net/")
1956 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1958 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1959 (license license:gpl2+)))
1961 (define-public retux
1962 (let ((release "1.4.1")
1966 (version (if (zero? revision)
1968 (string-append release "-"
1969 (number->string revision))))
1972 (uri (string-append "https://github.com/retux-game/retux/"
1973 "releases/download/v"
1975 release "-src.tar.gz"))
1978 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
1979 (build-system python-build-system)
1981 `(#:tests? #f ; no check target
1983 (modify-phases %standard-phases
1984 ;; no setup.py script
1987 (lambda* (#:key outputs #:allow-other-keys)
1988 (let* ((out (assoc-ref outputs "out"))
1989 (bin (string-append out "/bin"))
1990 (data (string-append out "/share/retux")))
1993 (substitute* "retux.py"
1994 ;; Use the correct data directory.
1995 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1996 (string-append "\"" data "\",")))
1998 (copy-file "retux.py" (string-append bin "/retux"))
1999 (copy-recursively "data" data)
2002 `(("python-sge-pygame" ,python-sge-pygame)
2003 ("python-six" ,python-six)
2004 ("python-xsge" ,python-xsge)))
2005 (home-page "https://retux-game.github.io/")
2006 (synopsis "Action platformer game")
2008 "ReTux is an action platformer loosely inspired by the Mario games,
2009 utilizing the art assets from the @code{SuperTux} project.")
2010 ;; GPL version 3 or later is the license for the code and some art.
2011 ;; The rest of the licenses are for the art exclusively, as listed in
2013 (license (list license:cc0
2020 (define-public roguebox-adventures
2022 (name "roguebox-adventures")
2028 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2029 (string-join (string-split version #\.) "_") "_Source.zip"))
2030 (file-name (string-append name "-" version ".zip"))
2033 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2034 (build-system python-build-system)
2036 `(#:tests? #f ; no check target
2038 (modify-phases %standard-phases
2040 (lambda* (#:key source #:allow-other-keys)
2041 (and (invoke "unzip" source)
2042 ;; The actual source is buried a few directories deep.
2043 (chdir (string-append "RogueBoxAdventures_v"
2045 (string-split ,version #\.) "_")
2047 ;; no setup.py script
2049 (lambda* (#:key outputs #:allow-other-keys)
2050 (let* ((out (assoc-ref outputs "out"))
2051 (data (string-append
2052 out "/share/games/roguebox-adventures")))
2053 ;; Use the correct data directory.
2054 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2055 (("basic_path + os\\.sep + 'DATA'")
2056 (string-append "'" data "'"))
2058 (string-append "basic_path ='" data "'\n")))
2059 (substitute* "LIB/dialog.py"
2060 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2061 (string-append "d_path = '" data "'")))
2062 (substitute* "LIB/gra_files.py"
2063 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2064 (string-append "basic_path ='" data "'\n")))
2066 ;; The game must save in the user's home directory because
2067 ;; the store is read-only.
2068 (substitute* "main.py"
2069 (("home_save = False") "home_save = True")
2070 (("'icon_small.png'")
2071 (string-append "'" data "/icon_small.png'"))))
2074 (lambda* (#:key outputs #:allow-other-keys)
2075 (let* ((out (assoc-ref outputs "out"))
2076 (bin (string-append out "/bin"))
2077 (roguebox-adventures
2078 (string-append bin "/roguebox-adventures"))
2079 (data (string-append
2080 out "/share/games/roguebox-adventures"))
2081 (lib (string-append data "/LIB"))
2083 out "/share/doc/roguebox-adventures")))
2087 (for-each (lambda (file)
2088 (copy-recursively file
2089 (string-append data "/" file)))
2090 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2091 "icon_big.png" "icon_small.png"))
2092 (for-each (lambda (file)
2094 (install-file file lib))
2095 '("main.py" "run.py"))
2097 (copy-recursively "DOC" doc)
2099 (call-with-output-file
2104 export PYTHONPATH=~a/LIB:~a
2105 exec -a \"~a\" ~a \"$@\"\n"
2106 (which "bash") data (getenv "PYTHONPATH")
2108 (string-append lib "/main.py"))))
2109 (chmod roguebox-adventures #o555))
2112 `(("unzip" ,unzip)))
2114 `(("python-pygame" ,python-pygame)
2115 ("python-tmx" ,python-tmx)))
2116 (home-page "https://rogueboxadventures.tuxfamily.org")
2117 (synopsis "A classical roguelike/sandbox game")
2119 "RogueBox Adventures is a graphical roguelike with strong influences
2120 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2121 Adventures is to offer the player a kind of roguelike toy-world. This world
2122 can be explored and changed freely.")
2123 ;; The GPL3+ is for code, the rest are for art.
2124 (license (list license:cc0
2127 license:silofl1.1))))
2129 (define-public seahorse-adventures
2131 (name "seahorse-adventures")
2137 (url "https://github.com/dulsi/seahorse-adventures")
2138 (commit (string-append "release-" version))))
2139 (file-name (git-file-name name version))
2141 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2142 (modules '((guix build utils)
2145 ;; Remove non-free (non-commercial) font.
2148 (for-each delete-file (find-files "data/fonts" "."))
2150 (build-system python-build-system)
2152 `(#:tests? #f ;no test
2154 (modify-phases %standard-phases
2155 (delete 'build) ;pure Python
2156 (replace 'install ;no install script
2157 (lambda* (#:key outputs #:allow-other-keys)
2158 (let* ((out (assoc-ref outputs "out"))
2159 (bin (string-append out "/bin"))
2160 (share (string-append out "/share"))
2161 (applications (string-append share "/applications"))
2162 (data (string-append share "/seahorse-adventures")))
2164 (for-each (lambda (f)
2166 (install-file f data))
2167 '("leveledit.py" "run_game.py" "tileedit.py"))
2168 (for-each (lambda (dir)
2169 (let ((target (string-append data "/" dir)))
2171 (copy-recursively dir target)))
2173 ;; Create executable.
2175 (let ((executable (string-append bin "/seahorse-adventures")))
2176 (call-with-output-file executable
2180 export PYTHONPATH=~a:~a~@
2181 exec -a \"~a\" ~a \"$@\"~%"
2182 (which "bash") data (getenv "PYTHONPATH")
2184 (string-append data "/run_game.py"))))
2185 (chmod executable #o555))
2186 ;; Add desktop file.
2187 (mkdir-p applications)
2188 (make-desktop-entry-file
2189 (string-append applications "/seahorse-adventures.desktop")
2190 #:name "Seahorse Adventures"
2192 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2195 #:categories '("Game" "ActionGame")
2196 #:keywords '("game" "retro" "platform"))
2200 (let ((dir (string-append share "/icons/hicolor/"
2201 size "x" size "/apps")))
2204 (string-append "icon" size ".png")
2205 (string-append dir "/searhorse-adventures.png"))))
2206 '("32" "64" "128")))
2208 (add-after 'install 'unbundle-fonts
2209 ;; Unbundle Bitstream Vera font and replace deleted one.
2210 (lambda* (#:key outputs inputs #:allow-other-keys)
2211 (let* ((out (assoc-ref outputs "out"))
2212 (data (string-append out "/share/seahorse-adventures"))
2213 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2214 "/share/fonts/truetype/Vera.ttf")))
2215 (let ((themes-dir (string-append data "/data/themes/")))
2218 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2219 (delete-file target)
2220 (symlink vera target)))
2221 '("default" "gray")))
2222 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2223 (substitute* (string-append data "/lib/main.py")
2224 (("f_scale = 0.35") "f_scale = 0.47")))
2227 `(("font-bitstream-vera" ,font-bitstream-vera)
2228 ("python-pygame" ,python-pygame)))
2229 (home-page "http://www.imitationpickles.org/barbie/")
2230 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2232 "Barbie Seahorse Adventures is a retro style platform arcade game.
2233 You are Barbie the seahorse who travels through the jungle, up to the
2234 volcano until you float on bubbles to the moon. On the way to your
2235 final destination you will encounter various enemies, servants of the
2236 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2237 and defeat them with your bubbles!")
2238 ;; GPL2+ is for code, CC0 is for art.
2239 (license (list license:gpl2+ license:cc0))))
2241 (define-public solarus
2244 ;; XXX: When updating this package, please also update hash in
2245 ;; `solarus-quest-editor' below.
2251 (url "https://gitlab.com/solarus-games/solarus")
2252 (commit (string-append "v" version))))
2253 (file-name (git-file-name name version))
2255 (base32 "1n6l91yyqjx0pz4w1lp3yybpq0fs2yjswfcm8c1wjfkxwiznbdxi"))))
2256 (build-system cmake-build-system)
2259 (modify-phases %standard-phases
2260 (add-after 'unpack 'disable-failing-tests
2261 ;; The following tests fail reporting a missing "/dev/dri"
2264 (substitute* "tests/cmake/AddTestMaps.cmake"
2265 ((".*1200_create_shader_from_source.*" all)
2266 (string-append "#" all))
2267 ((".*1210_shader_scaling_factor.*" all)
2268 (string-append "#" all)))
2270 (add-before 'check 'set-home
2271 ;; Tests fail without setting the following environment
2274 (setenv "HOME" (getcwd))
2275 (setenv "XDG_RUNTIME_DIR" (getcwd))
2278 `(("pkg-config" ,pkg-config)
2279 ("qttools" ,qttools)))
2282 ("libmodplug" ,libmodplug)
2284 ("libvorbis" ,libvorbis)
2289 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2290 (home-page "https://www.solarus-games.org/")
2291 (synopsis "Lightweight game engine for Action-RPGs")
2293 "Solarus is a 2D game engine written in C++, that can run games
2294 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2296 ;; The source code is licensed under the terms of GPL-3.0.
2297 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2299 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2301 (define-public solarus-quest-editor
2304 (name "solarus-quest-editor")
2305 (version (package-version solarus))
2310 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2311 (commit (string-append "v" version))))
2312 (file-name (git-file-name name version))
2314 (base32 "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn"))))
2316 `(#:tests? #false ;no test
2318 (modify-phases %standard-phases
2319 (add-after 'unpack 'fix-qt-build
2320 ;; XXX: Fix build with Qt 5.15. It has been applied upstream as
2321 ;; 81d5c7f1 and can be removed at next upgrade.
2323 (substitute* "src/entities/jumper.cpp"
2324 (("#include <QPainter>" all)
2325 (string-append all "\n" "#include <QPainterPath>\n")))
2328 `(("solarus" ,solarus)
2329 ,@(package-inputs solarus)))
2330 (synopsis "Create and modify quests for the Solarus engine")
2332 "Solarus Quest Editor is a graphical user interface to create and
2333 modify quests for the Solarus engine.")))
2335 (define-public superstarfighter
2337 (name "superstarfighter")
2343 (url "https://github.com/notapixelstudio/superstarfighter")
2344 (commit (string-append "v" version))))
2345 (file-name (git-file-name name version))
2347 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2348 (build-system gnu-build-system)
2350 `(#:tests? #f ;there are no tests
2352 (modify-phases %standard-phases
2356 (setenv "HOME" (getcwd))
2357 (with-output-to-file "export_presets.cfg"
2362 platform=\"Linux/X11\"
2364 [preset.0.options]")))
2368 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2369 (invoke (string-append godot "/bin/godot_server")
2370 "--export-pack" "Guix"
2371 "superstarfighter.pck" "project.godot"))
2374 (lambda* (#:key inputs outputs #:allow-other-keys)
2375 (let* ((out (assoc-ref outputs "out"))
2376 (bin (string-append out "/bin"))
2377 (share (string-append out "/share"))
2378 (data (string-append share "/superstarfighter"))
2379 (icons (string-append share "/icons/hicolor/256x256/apps")))
2380 (install-file "superstarfighter.pck" data)
2382 (call-with-output-file (string-append bin "/superstarfighter")
2386 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2387 (assoc-ref inputs "godot")
2389 (chmod port #o755)))
2391 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2392 (make-desktop-entry-file
2393 (string-append share "/applications/" ,name ".desktop")
2394 #:name "SuperStarfighter"
2395 #:comment "Fast-paced arcade combat game"
2398 #:categories '("Game" "ArcadeGame")))
2401 `(("godot-headless" ,godot "headless")))
2403 `(("godot" ,godot)))
2404 (home-page "https://notapixel.itch.io/superstarfighter")
2405 (synopsis "Fast-paced local multiplayer arcade game")
2406 (description "In SuperStarfighter, up to four local players compete in a
2407 2D arena with fast-moving ships and missiles. Different game types are
2408 available, as well as a single-player mode with AI-controlled ships.")
2409 (license (list license:expat ; game
2410 license:silofl1.1)))) ; fonts
2412 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2413 (define %ufoai-revision "0")
2414 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2415 (define ufoai-source
2419 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2420 (commit %ufoai-commit)))
2421 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2424 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2425 (modules '((guix build utils)
2430 ;; Delete ~32MiB of bundled dependencies.
2431 (with-directory-excursion "src/libs"
2432 (for-each delete-file-recursively
2433 (lset-difference equal? (scandir ".")
2434 '("." ".." "gtest" "mumble"))))
2436 ;; Use relative path to Lua headers.
2437 (substitute* "src/common/scripts_lua.h"
2438 (("\\.\\./libs/lua/") ""))
2440 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2441 ;; it as a separate package. This way we don't need to make the same
2442 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2443 (substitute* "build/maps.mk"
2444 (("\\./ufo2map") "ufo2map")
2445 (("maps: ufo2map") "maps:"))
2446 (substitute* "build/modules/testall.mk"
2447 (("testall: ufo2map") "testall:"))
2449 ;; If no cURL headers are found, the build system will try to include
2450 ;; the bundled version, even when not required. Prevent that.
2451 (substitute* "build/default.mk"
2452 (("^include src/libs/curl/lib/Makefile\\.inc")
2455 ;; While here, improve reproducibility by adding the '-X' flag to the
2456 ;; zip command used to create the map files, in order to prevent time
2457 ;; stamps from making it into the generated archives.
2458 (substitute* "build/data.mk"
2459 (("\\$\\(call ZIP\\)")
2463 (define-public trigger-rally
2465 (name "trigger-rally")
2470 (uri (string-append "mirror://sourceforge/trigger-rally/"
2471 "trigger-" version "/"
2472 "trigger-rally-" version ".tar.gz"))
2475 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2476 (build-system gnu-build-system)
2478 `(("freealut" ,freealut)
2484 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2485 ("tinyxml2" ,tinyxml2)))
2487 `(#:make-flags (list (string-append "prefix=" %output)
2488 "bindir=$(prefix)/bin"
2489 "datadir=$(datarootdir)"
2491 #:tests? #f ; No tests present
2493 (modify-phases %standard-phases
2495 (add-before 'build 'cd-src
2496 (lambda _ (chdir "src")))
2497 (add-before 'build 'remove-timestamps
2499 (substitute* (list "Trigger/menu.cpp"
2501 ((".*__DATE__.*") ""))))
2502 (add-before 'build 'make-verbose
2504 (substitute* "GNUmakefile"
2505 (("@\\$\\(CXX\\)") "$(CXX)"))))
2506 (add-after 'build 'set-data-path
2507 (lambda* (#:key outputs #:allow-other-keys)
2508 (let ((out (assoc-ref outputs "out")))
2509 (substitute* "../bin/trigger-rally.config.defs"
2510 (("<data path=\"C:[^\"]*\"")
2511 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2512 (add-after 'install 'create-desktop-entry
2513 (lambda* (#:key outputs #:allow-other-keys)
2514 (let* ((out (assoc-ref outputs "out"))
2515 (apps (string-append out "/share/applications")))
2517 (with-output-to-file
2518 (string-append apps "/trigger-rally.desktop")
2520 (format #t ; Borrowed from Debian package
2522 Name=Trigger Rally~@
2523 Icon=trigger-rally~@
2524 Comment=3D rally racing car game~@
2525 Comment[de]=3D Rally-Autorennen~@
2526 Comment[fr_FR]=un jeu de rally en 3D~@
2527 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2528 Exec=~a/bin/trigger-rally~@
2530 StartupNotify=false~@
2532 TryExec=~:*~a/bin/trigger-rally~@
2533 Categories=Game;ArcadeGame;~@
2534 Keywords=racing;tracks;~@
2535 Keywords[de]=Rennstrecke;~%"
2537 (home-page "http://trigger-rally.sourceforge.net")
2538 (synopsis "Fast-paced single-player racing game")
2539 (description "Trigger-rally is a 3D rally simulation with great physics
2540 for drifting on over 200 maps. Different terrain materials like dirt,
2541 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2542 this rally simulation the edge over many other games. You need to make it
2543 through the maps in often tight time limits and can further improve by beating
2544 the recorded high scores. All attached single races must be finished in time
2545 in order to win an event, unlocking additional events and cars. Most maps are
2546 equipped with spoken co-driver notes and co-driver icons.")
2547 (license (list license:cc0 ;textures and audio in data.zip
2550 (define-public ufo2map
2553 (version %ufoai-version)
2554 (home-page "https://ufoai.org/")
2555 (source ufoai-source)
2556 (build-system gnu-build-system)
2558 '(#:configure-flags '("CC=gcc" "CXX=g++"
2561 "--disable-uforadiant"
2562 "--disable-cgame-campaign"
2563 "--disable-cgame-multiplayer"
2564 "--disable-cgame-skirmish"
2570 "--disable-ufomodel"
2571 "--disable-ufoslicer")
2572 #:tests? #f ;no tests
2573 #:phases (modify-phases %standard-phases
2575 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2576 ;; The home-made configure script does not understand
2577 ;; some of the default flags of gnu-build-system.
2578 (apply invoke "./configure" configure-flags)))
2580 (lambda* (#:key outputs #:allow-other-keys)
2581 (let ((out (assoc-ref outputs "out")))
2582 (install-file "ufo2map" (string-append out "/bin"))
2583 (install-file "debian/ufo2map.6"
2584 (string-append out "/share/man/man6"))
2587 `(("pkg-config" ,pkg-config)))
2589 `(("libjpeg" ,libjpeg-turbo)
2592 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2593 (synopsis "UFO: AI map generator")
2595 "This package provides @command{ufo2map}, a program used to generate
2596 maps for the UFO: Alien Invasion strategy game.")
2597 (license license:gpl2+)))
2602 (version %ufoai-version)
2603 (home-page "https://ufoai.org/")
2604 (source ufoai-source)
2605 (build-system gnu-build-system)
2608 #:configure-flags '("CC=gcc" "CXX=g++")
2609 #:phases (modify-phases %standard-phases
2611 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2612 (apply invoke "./configure" configure-flags)))
2614 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2616 "-j" (if parallel-build?
2617 (number->string (parallel-job-count))
2620 (add-after 'build 'pack
2622 (invoke "make" "pk3")))
2624 (lambda* (#:key outputs #:allow-other-keys)
2625 (let ((out (assoc-ref outputs "out")))
2626 (for-each (lambda (file)
2627 (install-file file out))
2628 (find-files "base" "\\.pk3$"))
2631 `(("python" ,python-2)
2632 ("ufo2map" ,ufo2map)
2635 (synopsis "UFO: AI data files")
2637 "This package contains maps and other assets for UFO: Alien Invasion.")
2638 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2639 ;; licenses, see LICENSES for details.
2640 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2641 license:cc-by-sa3.0 license:public-domain))))
2643 (define-public ufoai
2646 (version %ufoai-version)
2647 (home-page "https://ufoai.org/")
2648 (source ufoai-source)
2649 (build-system gnu-build-system)
2652 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2653 (string-append "--datadir=" (assoc-ref %outputs "out")
2659 "--disable-dependency-tracking"
2661 ;; Disable hard links to prevent huge NARs.
2662 "--disable-hardlinkedgame"
2663 "--disable-hardlinkedcgame")
2664 #:phases (modify-phases %standard-phases
2665 (add-after 'unpack 'symlink-data-files
2666 (lambda* (#:key inputs #:allow-other-keys)
2667 (let ((data (assoc-ref inputs "ufoai-data")))
2668 ;; Symlink the data files to where the build system
2669 ;; expects to find them. Ultimately these files are
2670 ;; copied to $out/share/games/ufoai/base, losing the
2671 ;; symlinks; we could fix that after install, but it
2672 ;; does not make a big difference in practice due to
2674 (with-directory-excursion "base"
2675 (for-each (lambda (file)
2676 (symlink file (basename file)))
2677 (find-files data "\\.pk3$")))
2679 (add-before 'configure 'create-language-files
2681 (invoke "make" "lang")))
2683 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2684 (apply invoke "./configure" configure-flags)))
2686 (lambda* (#:key tests? #:allow-other-keys)
2688 (invoke "./testall")
2689 (format #t "test suite not run~%"))
2691 (add-after 'install 'install-man-pages
2692 (lambda* (#:key outputs #:allow-other-keys)
2693 (let* ((out (assoc-ref outputs "out"))
2694 (man6 (string-append out "/share/man/man6")))
2695 (install-file "debian/ufo.6" man6)
2696 (install-file "debian/ufoded.6" man6)
2699 ;; TODO: Some map tests occasionally fail because of randomness issues,
2700 ;; e.g. not enough generated aliens. The test runner also fails early
2701 ;; in the build container with 'failed to shutdown server'?
2704 `(("gettext" ,gettext-minimal)
2705 ("pkg-config" ,pkg-config)
2706 ("python" ,python-2)
2707 ("ufo2map" ,ufo2map)
2708 ("ufoai-data" ,ufoai-data)))
2711 ("libjpeg" ,libjpeg-turbo)
2714 ("libtheora" ,libtheora)
2715 ("libvorbis" ,libvorbis)
2716 ("libxml2" ,libxml2)
2719 ("minixml" ,minixml)
2720 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2722 (synopsis "Turn-based tactical strategy game")
2724 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2725 You control a secret organisation charged with defending Earth from a brutal
2726 alien enemy. Build up your bases, prepare your team, and dive head-first into
2727 the fast and flowing turn-based combat.
2729 Over the long term you will need to conduct research into the alien threat to
2730 figure out their mysterious goals and use their powerful weapons for your own
2731 ends. You will produce unique items and use them in combat against your
2734 You can also use them against your friends with the multiplayer functionality.
2736 Warning: This is a pre-release version of UFO: AI! Some things may not work
2739 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2740 ;; because some assets do not use the "or later" clause. Many individual
2741 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2742 (license (delete license:gpl2+ (package-license ufoai-data)))))
2744 (define-public xshogi
2751 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2755 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2756 (build-system gnu-build-system)
2758 `(("libxaw" ,libxaw)
2760 (home-page "https://www.gnu.org/software/gnushogi/")
2761 (synopsis "User interface for gnushogi")
2762 (description "A graphical user interface for the package @code{gnushogi}.")
2763 ;; Contains a copy of GPLv3 but the licence notices simply
2764 ;; state "GNU General Public Licence" without specifying a version.
2765 (license license:gpl1+)))
2767 (define-public abbaye
2775 (url "https://github.com/nevat/abbayedesmorts-gpl")
2776 (commit (string-append "v" version))))
2777 (file-name (git-file-name name version))
2779 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2780 (modules '((guix build utils)))
2784 (delete-file-recursively "fonts")
2786 (build-system gnu-build-system)
2788 '(#:make-flags '("CC=gcc")
2789 #:phases (modify-phases %standard-phases
2790 (add-after 'set-paths 'set-sdl-paths
2791 (lambda* (#:key inputs #:allow-other-keys)
2793 (string-append (assoc-ref inputs "sdl-union")
2795 (or (getenv "CPATH") "")))))
2796 (add-after 'patch-source-shebangs 'patch-makefile
2797 (lambda* (#:key outputs #:allow-other-keys)
2798 ;; Replace /usr with package output directory.
2799 (substitute* "Makefile"
2800 (("/usr") (assoc-ref outputs "out")))))
2801 (add-before 'install 'make-install-dirs
2802 (lambda* (#:key outputs #:allow-other-keys)
2803 (let ((prefix (assoc-ref outputs "out")))
2804 ;; Create directories that the makefile assumes exist.
2805 (mkdir-p (string-append prefix "/bin"))
2806 (mkdir-p (string-append prefix "/share/applications"))
2807 (mkdir-p (string-append prefix "/share/pixmaps")))))
2808 ;; No configure script.
2809 (delete 'configure))
2810 #:tests? #f)) ;; No check target.
2811 (native-inputs `(("pkg-config" ,pkg-config)))
2812 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2813 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2814 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2815 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2816 France. The Cathars, who preach about good Christian beliefs, were being
2817 expelled by the Catholic Church out of the Languedoc region in France. One of
2818 them, called Jean Raymond, found an old church in which to hide, not knowing
2819 that beneath its ruins lay buried an ancient evil.")
2820 (license license:gpl3)))
2822 (define-public angband
2829 (uri (string-append "https://rephial.org/downloads/"
2830 (version-major+minor version)
2831 "/angband-" version ".tar.gz"))
2833 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2834 (modules '((guix build utils)))
2836 ;; So, some of the sounds/graphics/tilesets are under different
2837 ;; licenses... some of them even nonfree! This is a console-only
2838 ;; version of this package so we just remove them.
2839 ;; In the future, if someone tries to make a graphical variant of
2840 ;; this package, they can deal with that mess themselves. :)
2842 (for-each (lambda (subdir)
2843 (let ((lib-subdir (string-append "lib/" subdir)))
2844 (delete-file-recursively lib-subdir)))
2845 '("fonts" "icons" "sounds" "tiles"))
2846 (substitute* "lib/Makefile"
2847 ;; And don't try to invoke makefiles in the directories we removed.
2848 (("gamedata customize help screens fonts tiles sounds icons user")
2849 "gamedata customize help screens user"))
2851 (build-system gnu-build-system)
2853 `(#:tests? #f ; no check target
2854 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2856 (modify-phases %standard-phases
2859 (substitute* "acinclude.m4"
2860 (("ncursesw5-config") "ncursesw6-config"))
2861 (invoke "sh" "autogen.sh"))))))
2863 `(("autoconf" ,autoconf)
2864 ("automake" ,automake)))
2865 (inputs `(("ncurses" ,ncurses)))
2866 (home-page "https://rephial.org/")
2867 (synopsis "Dungeon exploration roguelike")
2868 (description "Angband is a Classic dungeon exploration roguelike. Explore
2869 the depths below Angband, seeking riches, fighting monsters, and preparing to
2870 fight Morgoth, the Lord of Darkness.")
2871 (license license:gpl2)))
2873 (define-public pingus
2881 (url "https://gitlab.com/pingus/pingus.git")
2882 (commit (string-append "v" version))))
2883 (file-name (git-file-name name version))
2886 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2887 (patches (search-patches "pingus-boost-headers.patch"
2888 "pingus-sdl-libs-config.patch"))
2889 (modules '((guix build utils)))
2892 (substitute* "src/pingus/screens/demo_session.cpp"
2893 (("#include <iostream>")
2894 ;; std::function moved to <functional> with C++ 11.
2895 ;; Remove this for versions newer than 0.7.6.
2896 "#include <iostream>\n#include <functional>"))
2898 (build-system gnu-build-system)
2899 (native-inputs `(("pkg-config" ,pkg-config)
2900 ("scons-python2" ,scons-python2)))
2901 (inputs `(("sdl" ,sdl)
2902 ("sdl-image" ,sdl-image)
2903 ("sdl-mixer" ,sdl-mixer)
2909 '(#:make-flags (list (string-append "PREFIX=" %output))
2910 #:tests? #f ; no check target
2912 (modify-phases %standard-phases
2913 (delete 'configure)))) ; no configure script
2914 (home-page "https://pingus.seul.org/")
2915 (synopsis "Lemmings clone")
2917 "Pingus is a free Lemmings-like puzzle game in which the player takes
2918 command of a bunch of small animals and has to guide them through levels.
2919 Since the animals walk on their own, the player can only influence them by
2920 giving them commands, like build a bridge, dig a hole, or redirect all animals
2921 in the other direction. Multiple such commands are necessary to reach the
2922 level's exit. The game is presented in a 2D side view.")
2923 ;; Some source files are under bsd-3 and gpl2+ licenses.
2924 (license license:gpl3+)))
2926 (define-public talkfilters
2928 (name "talkfilters")
2933 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2934 "talkfilters-" version ".tar.gz"))
2936 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2937 (build-system gnu-build-system)
2938 (home-page "https://www.gnu.org/software/talkfilters/")
2939 (synopsis "Convert English text to humorous dialects")
2940 (description "The GNU Talk Filters are programs that convert English text
2941 into stereotyped or otherwise humorous dialects. The filters are provided as
2942 a C library, so they can easily be integrated into other programs.")
2943 (license license:gpl2+)))
2945 (define-public taisei
2952 (uri (string-append "https://github.com/taisei-project/"
2953 "taisei/releases/download/v" version
2954 "/taisei-v" version ".tar.xz"))
2956 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2957 (build-system meson-build-system)
2959 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2961 (list "-Dr_default=gles30"
2964 "-Dshader_transpiler=true")))
2966 `(("pkg-config" ,pkg-config)
2968 ("python-docutils" ,python-docutils)
2969 ("python-pygments" ,python-pygments)))
2971 `(("freetype" ,freetype)
2973 ("libwebp" ,libwebp)
2976 ("openssl" ,openssl)
2977 ("opusfile" ,opusfile)
2979 ("sdl2-mixer" ,sdl2-mixer)
2980 ("shaderc" ,shaderc)
2981 ("spirv-cross" ,spirv-cross)
2983 (home-page "https://taisei-project.org/")
2984 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2986 "The player controls a character (one of three: Good, Bad, and Dead),
2987 dodges the missiles (lots of it cover the screen, but the character's hitbox
2988 is very small), and shoot at the adversaries that keep appear on the screen.")
2989 (license (list ;;game
2991 ;;resources/00-taisei.pkgdir/bgm/
2996 license:public-domain))))
2998 (define-public cmatrix
3006 (url "https://github.com/abishekvashok/cmatrix")
3007 (commit (string-append "v" version))))
3008 (file-name (git-file-name name version))
3011 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3012 (build-system gnu-build-system)
3014 `(("autoconf" ,autoconf)
3015 ("automake" ,automake)))
3018 (modify-phases %standard-phases
3020 (lambda* (#:key outputs #:allow-other-keys)
3021 ;; This old ‘configure’ script doesn't support
3022 ;; variables passed as arguments.
3023 (let ((out (assoc-ref outputs "out")))
3024 (setenv "CONFIG_SHELL" (which "bash"))
3025 (invoke "./configure"
3026 (string-append "--prefix=" out))))))))
3027 (inputs `(("ncurses" ,ncurses)))
3028 (home-page "http://www.asty.org/cmatrix")
3029 (synopsis "Simulate the display from \"The Matrix\"")
3030 (description "CMatrix simulates the display from \"The Matrix\" and is
3031 based on the screensaver from the movie's website. It works with terminal
3032 settings up to 132x300 and can scroll lines all at the same rate or
3033 asynchronously and at a user-defined speed.")
3034 (license license:gpl2+)))
3036 (define-public chess
3043 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3047 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3048 (build-system gnu-build-system)
3049 (home-page "https://www.gnu.org/software/chess/")
3050 (synopsis "Full chess implementation")
3051 (description "GNU Chess is a chess engine. It allows you to compete
3052 against the computer in a game of chess, either through the default terminal
3053 interface or via an external visual interface such as GNU XBoard.")
3054 (properties '((upstream-name . "gnuchess")
3055 (ftp-directory . "/chess")))
3056 (license license:gpl3+)))
3058 (define-public freedink-engine
3060 (name "freedink-engine")
3064 (uri (string-append "mirror://gnu/freedink/freedink-" version
3066 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3069 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3070 (build-system gnu-build-system)
3072 `(#:configure-flags '("--disable-embedded-resources")
3074 (modify-phases %standard-phases
3075 (add-after 'unpack 'disable-graphical-tests
3077 ;; These tests require a graphical interface.
3078 (substitute* "src/Makefile.am"
3079 (("test_gfx_fonts TestIOGfxDisplay") ""))
3081 (add-before 'bootstrap 'autoreconf
3083 ;; automake is out of date in the source
3084 ;; autoreconf updates the automake scripts
3085 (invoke "autoreconf")
3086 ;; Build fails when autom4te.cache exists.
3087 (delete-file-recursively "autom4te.cache")
3089 (add-after 'install 'delete-freedinkedit-desktop
3090 (lambda* (#:key outputs #:allow-other-keys)
3091 (let ((out (assoc-ref outputs "out")))
3092 ;; freedinkedit does not know where to find freedink data
3093 ;; freedink data is read-only, so it cannot be edited anyway.
3094 ;; TODO: fix freedink.desktop
3095 (delete-file-recursively (string-append
3096 out "/share/applications"))
3098 (native-inputs `(("autoconf" ,autoconf)
3099 ("automake" ,automake)
3100 ("cxxtest" ,cxxtest)
3101 ("gettext" ,gettext-minimal)
3102 ("help2man" ,help2man)
3103 ("pkg-config" ,pkg-config)))
3104 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3105 sdl2-ttf sdl2-gfx)))
3106 ("fontconfig" ,fontconfig)
3108 (properties '((ftp-directory . "/freedink")
3109 (upstream-name . "freedink")))
3110 (home-page "https://www.gnu.org/software/freedink/")
3111 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3113 "GNU FreeDink is a free and portable re-implementation of the engine
3114 for the role-playing game Dink Smallwood. It supports not only the original
3115 game data files but it also supports user-produced game mods or \"D-Mods\".
3116 To that extent, it also includes a front-end for managing all of your D-Mods.")
3117 (license license:gpl3+)))
3119 (define-public freedink-data
3121 (name "freedink-data")
3122 (version "1.08.20190120")
3125 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3129 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3130 (build-system gnu-build-system)
3133 (modify-phases %standard-phases
3134 (delete 'configure) ; no configure script
3135 (delete 'check)) ; no tests
3136 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3137 (properties '((ftp-directory . "/freedink")))
3138 (home-page "https://www.gnu.org/software/freedink/")
3139 (synopsis "Game data for GNU Freedink")
3141 "This package contains the game data of GNU Freedink.")
3142 (license license:gpl3+)))
3144 (define-public freedink-dfarc
3146 (name "freedink-dfarc")
3150 (uri (string-append "mirror://gnu/freedink/dfarc-"
3154 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3155 (build-system gnu-build-system)
3157 `(("intltool" ,intltool)))
3160 ("wxwidgets" ,wxwidgets)))
3161 (properties '((ftp-directory . "/freedink")
3162 (upstream-name . "dfarc")))
3163 (home-page "https://www.gnu.org/software/freedink/")
3164 (synopsis "Front-end for managing and playing Dink Modules")
3165 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3166 and its numerous D-Mods.")
3167 (license license:gpl3+)))
3169 (define-public freedink
3170 ;; This is a wrapper that tells the engine where to find the data.
3171 (package (inherit freedink-engine)
3173 (build-system trivial-build-system)
3176 (use-modules (guix build utils))
3178 (let* ((output (assoc-ref %outputs "out"))
3179 (bin (string-append output "/bin"))
3180 (executable (string-append bin "/freedink")))
3182 (call-with-output-file executable
3184 (format port "#!~a/bin/sh
3185 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3186 (assoc-ref %build-inputs "bash")
3187 (assoc-ref %build-inputs "engine")
3188 (assoc-ref %build-inputs "data"))
3189 (chmod port #o777)))
3191 #:modules ((guix build utils))))
3192 (inputs `(("engine" ,freedink-engine)
3193 ("data" ,freedink-data)
3195 (native-inputs '())))
3197 (define-public xboard
3204 (uri (string-append "mirror://gnu/xboard/xboard-" version
3208 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3209 (build-system gnu-build-system)
3212 ("librsvg" ,librsvg)))
3214 `(("texinfo" ,texinfo)
3215 ("pkg-config" ,pkg-config)))
3216 (home-page "https://www.gnu.org/software/xboard/")
3217 (synopsis "Graphical user interface for chess programs")
3218 (description "GNU XBoard is a graphical board for all varieties of chess,
3219 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3220 and Makruk. Several lesser-known variants are also supported. It presents a
3221 fully interactive graphical interface and it can load and save games in the
3222 Portable Game Notation.")
3223 (license license:gpl3+)))
3225 (define-public gtypist
3231 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3235 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3236 (modules '((guix build utils)))
3238 ;; We do not provide `ncurses.h' within an `ncursesw'
3239 ;; sub-directory, so patch the source accordingly. See
3240 ;; <http://bugs.gnu.org/19018>.
3242 (for-each (lambda (file)
3244 (("ncursesw/ncurses.h")
3246 (find-files "." "configure$|\\.c$"))
3248 (build-system gnu-build-system)
3249 (inputs `(("ncurses" ,ncurses)
3251 (home-page "https://www.gnu.org/software/gtypist/")
3252 (synopsis "Typing tutor")
3254 "GNU Typist is a universal typing tutor. It can be used to learn and
3255 practice touch-typing. Several tutorials are included; in addition to
3256 tutorials for the standard QWERTY layout, there are also tutorials for the
3257 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3258 are primarily in English, however some in other languages are provided.")
3259 (license license:gpl3+)))
3261 (define-public irrlicht
3268 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3269 (version-major+minor version)
3270 "/" version "/irrlicht-" version ".zip"))
3273 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3274 (patches (search-patches "irrlicht-use-system-libs.patch"))
3275 (modules '((guix build utils)))
3278 (for-each delete-file-recursively
3279 '("bin" ; bundled compiled Windows binaries"
3280 "source/Irrlicht/MacOSX"
3281 "source/Irrlicht/bzip2"
3282 "source/Irrlicht/jpeglib"
3283 "source/Irrlicht/libpng"
3284 "source/Irrlicht/lzma"
3285 "source/Irrlicht/zlib"))
3286 (delete-file "source/Irrlicht/glext.h")
3287 (delete-file "source/Irrlicht/glxext.h")
3288 (delete-file "source/Irrlicht/wglext.h")
3290 (build-system gnu-build-system)
3293 (modify-phases %standard-phases
3294 (add-after 'unpack 'chdir-to-source
3296 ;; The actual source is buried a few directories deep.
3297 (chdir "source/Irrlicht/")
3299 (add-after 'chdir-to-source 'fix-build-env
3300 (lambda* (#:key outputs #:allow-other-keys)
3301 (let ((out (assoc-ref outputs "out")))
3302 (substitute* "Makefile"
3303 (("INSTALL_DIR = /usr/local/lib")
3304 (string-append "INSTALL_DIR = " out "/lib"))
3305 ;; Add '-fpermissive' to the CXXFLAGS
3306 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3307 ;; The Makefile assumes these directories exist.
3308 (mkdir-p (string-append out "/lib"))
3309 (mkdir-p (string-append out "/include")))))
3310 (delete 'configure)) ; no configure script
3311 #:tests? #f ; no check target
3312 #:make-flags '("CC=gcc" "sharedlib")))
3315 ("libjpeg" ,libjpeg-turbo)
3318 ("libxxf86vm" ,libxxf86vm)
3320 (synopsis "3D game engine written in C++")
3322 "The Irrlicht Engine is a high performance realtime 3D engine written in
3323 C++. Features include an OpenGL renderer, extensible materials, scene graph
3324 management, character animation, particle and other special effects, support
3325 for common mesh file formats, and collision detection.")
3326 (home-page "http://irrlicht.sourceforge.net/")
3327 (license license:zlib)))
3330 ;; The latest release on SourceForge relies on an unreleased version of SFML
3331 ;; with a different API, so we take the latest version from the official
3332 ;; repository on Github.
3333 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3337 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3341 (url "https://github.com/thelaui/M.A.R.S.")
3343 (file-name (git-file-name name version))
3346 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3347 (patches (search-patches "mars-sfml-2.3.patch"
3348 "mars-install.patch"))))
3349 (build-system cmake-build-system)
3351 `(#:tests? #f ; There are no tests
3353 (modify-phases %standard-phases
3354 (add-after 'unpack 'fix-install-path
3356 (substitute* "src/CMakeLists.txt"
3357 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3358 "${CMAKE_INSTALL_PREFIX}/bin"))
3360 (add-after 'unpack 'fix-data-path
3361 (lambda* (#:key outputs #:allow-other-keys)
3362 (substitute* "src/System/settings.cpp"
3363 (("C_dataPath = \"./data/\";")
3364 (string-append "C_dataPath = \""
3365 (assoc-ref outputs "out")
3366 "/share/games/marsshooter/\";")))
3370 ("fribidi" ,fribidi)
3373 (home-page "http://mars-game.sourceforge.net/")
3374 (synopsis "2D space shooter")
3376 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3377 attractive physics. Players can battle each other or computer controlled
3378 enemies in different game modes such as space ball, death match, team death
3379 match, cannon keep, and grave-itation pit.")
3380 (license license:gpl3+))))
3382 (define-public minetest
3389 (url "https://github.com/minetest/minetest")
3391 (file-name (git-file-name name version))
3394 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3395 (modules '((guix build utils)))
3398 ;; Delete bundled libraries.
3399 (delete-file-recursively "lib")
3401 (build-system cmake-build-system)
3404 (list "-DRUN_IN_PLACE=0"
3405 "-DENABLE_FREETYPE=1"
3406 "-DENABLE_GETTEXT=1"
3407 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3408 (string-append "-DIRRLICHT_INCLUDE_DIR="
3409 (assoc-ref %build-inputs "irrlicht")
3410 "/include/irrlicht")
3411 (string-append "-DCURL_INCLUDE_DIR="
3412 (assoc-ref %build-inputs "curl")
3414 #:tests? #f)) ;no check target
3415 (native-search-paths
3416 (list (search-path-specification
3417 (variable "MINETEST_SUBGAME_PATH")
3418 (files '("share/minetest/games")))))
3420 `(("pkg-config" ,pkg-config)))
3423 ("freetype" ,freetype)
3424 ("gettext" ,gettext-minimal)
3426 ("irrlicht" ,irrlicht)
3427 ("jsoncpp" ,jsoncpp)
3428 ("libjpeg" ,libjpeg-turbo)
3431 ("libvorbis" ,libvorbis)
3432 ("libxxf86vm" ,libxxf86vm)
3435 ("ncurses" ,ncurses)
3437 ("sqlite" ,sqlite)))
3439 `(("minetest-data" ,minetest-data)))
3440 (synopsis "Infinite-world block sandbox game")
3442 "Minetest is a sandbox construction game. Players can create and destroy
3443 various types of blocks in a three-dimensional open world. This allows
3444 forming structures in every possible creation, on multiplayer servers or as a
3445 single player. Mods and texture packs allow players to personalize the game
3446 in different ways.")
3447 (home-page "https://www.minetest.net/")
3448 (license license:lgpl2.1+)))
3450 (define minetest-data
3452 (name "minetest-data")
3453 (version (package-version minetest))
3457 (url "https://github.com/minetest/minetest_game")
3459 (file-name (git-file-name name version))
3462 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3463 (build-system trivial-build-system)
3465 `(("source" ,source)))
3467 `(#:modules ((guix build utils))
3469 (use-modules (guix build utils))
3470 (let ((install-dir (string-append
3472 "/share/minetest/games/minetest_game")))
3473 (mkdir-p install-dir)
3475 (assoc-ref %build-inputs "source")
3478 (synopsis "Main game data for the Minetest game engine")
3480 "Game data for the Minetest infinite-world block sandbox game.")
3481 (home-page "https://www.minetest.net/")
3482 (license license:lgpl2.1+)))
3484 (define-public minetest-mineclone
3486 (name "minetest-mineclone")
3491 (url "https://git.minetest.land/Wuzzy/MineClone2")
3493 (file-name (git-file-name name version))
3496 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3497 (build-system copy-build-system)
3500 '(("." "share/minetest/games/mineclone"))))
3501 (synopsis "Minecraft clone based on Minetest engine")
3503 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3504 closely as the engine allows.")
3505 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3506 (license license:gpl3+)))
3515 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3516 "glk/implementations/glkterm-104.tar.gz"))
3519 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3520 (build-system gnu-build-system)
3521 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3523 '(#:tests? #f ; no check target
3525 (modify-phases %standard-phases
3527 (lambda* (#:key outputs #:allow-other-keys)
3528 (let* ((out (assoc-ref outputs "out"))
3529 (inc (string-append out "/include"))
3530 (lib (string-append out "/lib")))
3533 (install-file file inc))
3534 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3535 (install-file "libglkterm.a" lib))
3537 (delete 'configure)))) ; no configure script
3538 (home-page "http://www.eblong.com/zarf/glk/")
3539 (synopsis "Curses Implementation of the Glk API")
3541 "Glk defines a portable API for applications with text UIs. It was
3542 primarily designed for interactive fiction, but it should be suitable for many
3543 interactive text utilities, particularly those based on a command line.
3544 This is an implementation of the Glk library which runs in a terminal window,
3545 using the @code{curses.h} library for screen control.")
3546 (license (license:fsf-free "file://README"))))
3548 (define-public glulxe
3555 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3556 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3559 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3560 (build-system gnu-build-system)
3561 (inputs `(("glk" ,glkterm)))
3563 '(#:tests? #f ; no check target
3565 (let* ((glk (assoc-ref %build-inputs "glk")))
3566 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3567 (string-append "GLKLIBDIR=" glk "/lib")
3568 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3570 (modify-phases %standard-phases
3572 (lambda* (#:key outputs #:allow-other-keys)
3573 (let* ((out (assoc-ref outputs "out"))
3574 (bin (string-append out "/bin")))
3575 (install-file "glulxe" bin))
3577 (delete 'configure)))) ; no configure script
3578 (home-page "https://www.eblong.com/zarf/glulx/")
3579 (synopsis "Interpreter for Glulx VM")
3581 "Glulx is a 32-bit portable virtual machine intended for writing and
3582 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3583 some of the restrictions in the venerable Z-machine format. This is the
3584 reference interpreter, using the Glk API.")
3585 (license license:expat)))
3587 (define-public fifechan
3593 (uri (string-append "https://codeload.github.com/fifengine/"
3594 "fifechan/tar.gz/" version))
3595 (file-name (string-append name "-" version ".tar.gz"))
3598 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3599 (build-system cmake-build-system)
3602 ("sdl2-image" ,sdl2-image)
3605 '(#:tests? #f)) ; No included tests
3606 (home-page "https://fifengine.github.io/fifechan/")
3607 (synopsis "Cross platform GUI library specifically for games")
3609 "Fifechan is a lightweight cross platform GUI library written in C++
3610 specifically designed for games. It has a built in set of extendable GUI
3611 Widgets, and allows users to create more.")
3612 (license license:lgpl2.1+)))
3614 (define-public fifengine
3620 (uri (string-append "https://codeload.github.com/fifengine/"
3621 "fifengine/tar.gz/" version))
3622 (file-name (string-append name "-" version ".tar.gz"))
3623 (patches (search-patches "fifengine-swig-compat.patch"))
3626 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3627 (build-system cmake-build-system)
3629 `(#:tests? #f ; TODO The test running fails to run some tests.
3630 #:modules ((srfi srfi-1)
3631 (guix build cmake-build-system)
3635 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3636 (assoc-ref %build-inputs "openal")
3638 (string-append "-DPYTHON_SITE_PACKAGES="
3639 (assoc-ref %outputs "out")
3641 ,(version-major+minor (package-version python))
3644 (modify-phases %standard-phases
3645 (add-after 'unpack 'patch-run_tests.py
3647 ;; Patch the test runner to exit with a status of 1 if any test
3648 ;; fails, to allow detecting failures.
3649 (substitute* "run_tests.py"
3650 (("ERROR\\. One or more tests failed!'\\)")
3651 "ERROR. One or more tests failed!')
3654 ;; Run tests after installation so that we can make use of the built
3657 (add-after 'install 'check
3658 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3659 (define python-version
3660 (let* ((version (last (string-split
3661 (assoc-ref inputs "python")
3663 (components (string-split version #\.))
3664 (major+minor (take components 2)))
3665 (string-join major+minor ".")))
3668 ;; Set PYTHONPATH so that python finds the installed modules.
3669 (setenv "PYTHONPATH"
3670 (string-append (getenv "PYTHONPATH") ":"
3671 (assoc-ref outputs "out")
3675 ;; The tests require an X server.
3676 (system "Xvfb :1 &")
3677 (setenv "DISPLAY" ":1")
3678 (setenv "XDG_RUNTIME_DIR" "/tmp")
3680 (chdir ,(string-append "../" name "-" version))
3681 (invoke "python3" "run_tests.py" "-a"))
3685 ("sdl2-image" ,sdl2-image)
3686 ("sdl2-ttf" ,sdl2-ttf)
3687 ("tinyxml" ,tinyxml)
3691 ("libvorbis" ,libvorbis)
3693 ("fifechan" ,fifechan)
3695 ("python" ,python)))
3697 `(("python" ,python)
3699 ("xvfb" ,xorg-server)))
3701 `(("python-future" ,python-future)))
3702 (home-page "https://www.fifengine.net/")
3703 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3705 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3706 isometric game engine. Python bindings are included allowing users to create
3707 games using Python as well as C++.")
3708 (license license:lgpl2.1+)))
3710 (define-public fizmo
3716 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3717 "fizmo-" version ".tar.gz"))
3720 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3721 (build-system gnu-build-system)
3724 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3725 (ncurses (assoc-ref %build-inputs "ncurses")))
3726 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3728 `(("pkg-config" ,pkg-config)))
3730 `(("freetype" ,freetype)
3731 ("libjpeg" ,libjpeg-turbo)
3733 ("libsndfile" ,libsndfile)
3734 ("libxml2" ,libxml2)
3735 ("ncurses" ,ncurses)
3737 (home-page "https://fizmo.spellbreaker.org/")
3738 (synopsis "Z-machine interpreter")
3740 "Fizmo is a console-based Z-machine interpreter. It is used to play
3741 interactive fiction, also known as text adventures, which were implemented
3742 either by Infocom or created using the Inform compiler.")
3743 (license license:bsd-3)))
3745 (define-public gnugo
3751 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3755 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3756 (build-system gnu-build-system)
3757 (inputs `(("readline" ,readline)))
3758 (synopsis "Play the game of Go")
3760 "GNU Go is a program that plays the game of Go, in which players
3761 place stones on a grid to form territory or capture other stones. While
3762 it can be played directly from the terminal, rendered in ASCII characters,
3763 it is also possible to play GNU Go with 3rd party graphical interfaces or
3764 even in Emacs. It supports the standard game storage format (SGF, Smart
3765 Game Format) and inter-process communication format (GMP, Go Modem
3767 (home-page "https://www.gnu.org/software/gnugo/")
3768 (license license:gpl3+)))
3770 (define-public extremetuxracer
3772 (name "extremetuxracer")
3777 "mirror://sourceforge/extremetuxracer/releases/"
3778 version "/etr-" version ".tar.xz"))
3781 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3782 (build-system gnu-build-system)
3784 `(("pkg-config" ,pkg-config)))
3788 (synopsis "High-speed arctic racing game based on Tux Racer")
3789 ;; Snarfed straight from Debian.
3790 (description "Extreme Tux Racer, or etracer as it is called for short, is
3791 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3792 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3793 avoiding the trees and rocks that will slow you down.
3795 Collect herrings and other goodies while sliding down the hill, but avoid fish
3798 This game is based on the GPL version of the famous game TuxRacer.")
3799 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3800 (license license:gpl2+)))
3802 (define-public supertuxkart
3804 (name "supertuxkart")
3809 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3810 version "/SuperTuxKart-" version "-src.tar.xz"))
3813 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3814 (modules '((guix build utils)))
3816 ;; Delete bundled library sources
3818 ;; Supertuxkart uses modified versions of the Irrlicht engine
3819 ;; and the bullet library. The developers gave an explanation
3820 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3821 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3822 (for-each delete-file-recursively
3827 (build-system cmake-build-system)
3829 `(#:tests? #f ; no check target
3831 (list "-DUSE_WIIUSE=0"
3832 "-DUSE_SYSTEM_GLEW=TRUE"
3833 "-DUSE_SYSTEM_ENET=TRUE"
3834 ;; In order to use the system ENet library, IPv6 support (added in
3835 ;; SuperTuxKart version 1.1) must be disabled.
3837 ;; FIXME: needs libopenglrecorder
3838 "-DBUILD_RECORDER=0")))
3841 ("freetype" ,freetype)
3842 ("fribidi" ,fribidi)
3844 ("harfbuzz" ,harfbuzz)
3845 ("libvorbis" ,libvorbis)
3847 ("libxrandr" ,libxrandr)
3852 ;; The following input is needed to build the bundled and modified
3853 ;; version of irrlicht.
3855 ("libjpeg" ,libjpeg-turbo)
3856 ("openssl" ,openssl)))
3858 `(("pkg-config" ,pkg-config)))
3859 (home-page "https://supertuxkart.net/Main_Page")
3860 (synopsis "3D kart racing game")
3861 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3862 having fun over realism. You can play with up to 4 friends on one PC, racing
3863 against each other or just trying to beat the computer; single-player mode is
3865 (license license:gpl3+)))
3867 (define-public unknown-horizons
3869 (name "unknown-horizons")
3873 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3874 "unknown-horizons/tar.gz/" version))
3875 (file-name (string-append name "-" version ".tar.gz"))
3878 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3879 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3880 (build-system python-build-system)
3883 (modify-phases %standard-phases
3884 (add-before 'build 'set-HOME
3886 (setenv "HOME" "/tmp")
3888 (add-after 'build 'build-extra
3890 (invoke "python3" "./setup.py" "build_i18n")
3891 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3893 (add-after 'install 'patch
3894 (lambda* (#:key outputs #:allow-other-keys)
3895 (let ((out (assoc-ref outputs "out")))
3896 (substitute* (string-append out "/bin/unknown-horizons")
3897 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3898 (string-append "os.chdir(\""
3899 (assoc-ref outputs "out")
3900 "/share/unknown-horizons\")"))))
3902 (add-before 'check 'fix-tests-with-pytest>=4
3904 (substitute* "tests/conftest.py"
3905 (("pytest_namespace")
3908 "get_closest_marker"))
3910 ;; TODO: Run GUI tests as well
3913 (substitute* "horizons/constants.py"
3914 (("IS_DEV_VERSION = False")
3915 "IS_DEV_VERSION = True"))
3916 (invoke "pytest" "tests")
3917 (substitute* "horizons/constants.py"
3918 (("IS_DEV_VERSION = True")
3919 "IS_DEV_VERSION = False"))
3922 `(("fifengine" ,fifengine)
3923 ("python:tk" ,python "tk")
3924 ("python-pillow" ,python-pillow)
3925 ("python-pyyaml" ,python-pyyaml)))
3927 `(("intltool" ,intltool)
3928 ("python-distro" ,python-distro)
3930 ;; Required for tests
3931 ("python-greenlet" ,python-greenlet)
3932 ("python-polib" ,python-polib)
3933 ("python-pytest" ,python-pytest)
3934 ("python-pytest-mock" ,python-pytest-mock)))
3935 (home-page "http://unknown-horizons.org/")
3936 (synopsis "Isometric realtime strategy, economy and city building simulation")
3938 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3939 on economy and city building. Expand your small settlement to a strong and
3940 wealthy colony, collect taxes and supply your inhabitants with valuable
3941 goods. Increase your power with a well balanced economy and with strategic
3942 trade and diplomacy.")
3944 license:gpl2+ ; Covers code
3945 license:expat ; tests/dummy.py, ext/polib.py
3946 license:cc-by-sa3.0 ; Covers some media content
3947 license:cc-by3.0 ; Covers some media content
3948 license:bsd-3)))) ; horizons/ext/speaklater.py
3950 (define-public gnujump
3956 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3960 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3961 (build-system gnu-build-system)
3964 (modify-phases %standard-phases
3966 'configure 'link-libm
3967 (lambda _ (setenv "LIBS" "-lm")))
3968 (add-after 'install 'create-desktop-entry
3969 (lambda* (#:key outputs #:allow-other-keys)
3970 (let* ((out (assoc-ref outputs "out"))
3971 (apps (string-append out "/share/applications")))
3973 (with-output-to-file
3974 (string-append apps "/gnujump.desktop")
3979 Comment=Jump up the tower to survive~@
3980 Exec=~a/bin/gnujump~@
3983 Categories=Game;ArcadeGame~%"
3989 ("sdl-image" ,sdl-image)
3990 ("sdl-mixer" ,sdl-mixer)))
3991 (home-page "http://gnujump.es.gnu.org/")
3993 "Game of jumping to the next floor, trying not to fall")
3995 "GNUjump is a simple, yet addictive game in which you must jump from
3996 platform to platform to avoid falling, while the platforms drop at faster rates
3997 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3998 falling, themeable graphics and sounds, and replays.")
3999 (license license:gpl3+)))
4001 (define-public wesnoth
4007 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4008 (version-major+minor version)
4009 "/wesnoth-" version "/"
4010 "wesnoth-" version ".tar.bz2"))
4013 "05iapxj3nzaqh10y42yq1jf7spxgm4iwjw4qj1c4lnb25xp4mc2h"))))
4014 (build-system cmake-build-system)
4016 `(#:tests? #f)) ;no check target
4018 `(("gettext" ,gettext-minimal)
4019 ("pkg-config" ,pkg-config)))
4023 ("fribidi" ,fribidi)
4024 ("libvorbis" ,libvorbis)
4025 ("openssl" ,openssl)
4027 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4028 (home-page "https://www.wesnoth.org/")
4029 (synopsis "Turn-based strategy game")
4031 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4032 with several single player campaigns, and multiplayer games (both networked and
4035 Battle for control on a range of maps, using variety of units which have
4036 advantages and disadvantages against different types of attacks. Units gain
4037 experience and advance levels, and are carried over from one scenario to the
4039 (license license:gpl2+)))
4041 (define-public wesnoth-server
4044 (name "wesnoth-server")
4048 ("openssl" ,openssl)
4051 `(#:configure-flags '("-DENABLE_GAME=OFF")
4052 ,@(package-arguments wesnoth)))
4053 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4054 (description "This package contains a dedicated server for @emph{The
4055 Battle for Wesnoth}.")))
4057 (define-public gamine
4063 (uri (string-append "mirror://sourceforge/gamine-game/"
4064 "gamine-" version ".tar.gz"))
4067 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4068 (build-system gnu-build-system)
4070 `(("pkg-config" ,pkg-config)
4071 ("intltool" ,intltool)))
4073 `(("gstreamer" ,gstreamer)
4074 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4075 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4080 (let ((out (assoc-ref %outputs "out")))
4081 (list (string-append "PREFIX=" out)
4082 (string-append "SYSCONFDIR=" out "/etc")))
4084 (modify-phases %standard-phases
4087 'install 'wrap-gamine
4088 (lambda* (#:key outputs #:allow-other-keys)
4089 (let ((out (assoc-ref outputs "out"))
4090 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4091 (wrap-program (string-append out "/bin/gamine")
4092 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4094 (home-page "http://gamine-game.sourceforge.net/")
4095 (synopsis "Mouse and keyboard discovery for children")
4097 "Gamine is a game designed for young children who are learning to use the
4098 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4099 on the screen and keyboard to display letters.")
4100 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4101 (license license:gpl3)))
4103 (define-public manaplus
4106 (version "1.9.3.23")
4110 "https://repo.manaplus.org/manaplus/download/"
4111 version "/manaplus-" version ".tar.xz"))
4114 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4115 (build-system gnu-build-system)
4118 (list (string-append "CPPFLAGS=-I"
4119 (assoc-ref %build-inputs "sdl-union")
4122 `(("pkg-config" ,pkg-config)))
4126 ("libxml2" ,libxml2)
4128 ("sdl-union" ,(sdl-union))))
4129 (home-page "https://manaplus.org")
4130 (synopsis "Client for 'The Mana World' and similar games")
4132 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4133 fully supported client for @uref{http://www.themanaworld.org, The mana
4134 world}, @uref{http://evolonline.org, Evol Online} and
4135 @uref{http://landoffire.org, Land of fire}.")
4136 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4137 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4138 ;; The rest is under GPL2+.
4139 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4141 (define openttd-engine
4143 (name "openttd-engine")
4146 (origin (method url-fetch)
4147 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4148 version "/openttd-" version "-source.tar.xz"))
4151 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4152 (build-system gnu-build-system)
4154 `(#:tests? #f ; no "check" target
4156 (modify-phases %standard-phases
4157 ;; The build process fails if the configure script is passed the
4158 ;; option "--enable-fast-install".
4160 (lambda* (#:key inputs outputs (configure-flags '())
4162 (let ((out (assoc-ref outputs "out"))
4163 (lzo (assoc-ref inputs "lzo")))
4164 (apply invoke "./configure"
4165 (string-append "--prefix=" out)
4166 ;; Provide the "lzo" path.
4167 (string-append "--with-liblzo2="
4168 lzo "/lib/liblzo2.a")
4169 ;; Put the binary in 'bin' instead of 'games'.
4171 configure-flags)))))))
4172 (native-inputs `(("pkg-config" ,pkg-config)))
4174 `(("allegro" ,allegro)
4175 ("fontconfig" ,fontconfig)
4176 ("freetype" ,freetype)
4183 (synopsis "Transportation economics simulator game")
4184 (description "OpenTTD is a game in which you transport goods and
4185 passengers by land, water and air. It is a re-implementation of Transport
4186 Tycoon Deluxe with many enhancements including multiplayer mode,
4187 internationalization support, conditional orders and the ability to clone,
4188 autoreplace and autoupdate vehicles. This package only includes the game
4189 engine. When you start it you will be prompted to download a graphics set.")
4190 (home-page "https://www.openttd.org/")
4191 ;; This package is GPLv2, except for a few files located in
4192 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4193 ;; licenses. In addition, this software contains an in-game downloader
4194 ;; from which the user may find non-functional data licensed under
4196 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4198 (define openttd-opengfx
4200 (name "openttd-opengfx")
4205 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4206 version "/opengfx-" version "-source.tar.xz"))
4209 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4210 (build-system gnu-build-system)
4212 '(#:make-flags (list "CC=gcc"
4213 (string-append "INSTALL_DIR="
4214 (assoc-ref %outputs "out")
4215 "/share/games/openttd/baseset/opengfx"))
4217 (modify-phases %standard-phases
4220 ;; Make sure HOME is writable for GIMP.
4221 (setenv "HOME" (getcwd))
4223 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4224 ;; dos2unix from receiving its version information as a flag.
4225 (substitute* "Makefile"
4226 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4227 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4228 ;; The check phase for this package only checks the md5sums of the built
4229 ;; GRF files against the md5sums of the release versions. Because we use
4230 ;; different software versions than upstream does, some of the md5sums
4231 ;; are different. However, the package is still reproducible, it's safe
4232 ;; to disable this test.
4234 #:parallel-build? #f))
4235 (native-inputs `(("dos2unix" ,dos2unix)
4237 ("grfcodec" ,grfcodec)
4240 ("python" ,python-2)))
4241 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4242 (synopsis "Base graphics set for OpenTTD")
4244 "The OpenGFX project is an implementation of the OpenTTD base graphics
4245 set that aims to ensure the best possible out-of-the-box experience.
4247 OpenGFX provides you with...
4249 @item All graphics you need to enjoy OpenTTD.
4250 @item Uniquely drawn rail vehicles for every climate.
4251 @item Completely snow-aware rivers.
4252 @item Different river and sea water.
4253 @item Snow-aware buoys.
4255 (license license:gpl2)))
4257 (define openttd-opensfx
4259 (name "openttd-opensfx")
4265 "https://binaries.openttd.org/extra/opensfx/"
4266 version "/opensfx-" version "-source.tar.gz"))
4269 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4270 (build-system gnu-build-system)
4272 `(("catcodec" ,catcodec)
4273 ("python" ,python-2)))
4276 (list (string-append "INSTALL_DIR=" %output
4277 "/share/games/openttd/baseset/opensfx"))
4279 (modify-phases %standard-phases
4280 (add-after 'unpack 'make-reproducible
4282 ;; Remove the time dependency of the installed tarball by setting
4283 ;; the modification times if its members to 0.
4284 (substitute* "scripts/Makefile.def"
4285 (("-cf") " --mtime=@0 -cf"))
4287 (delete 'configure))))
4288 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4289 (synopsis "Base sounds for OpenTTD")
4290 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4291 it possible to play OpenTTD without requiring the proprietary sound files from
4292 the original Transport Tycoon Deluxe.")
4293 (license license:cc-sampling-plus-1.0)))
4295 (define openttd-openmsx
4297 (name "openttd-openmsx")
4303 "https://binaries.openttd.org/extra/openmsx/"
4304 version "/openmsx-" version "-source.tar.gz"))
4307 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4308 (build-system gnu-build-system)
4310 `(("python" ,python-2)))
4313 (list (string-append "INSTALL_DIR=" %output
4314 "/share/games/openttd/baseset"))
4316 (modify-phases %standard-phases
4318 (add-after 'install 'post-install
4319 ;; Rename openmsx-version to openmsx
4320 (lambda* (#:key outputs #:allow-other-keys)
4321 (let ((install-directory (string-append (assoc-ref outputs "out")
4322 "/share/games/openttd/baseset")))
4323 (rename-file (string-append install-directory "/openmsx-" ,version)
4324 (string-append install-directory "/openmsx"))
4326 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4327 (synopsis "Music set for OpenTTD")
4328 (description "OpenMSX is a music set for OpenTTD which makes it possible
4329 to play OpenTTD without requiring the proprietary music from the original
4330 Transport Tycoon Deluxe.")
4331 (license license:gpl2)))
4333 (define-public openttd
4335 (inherit openttd-engine)
4339 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4341 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4343 `(modify-phases ,phases
4344 (add-after 'install 'install-data
4345 (lambda* (#:key inputs outputs #:allow-other-keys)
4348 (copy-recursively (assoc-ref inputs input)
4349 (assoc-ref outputs "out")))
4350 (list "opengfx" "openmsx" "opensfx"))
4353 `(("timidity++" ,timidity++)
4354 ,@(package-inputs openttd-engine)))
4356 `(("opengfx" ,openttd-opengfx)
4357 ("openmsx" ,openttd-openmsx)
4358 ("opensfx" ,openttd-opensfx)
4359 ,@(package-native-inputs openttd-engine)))))
4361 (define openrct2-title-sequences
4363 (name "openrct2-title-sequences")
4368 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4369 version "/title-sequence-v" version ".zip"))
4370 (file-name (string-append name "-" version ".zip"))
4373 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4374 (build-system trivial-build-system)
4377 ("coreutils" ,coreutils)
4380 `(#:modules ((guix build utils))
4383 (use-modules (guix build utils))
4384 (let* ((out (assoc-ref %outputs "out"))
4385 (openrct2-title-sequences (string-append out
4386 "/share/openrct2/title-sequences"))
4387 (source (assoc-ref %build-inputs "source"))
4388 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4389 (copy-file source (string-append ,name "-" ,version ".zip"))
4390 (invoke unzip (string-append ,name "-" ,version ".zip"))
4391 (delete-file (string-append ,name "-" ,version ".zip"))
4392 (mkdir-p openrct2-title-sequences)
4393 (copy-recursively "."
4394 openrct2-title-sequences)
4396 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4397 (synopsis "Title sequences for OpenRCT2")
4399 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4400 (license license:gpl3+)))
4402 (define openrct2-objects
4404 (name "openrct2-objects")
4409 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4410 version "/objects.zip"))
4411 (file-name (string-append name "-" version ".zip"))
4413 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4414 (build-system trivial-build-system)
4417 ("coreutils" ,coreutils)
4420 `(#:modules ((guix build utils))
4423 (use-modules (guix build utils))
4424 (let* ((out (assoc-ref %outputs "out"))
4425 (openrct2-objects (string-append out
4426 "/share/openrct2/objects"))
4427 (source (assoc-ref %build-inputs "source"))
4428 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4429 (copy-file source (string-append ,name "-" ,version ".zip"))
4430 (invoke unzip (string-append ,name "-" ,version ".zip"))
4431 (delete-file (string-append ,name "-" ,version ".zip"))
4432 (mkdir-p openrct2-objects)
4433 (copy-recursively "."
4436 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4437 (synopsis "Objects for OpenRCT2")
4439 "openrct2-objects is a set of objects for OpenRCT2.")
4440 (license license:gpl3+)))
4442 (define-public openrct2
4450 (url "https://github.com/OpenRCT2/OpenRCT2")
4451 (commit (string-append "v" version))))
4452 (file-name (git-file-name name version))
4454 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4455 (build-system cmake-build-system)
4457 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4458 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4459 #:tests? #f ; tests require network access
4461 (modify-phases %standard-phases
4462 (add-after 'unpack 'fix-usr-share-paths&add-data
4463 (lambda* (#:key inputs outputs #:allow-other-keys)
4464 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4465 (objects (assoc-ref inputs "openrct2-objects")))
4466 ;; Fix some references to /usr/share.
4467 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4469 (string-append (assoc-ref %outputs "out") "/share")))
4471 (string-append titles "/share/openrct2/title-sequences")
4474 (string-append objects "/share/openrct2/objects")
4476 (add-before 'configure 'get-rid-of-errors
4478 ;; Don't treat warnings as errors.
4479 (substitute* "CMakeLists.txt"
4482 (inputs `(("curl" ,curl)
4483 ("duktape" ,duktape)
4484 ("fontconfig" ,fontconfig)
4485 ("freetype" ,freetype)
4487 ("jansson" ,jansson)
4491 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4492 ("openrct2-objects" ,openrct2-objects)
4493 ("openrct2-title-sequences" ,openrct2-title-sequences)
4494 ("openssl" ,openssl)
4496 ("speexdsp" ,speexdsp)
4499 `(("pkg-config" ,pkg-config)))
4500 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4501 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4502 (description "OpenRCT2 is a free software re-implementation of
4503 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4504 maintaining an amusement park containing attractions, shops and facilities.
4506 Note that this package does @emph{not} provide the game assets (sounds,
4508 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4509 ;; regarding assets.
4510 (license license:gpl3+)))
4512 (define-public pinball
4517 (origin (method url-fetch)
4518 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4519 "pinball-" version "/"
4520 "pinball-" version ".tar.gz"))
4523 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4524 (patches (search-patches "pinball-const-fix.patch"
4525 "pinball-cstddef.patch"
4526 "pinball-missing-separators.patch"
4527 "pinball-src-deps.patch"
4528 "pinball-system-ltdl.patch"))))
4529 (build-system gnu-build-system)
4534 ("sdl-image" ,sdl-image)
4535 ("sdl-mixer" ,sdl-mixer)))
4538 (list (string-append "CPPFLAGS=-I"
4539 (assoc-ref %build-inputs "sdl-image")
4541 (assoc-ref %build-inputs "sdl-mixer")
4543 (home-page "http://pinball.sourceforge.net")
4544 (synopsis "Pinball simulator")
4545 (description "The Emilia Pinball Project is a pinball simulator. There
4546 are only two levels to play with, but they are very addictive.")
4547 (license license:gpl2)))
4549 (define-public pioneers
4555 (uri (string-append "https://downloads.sourceforge.net/pio/"
4556 "pioneers-" version ".tar.gz"))
4559 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4560 (build-system gnu-build-system)
4561 (inputs `(("avahi" ,avahi)
4563 ("librsvg" ,librsvg)))
4564 (native-inputs `(("intltool" ,intltool)
4565 ("itstool" ,itstool)
4566 ("libxml2" ,libxml2)
4567 ("pkg-config" ,pkg-config)))
4568 (synopsis "Board game inspired by The Settlers of Catan")
4569 (description "Pioneers is an emulation of the board game The Settlers of
4570 Catan. It can be played on a local network, on the internet, and with AI
4572 (home-page "http://pio.sourceforge.net/")
4573 (license license:gpl2+)))
4575 (define-public einstein
4581 (uri (string-append "mirror://debian/pool/main/e/"
4582 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4585 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4586 (patches (search-patches "einstein-build.patch"))))
4587 (build-system gnu-build-system)
4589 `(("freetype" ,freetype)
4590 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4593 `(("font-dejavu" ,font-dejavu)))
4595 `(#:tests? #f ; no check target
4597 (modify-phases %standard-phases
4599 (lambda* (#:key outputs inputs #:allow-other-keys)
4600 (let ((out (assoc-ref outputs "out"))
4601 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4602 "/share/fonts/truetype/DejaVuSans.ttf")))
4603 (substitute* "Makefile"
4604 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4605 ;; The patch above registers a free font for use by the binary,
4606 ;; but the font is copied during the compile phase into a
4607 ;; resources file, so we need to make the ttf file available.
4608 (symlink dejavu "res/DejaVuSans.ttf")
4610 (synopsis "Logic puzzle game")
4611 (description "The goal of this logic game is to open all cards in a 6x6
4612 grid, using a number of hints as to their relative position. The game idea
4613 is attributed to Albert Einstein.")
4614 ;; The original home page has disappeared.
4615 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4616 "http://games.flowix.com/en/index.html"))
4617 ;; License according to
4618 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4619 ;; The source code is a DFSG-sanitized tarball and does not contain any
4620 ;; license information.
4621 (license license:gpl3+)))
4623 (define-public powwow
4630 "https://www.hoopajoo.net/static/projects/powwow-"
4634 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4636 `(("ncurses" ,ncurses)))
4637 (build-system gnu-build-system)
4638 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4639 (synopsis "MUD and telnet client")
4641 "POWWOW is a client software which can be used for telnet as well as for
4642 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4643 the chat server psyced with the specific config located at
4644 http://lavachat.symlynx.com/unix/")
4645 (license license:gpl2+)))
4647 (define-public red-eclipse
4648 (let ((release "2.0.0")
4651 (name "red-eclipse")
4652 (version (if (zero? revision)
4654 (string-append release "-"
4655 (number->string revision))))
4660 (url "https://github.com/redeclipse/base")
4661 (commit (string-append "v" release))
4662 (recursive? #t))) ; for game data
4663 (file-name (git-file-name name version))
4665 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4666 (modules '((guix build utils)))
4668 ;; Remove proprietary libraries and other pre-compiled binaries.
4670 (delete-file-recursively "bin")
4672 (build-system gnu-build-system)
4674 `(#:tests? #f ; no check target
4675 #:make-flags (list "CC=gcc" "-Csrc"
4676 (string-append "INSTDIR="
4677 (assoc-ref %outputs "out") "/bin")
4678 (string-append "prefix="
4679 (assoc-ref %outputs "out")))
4681 (modify-phases %standard-phases
4682 (add-after 'unpack 'add-store-data-package-path-as-default
4683 (lambda* (#:key outputs #:allow-other-keys)
4684 (substitute* "src/engine/server.cpp"
4685 (("data = \"data\"")
4686 (string-append "data = \""
4687 (assoc-ref outputs "out")
4688 "/share/redeclipse/data\"")))
4690 (delete 'configure) ; no configure script
4691 (add-after 'set-paths 'set-sdl-paths
4692 (lambda* (#:key inputs #:allow-other-keys)
4694 (string-append (assoc-ref inputs "sdl-union")
4696 (or (getenv "CPATH") "")))
4698 (add-after 'install 'copy-data
4699 (lambda* (#:key outputs #:allow-other-keys)
4700 (let ((out (assoc-ref outputs "out")))
4701 (copy-recursively "config"
4702 (string-append out "/config"))
4703 (copy-file "doc/examples/servinit.cfg"
4704 (string-append out "/config/servinit.cfg"))
4705 (copy-recursively "data"
4706 (string-append out "/share/redeclipse/data"))
4707 (mkdir-p (string-append out "/lib/redeclipse"))
4708 (symlink (string-append out "/share/redeclipse/data")
4709 (string-append out "/lib/redeclipse/data")))
4711 (add-after 'copy-data 'wrap-program
4712 (lambda* (#:key inputs outputs #:allow-other-keys)
4713 (let* ((out (assoc-ref outputs "out"))
4714 (bin (string-append out "/bin")))
4715 (with-directory-excursion bin
4716 (rename-file "redeclipse_linux"
4717 ".redeclipse_linux-real")
4718 (rename-file "redeclipse_server_linux"
4719 ".redeclipse_server_linux-real")
4720 (call-with-output-file "redeclipse_linux"
4722 (format port "#!~a/bin/sh
4723 # Run the thing from its home, otherwise it just bails out.
4725 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4726 (assoc-ref inputs "bash") ;implicit input
4728 (string-append bin))))
4729 (call-with-output-file "redeclipse_server_linux"
4731 (format port "#!~a/bin/sh
4732 # Run the thing from its home, otherwise it just bails out.
4734 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4735 (assoc-ref inputs "bash") ;implicit input
4737 (string-append bin))))
4738 (chmod "redeclipse_linux" #o555)
4739 (chmod "redeclipse_server_linux" #o555)))
4742 `(("pkg-config" ,pkg-config)))
4745 ("freetype" ,freetype)
4747 ("sdl-union" ,(sdl-union (list sdl2
4750 (home-page "https://redeclipse.net/")
4751 (synopsis "Arena shooter derived from the Cube 2 engine")
4753 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4754 Offering an innovative parkour system and distinct but all potent weapons,
4755 Red Eclipse provides fast paced and accessible gameplay.")
4756 ;; The engine is under Zlib; data files are covered by the other
4757 ;; licenses. More details at file:///doc/all-licenses.txt.
4758 (license (list license:expat
4764 license:public-domain
4765 license:silofl1.1)))))
4767 (define-public grue-hunter
4769 (name "grue-hunter")
4773 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4776 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4777 (build-system trivial-build-system) ; no Makefile.PL
4778 (arguments `(#:modules ((guix build utils))
4781 (use-modules (guix build utils))
4782 (use-modules (srfi srfi-1))
4784 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4785 (perl (string-append (assoc-ref %build-inputs
4788 (gzip (string-append (assoc-ref %build-inputs
4791 (tar (string-append (assoc-ref %build-inputs
4794 (out (assoc-ref %outputs "out"))
4795 (bin (string-append out "/bin"))
4796 (doc (string-append out
4797 "/share/doc/grue-hunter")))
4798 (copy-file tarball "grue-hunter.tar.gz")
4799 (invoke gzip "-d" "grue-hunter.tar.gz")
4800 (invoke tar "xvf" "grue-hunter.tar")
4803 (copy-file "grue-hunter/gh.pl"
4804 (string-append bin "/grue-hunter"))
4805 (patch-shebang (string-append bin "/grue-hunter")
4808 (install-file "grue-hunter/AGPLv3.txt" doc)
4811 (inputs `(("perl" ,perl)
4814 ("tarball" ,source)))
4815 (home-page "https://jxself.org/grue-hunter.shtml")
4816 (synopsis "Text adventure game")
4818 "Grue Hunter is a text adventure game written in Perl. You must make
4819 your way through an underground cave system in search of the Grue. Can you
4820 capture it and get out alive?")
4821 (license license:agpl3+)))
4823 (define-public lierolibre
4829 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4830 version "/+download/lierolibre-"
4834 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4836 (search-patches "lierolibre-check-unaligned-access.patch"
4837 "lierolibre-try-building-other-arch.patch"
4838 "lierolibre-remove-arch-warning.patch"
4839 "lierolibre-newer-libconfig.patch"
4840 "lierolibre-is-free-software.patch"))
4841 (modules '((guix build utils)))
4844 ;; Delete pre-compiled files.
4845 (delete-file "data/LIERO.CHR")
4846 (delete-file "data/LIERO.SND")
4848 (build-system gnu-build-system)
4850 `(("imagemagick" ,imagemagick)
4851 ("pkg-config" ,pkg-config)
4852 ("util-linux" ,util-linux)
4856 ("libconfig" ,libconfig)
4857 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4859 (home-page "https://gitlab.com/lierolibre/lierolibre")
4860 (synopsis "Old-school earthworm action game")
4862 "lierolibre is an earthworm action game where you fight another player
4863 (or the computer) underground using a wide array of weapons.
4867 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4868 and Game of Tag, plus AI-players without true intelligence!
4869 @item Dat nostalgia.
4870 @item Extensions via a hidden F1 menu:
4873 @item Game controller support
4874 @item Powerlevel palettes
4876 @item Ability to write game variables to plain text files.
4877 @item Ability to load game variables from both EXE and plain text files.
4878 @item Scripts to extract and repack graphics, sounds and levels.
4881 To switch between different window sizes, use F6, F7 and F8, to switch to
4882 fullscreen, use F5 or Alt+Enter.")
4883 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4884 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4886 (define-public tennix
4894 (url "https://repo.or.cz/tennix.git")
4895 (commit (string-append "tennix-" version))))
4896 (file-name (git-file-name name version))
4898 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4899 ;; Remove non-free images.
4900 (modules '((guix build utils)))
4903 (for-each delete-file
4904 '("data/loc_training_camp.png"
4905 "data/loc_austrian_open.png"
4906 "data/loc_olympic_green_tennis.png"))
4908 (build-system gnu-build-system)
4910 `(#:tests? #f ;no test
4912 (modify-phases %standard-phases
4913 (add-after 'unpack 'fix-include
4915 (substitute* '("src/graphics.h" "src/sound.h")
4916 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4917 (string-append "#include \"SDL/" header "\"")))
4918 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4919 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4920 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4922 (add-after 'unpack 'locate-install
4923 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4925 (substitute* "makefile"
4926 (("^CONFIGURE_OUTPUT :=.*" all)
4927 (string-append "INSTALL := install -c\n" all)))
4930 ;; The "configure" script is picky about the arguments it
4931 ;; gets. Call it ourselves.
4933 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4935 `(("which" ,which)))
4937 `(("python" ,python-wrapper)
4938 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4939 (home-page "http://icculus.org/tennix/")
4940 (synopsis "Play tennis against the computer or a friend")
4941 (description "Tennix is a 2D tennis game. You can play against the
4942 computer or against another player using the keyboard. The game runs
4943 in-window at 640x480 resolution or fullscreen.")
4944 ;; Project is licensed under GPL2+ terms. It includes images
4945 ;; released under Public Domain terms, and SDL_rotozoom, released
4946 ;; under LGPL2.1 terms.
4947 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4949 (define-public warzone2100
4951 (name "warzone2100")
4956 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4958 "/warzone2100_src.tar.xz"))
4960 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4961 (modules '((guix build utils)))
4964 (with-directory-excursion "3rdparty"
4966 delete-file-recursively
4971 (build-system cmake-build-system)
4973 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4974 "-DENABLE_DISCORD=off")
4975 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4977 (modify-phases %standard-phases
4978 (add-after 'unpack 'fix-utfcpp-include
4980 (substitute* "lib/framework/wzstring.cpp"
4981 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4983 (add-after 'unpack 'link-tests-with-qt
4985 (substitute* "tests/Makefile.am"
4986 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4987 (string-append prefix "$(QT5_LIBS) ")))
4989 (add-after 'unpack 'fix-ivis-linktest
4991 (substitute* "tests/ivis_linktest.cpp"
4992 (("iV_DrawTextRotated.*;")
4993 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4994 "100, 100, 0.0f, font_regular);")))
4996 (native-inputs `(("asciidoc" ,asciidoc)
4997 ("asciidoctor" ,ruby-asciidoctor)
4998 ("gettext" ,gettext-minimal)
4999 ("pkg-config" ,pkg-config)
5001 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5003 (inputs `(("curl" ,curl)
5004 ("fontconfig" ,fontconfig)
5005 ("freetype" ,freetype)
5007 ("harfbuzz" ,harfbuzz)
5008 ("libtheora" ,libtheora)
5009 ("libvorbis" ,libvorbis)
5010 ("libxrandr" ,libxrandr)
5011 ("libsodium" ,libsodium)
5012 ("miniupnpc" ,miniupnpc)
5016 ("qtscript" ,qtscript)
5017 ("openssl" ,openssl)
5019 ("utfcpp" ,utfcpp)))
5020 (home-page "https://wz2100.net")
5021 (synopsis "3D Real-time strategy and real-time tactics game")
5023 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5024 modes. An extensive tech tree with over 400 different technologies, combined
5025 with the unit design system, allows for a wide variety of possible units and
5027 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5028 (license (list license:bsd-3
5033 license:lgpl2.1+))))
5035 (define-public widelands
5042 (uri (string-append "https://launchpad.net/widelands/"
5043 "build" version "/build" version "/+download/"
5044 "widelands-build" version "-source.tar.gz"))
5046 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5047 (modules '((guix build utils)))
5050 (delete-file-recursively "src/third_party/minizip")
5053 ;; Use system Minizip. Patch is provided by Debian, and discussed
5054 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5055 (search-patches "widelands-system-wide_minizip.patch"))))
5056 (build-system cmake-build-system)
5059 (let* ((out (assoc-ref %outputs "out"))
5060 (share (string-append out "/share")))
5061 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5062 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5063 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5064 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5065 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5066 ;; type. When used, no game data is installed!
5067 "-DCMAKE_BUILD_TYPE=Release"))
5069 (modify-phases %standard-phases
5070 (add-after 'unpack 'unbundle-fonts
5071 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5072 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5073 (lambda* (#:key inputs #:allow-other-keys)
5074 (with-directory-excursion "data/i18n/fonts"
5075 (for-each (lambda (font)
5076 (delete-file-recursively font)
5077 (symlink (string-append (assoc-ref inputs font)
5078 "/share/fonts/truetype")
5080 '("DejaVu" "MicroHei")))
5083 `(("gettext" ,gettext-minimal)
5084 ("python" ,python-wrapper)))
5090 ("minizip" ,minizip)
5091 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5093 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5094 ("DejaVu" ,font-dejavu)
5095 ("MicroHei" ,font-wqy-microhei)))
5096 (home-page "https://www.widelands.org/")
5097 (synopsis "Fantasy real-time strategy game")
5099 "In Widelands, you are the regent of a small clan. You start out with
5100 nothing but your headquarters, where all your resources are stored.
5102 In the course of the game, you will build an ever growing settlement. Every
5103 member of your clan will do his or her part to produce more resources---wood,
5104 food, iron, gold and more---to further this growth. The economic network is
5105 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5108 As you are not alone in the world, you will meet other clans sooner or later.
5109 Some of them may be friendly and you may eventually trade with them. However,
5110 if you want to rule the world, you will have to train soldiers and fight.
5112 Widelands offers single-player mode with different campaigns; the campaigns
5113 all tell stories of tribes and their struggle in the Widelands universe!
5114 However, settling really starts when you unite with friends over the Internet
5115 or LAN to build up new empires together---or to crush each other in the dusts
5116 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5117 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5118 ;; different licenses.
5119 (license (list license:gpl2+
5120 license:expat ;src/third_party/eris
5121 license:silofl1.1 ;Widelands.ttf
5122 license:cc-by-sa3.0)))) ;some music files
5124 (define-public starfighter
5126 (name "starfighter")
5131 "https://github.com/pr-starfighter/starfighter/releases"
5132 "/download/v" version "/starfighter-"
5133 version "-src.tar.gz"))
5136 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5137 (build-system gnu-build-system)
5139 `(("pkg-config" ,pkg-config)))
5143 ("sdl2-image" ,sdl2-image)
5144 ("sdl2-mixer" ,sdl2-mixer)
5145 ("sdl2-ttf" ,sdl2-ttf)))
5146 (home-page "https://pr-starfighter.github.io/")
5147 (synopsis "2D scrolling shooter game")
5149 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5150 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5151 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5152 way, you will encounter new foes, make new allies, and assist local rebels
5153 in strikes against the evil corporation.")
5154 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5155 (license (list license:gpl3+
5159 license:public-domain))))
5161 (define-public chromium-bsu
5163 (name "chromium-bsu")
5164 (version "0.9.16.1")
5167 (uri (string-append "mirror://sourceforge/chromium-bsu"
5168 "/Chromium B.S.U. source code/"
5169 "chromium-bsu-" version ".tar.gz"))
5172 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5173 (build-system gnu-build-system)
5174 (native-inputs `(("pkg-config" ,pkg-config)))
5175 (inputs `(("gettext" ,gettext-minimal)
5177 ("quesoglc" ,quesoglc)
5178 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5179 (home-page "http://chromium-bsu.sourceforge.net/")
5180 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5182 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5183 are responsible for delivering supplies to the troops on the front line. Your
5184 ship has a small fleet of robotic fighters which you control from the relative
5185 safety of the Chromium vessel.")
5186 ;; Clarified Artistic License for everything but sound, which is covered
5187 ;; by the Expat License.
5188 (license (list license:clarified-artistic license:expat))))
5190 (define-public tuxpaint
5193 (version "0.9.23") ;keep VER_DATE below in sync
5197 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5198 version "/tuxpaint-" version ".tar.gz"))
5201 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5202 (modules '((guix build utils)))
5205 ;; Remove win32 directory which contains binary dll's and the
5206 ;; deprecated visualc directory.
5207 (for-each delete-file-recursively '("win32" "visualc"))
5208 (substitute* "Makefile"
5209 ;; Do not rely on $(GPERF) being an absolute file name
5210 (("\\[ -x \\$\\(GPERF\\) \\]")
5211 "$(GPERF) --version >/dev/null 2>&1"))
5213 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5214 (build-system gnu-build-system)
5217 ("pkg-config" ,pkg-config)))
5220 ("fribidi" ,fribidi)
5221 ("gettext" ,gettext-minimal)
5223 ("librsvg" ,librsvg)
5224 ("libpaper" ,libpaper)
5226 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5227 ;; TODO: Use system fonts rather than those in data/fonts
5229 `(#:make-flags `("VER_DATE=2018-09-02"
5230 "GPERF=gperf" "CC=gcc"
5231 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5232 ,(string-append "PREFIX=" %output)
5233 "KDE_PREFIX=$(PREFIX)/share/applications"
5234 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5235 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5236 #:parallel-build? #f ;fails on some systems
5237 #:tests? #f ;No tests
5238 #:phases (modify-phases %standard-phases
5239 (delete 'configure) ;no configure phase
5240 (add-before 'install 'no-sys-cache
5241 (lambda _ ;do not rebuild system conf cache
5242 (substitute* "Makefile"
5243 (("kbuildsycoca4") ""))
5245 (add-after 'install 'fix-import
5246 (lambda* (#:key inputs outputs #:allow-other-keys)
5247 (let* ((out (assoc-ref outputs "out"))
5248 (net (assoc-ref inputs "netpbm"))
5249 (tpi (string-append out "/bin/tuxpaint-import")))
5251 ;; Point to installation prefix so that the default
5252 ;; configure file is found.
5253 (("/usr/local") out))
5254 ;; tuxpaint-import uses a bunch of programs from
5255 ;; netpbm, so make sure it knows where those are
5258 (,(string-append net "/bin"))))))))))
5259 (native-search-paths
5260 (list (search-path-specification
5261 (variable "TUXPAINT_STAMPS_PATH")
5262 (files '("share/tuxpaint/stamps")))))
5263 (home-page "http://www.tuxpaint.org")
5264 (synopsis "Drawing software for children")
5266 "Tux Paint is a free drawing program designed for young children (kids
5267 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5268 and an encouraging cartoon mascot who helps guide children as they use the
5269 program. It provides a blank canvas and a variety of drawing tools to help
5270 your child be creative.")
5271 (license license:gpl2+)))
5273 (define-public tuxpaint-stamps
5275 (name "tuxpaint-stamps")
5276 (version "2018.09.01")
5280 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5281 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5282 "/tuxpaint-stamps-" version ".tar.gz"))
5285 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5286 (build-system trivial-build-system)
5291 `(#:modules ((guix build utils))
5293 (use-modules (guix build utils))
5296 (assoc-ref %build-inputs "tar") "/bin" ":"
5297 (assoc-ref %build-inputs "gzip") "/bin"))
5298 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5299 (chdir (string-append ,name "-" ,version))
5300 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5302 (copy-recursively "stamps" dir))
5304 (home-page (package-home-page tuxpaint))
5305 (synopsis "Stamp images for Tux Paint")
5307 "This package contains a set of \"Rubber Stamp\" images which can be used
5308 with the \"Stamp\" tool within Tux Paint.")
5309 (license license:gpl2+)))
5311 (define-public tuxpaint-config
5313 (name "tuxpaint-config")
5314 (version "0.0.14") ;keep VER_DATE below in sync
5318 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5319 version "/tuxpaint-config-" version ".tar.gz"))
5322 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5323 (build-system gnu-build-system)
5325 `(("gettext" ,gettext-minimal)))
5328 ("libpaper" ,libpaper)
5329 ;; TODO: Should the following be propagated by fltk?
5334 `(#:make-flags `("VER_DATE=2018-09-01"
5335 "CONFDIR=/etc/tuxpaint" ;don't write to store
5336 ,(string-append "PREFIX=" %output)
5337 "GNOME_PREFIX=$(PREFIX)")
5338 #:parallel-build? #f ;race conditions
5339 #:tests? #f ;no tests
5340 #:phases (modify-phases %standard-phases
5341 (delete 'configure) ;no configure phase
5342 (add-before 'install 'gzip-no-name
5344 (substitute* "Makefile"
5345 ;; tuxpaint-config compresses its own documentation;
5346 ;; make sure it uses flags for reproducibility.
5347 (("gzip") "gzip --no-name"))))
5348 (add-before 'install 'make-install-dirs
5349 (lambda* (#:key outputs #:allow-other-keys)
5350 (let ((out (assoc-ref outputs "out")))
5351 (mkdir-p (string-append out "/bin"))
5353 (home-page (package-home-page tuxpaint))
5354 (synopsis "Configure Tux Paint")
5356 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5357 (license license:gpl2))) ;no "or later" present
5359 (define-public supertux
5365 (uri (string-append "https://github.com/SuperTux/supertux/"
5366 "releases/download/v" version "/SuperTux-v"
5367 version "-Source.tar.gz"))
5368 (file-name (string-append name "-" version ".tar.gz"))
5371 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5373 (search-patches "supertux-unbundle-squirrel.patch"))))
5376 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5377 "-DUSE_SYSTEM_PHYSFS=ON")
5379 (modify-phases %standard-phases
5380 (add-after 'unpack 'patch-squirrel-path
5381 (lambda* (#:key inputs #:allow-other-keys)
5382 (let ((squirrel (assoc-ref inputs "squirrel")))
5383 (substitute* "CMakeLists.txt"
5384 (("set\\(SQUIRREL_PREFIX.*")
5385 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5386 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5387 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5388 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5390 (build-system cmake-build-system)
5391 (inputs `(("sdl2" ,sdl2)
5392 ("sdl2-image" ,sdl2-image)
5393 ("sdl2-mixer" ,sdl2-mixer)
5397 ("libvorbis" ,libvorbis)
5402 ("freetype" ,freetype)
5403 ("squirrel" ,squirrel)))
5405 `(("pkg-config" ,pkg-config)))
5406 (synopsis "2D platformer game")
5407 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5408 a style similar to the original Super Mario games.")
5409 (home-page "https://supertux.org/")
5410 (license license:gpl3+)))
5412 (define-public tintin++
5419 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5420 (string-drop-right version 1)
5421 "/tintin-" version ".tar.gz"))
5423 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5425 `(("gnutls" ,gnutls)
5427 ("readline" ,readline)
5430 '(#:tests? #f ; no test suite
5432 (modify-phases %standard-phases
5433 ;; The source is in tt/src.
5434 (add-before 'configure 'chdir
5438 (build-system gnu-build-system)
5439 (home-page "https://tintin.mudhalla.net/")
5440 (synopsis "MUD client")
5442 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5443 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5444 options used by MUDs, as well as those required to login via telnet on
5445 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5446 (license license:gpl3+)))
5453 (origin (method git-fetch)
5455 (url "https://github.com/sgimenez/laby")
5456 (commit (string-append name "-" version))))
5457 (file-name (git-file-name name version))
5460 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5461 (patches (search-patches "laby-make-install.patch"))))
5462 (build-system gnu-build-system)
5464 `(("lablgtk" ,lablgtk)
5466 ("ocaml-findlib" ,ocaml-findlib)
5467 ("ocamlbuild" ,ocamlbuild)))
5470 (modify-phases %standard-phases
5472 (add-before 'build 'allow-unsafe-strings
5473 ;; Fix a build failure with ocaml >=4.06.0.
5474 ;; See <https://github.com/sgimenez/laby/issues/53>.
5476 (setenv "OCAMLPARAM" "safe-string=0,_")
5478 (add-before 'build 'set-library-path
5479 (lambda* (#:key inputs #:allow-other-keys)
5480 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5481 (setenv "LD_LIBRARY_PATH"
5482 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5483 #:tests? #f ; no 'check' target
5485 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5486 (home-page "https://sgimenez.github.io/laby/")
5487 (synopsis "Programming game")
5488 (description "Learn programming, playing with ants and spider webs ;-)
5489 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5490 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5491 programmers may also add their own favorite language.")
5492 (license license:gpl3+)))
5494 (define-public bambam
5502 (url "https://github.com/porridge/bambam")
5503 (commit (string-append "v" version))))
5504 (file-name (git-file-name name version))
5506 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5507 (build-system python-build-system)
5509 `(#:tests? #f ; no tests
5511 (modify-phases %standard-phases
5512 (delete 'build) ; nothing to build
5514 (lambda* (#:key outputs #:allow-other-keys)
5515 (let* ((out (assoc-ref outputs "out"))
5516 (bin (string-append out "/bin"))
5517 (share (string-append out "/share")))
5519 (copy-file "bambam.py" (string-append bin "/bambam"))
5520 (install-file "bambam.6" (string-append share "/man/man6"))
5521 (copy-recursively "data" (string-append share "/bambam/data")))
5524 `(("python-pygame" ,python-pygame)))
5525 (home-page "https://github.com/porridge/bambam")
5526 (synopsis "Keyboard mashing and doodling game for babies")
5527 (description "Bambam is a simple baby keyboard (and gamepad) masher
5528 application that locks the keyboard and mouse and instead displays bright
5529 colors, pictures, and sounds.")
5530 (license license:gpl3+)))
5532 (define-public mrrescue
5539 "https://github.com/SimonLarsen/mrrescue/releases/"
5540 "download/" version "/mrrescue" version ".love"))
5541 (file-name (string-append name "-" version ".love"))
5544 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5545 (build-system trivial-build-system)
5547 `(#:modules ((guix build utils))
5550 (use-modules (guix build utils))
5551 (let* ((out (assoc-ref %outputs "out"))
5552 (script (string-append out "/bin/" ,name))
5553 (data (string-append out "/share/" ,name))
5554 (source (assoc-ref %build-inputs "source"))
5555 (unzip (string-append (assoc-ref %build-inputs "unzip")
5557 (patch (string-append (assoc-ref %build-inputs "patch")
5559 (bash (string-append (assoc-ref %build-inputs "bash")
5561 (love (string-append (assoc-ref %build-inputs "love")
5564 (mkdir-p (dirname script))
5565 (with-output-to-file script
5567 (format #t "#!~a~%" bash)
5568 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5569 (chmod script #o755)
5571 ;; The better way to package this game would be to install *only* the
5572 ;; script above, pointing to the unextracted .love file in the store.
5573 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5574 ;; Instead of extracting the .love file, patching it, and re-zipping
5575 ;; it to the store, simply point the script to the extracted patched
5576 ;; data directory directly.
5578 (with-directory-excursion data
5579 (invoke unzip source)
5580 (invoke patch "-p1" "-i"
5581 (assoc-ref %build-inputs "love-11.patch")))
5586 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5590 (home-page "https://tangramgames.dk/games/mrrescue")
5591 (synopsis "Arcade-style fire fighting game")
5593 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5594 civilians from burning buildings. The game features fast-paced fire
5595 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5596 throwing people around in pseudo-randomly generated buildings.")
5597 (license (list license:zlib ; for source code
5598 license:cc-by-sa3.0)))) ; for graphics and music assets
5600 (define-public hyperrogue
5604 ;; When updating this package, be sure to update the "hyperrogue-data"
5605 ;; origin in native-inputs.
5609 "https://www.roguetemple.com/z/hyper/hyperrogue"
5610 (string-join (string-split version #\.) "")
5614 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5615 (build-system gnu-build-system)
5617 `(#:tests? #f ; no check target
5618 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5619 "HYPERROGUE_USE_PNG=1")
5621 (modify-phases %standard-phases
5622 (add-after 'set-paths 'set-sdl-paths
5623 (lambda* (#:key inputs #:allow-other-keys)
5625 (string-append (or (getenv "CPATH") "") ":"
5626 (assoc-ref inputs "sdl-union")
5629 (lambda* (#:key inputs outputs #:allow-other-keys)
5630 (let* ((out (assoc-ref outputs "out"))
5631 (share-dir (string-append out "/share/hyperrogue"))
5632 (dejavu-dir (string-append
5633 (assoc-ref inputs "font-dejavu")
5634 "/share/fonts/truetype"))
5635 (dejavu-font "DejaVuSans-Bold.ttf")
5636 (music-file "hyperrogue-music.txt"))
5637 ;; Fix font and music paths.
5638 (substitute* "basegraph.cpp"
5640 (string-append dejavu-dir "/" dejavu-font)))
5641 (substitute* music-file
5643 (string-append share-dir "/sounds/")))
5644 (substitute* "sound.cpp"
5645 (("musicfile = \"\"")
5646 (string-append "musicfile = \""
5647 share-dir "/" music-file "\"")))
5648 ;; Disable build machine CPU optimizations and warnings treated
5650 (substitute* "Makefile"
5651 (("-march=native") "")
5655 (lambda* (#:key inputs outputs #:allow-other-keys)
5656 (let* ((out (assoc-ref outputs "out"))
5657 (bin (string-append out "/bin"))
5658 (share-dir (string-append out "/share/hyperrogue")))
5660 (install-file "hyperrogue" bin)
5661 (install-file "hyperrogue-music.txt" share-dir))
5663 (add-after 'install 'install-data
5664 (lambda* (#:key inputs outputs #:allow-other-keys)
5665 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5666 (out (assoc-ref outputs "out"))
5667 (sounds (string-append out "/share/hyperrogue/sounds"))
5668 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5669 ;; Extract media license information into sounds directory.
5670 (invoke unzip "-j" data
5673 (string-join (string-split ,version #\.) "")
5674 "/sounds/credits.txt") "-d" sounds)
5675 ;; Extract sounds and music into sounds directory.
5676 (invoke "unzip" "-j" data
5679 (string-join (string-split ,version #\.) "")
5680 "/*.ogg") "-d" sounds)))))))
5682 `(("hyperrogue-data"
5687 "https://www.roguetemple.com/z/hyper/hyperrogue"
5688 (string-join (string-split version #\.) "")
5692 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5695 `(("font-dejavu" ,font-dejavu)
5698 ("sdl-union" ,(sdl-union (list sdl
5702 (home-page "https://www.roguetemple.com/z/hyper/")
5703 (synopsis "Non-euclidean graphical rogue-like game")
5705 "HyperRogue is a game in which the player collects treasures and fights
5706 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5707 plane and not in euclidean space.
5709 In HyperRogue, the player can move through different parts of the world, which
5710 are home to particular creatures and may be subject to their own rules of
5713 While the game can use ASCII characters to display the the classical rogue
5714 symbols, it still needs graphics to render the non-euclidean world.")
5715 (license (list license:bsd-3 ; glew.c, mtrand.*
5716 license:cc-by-sa3.0 ; music
5717 license:cc-by-sa4.0 ; sounds
5719 license:public-domain ; direntx.*, some sounds
5720 license:zlib ; savepng.*
5721 license:gpl2+)))) ; remaining files
5723 (define-public kobodeluxe
5729 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5730 version ".tar.bz2"))
5733 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5734 (patches (search-patches
5735 "kobodeluxe-const-charp-conversion.patch"
5736 "kobodeluxe-enemies-pipe-decl.patch"
5737 "kobodeluxe-graphics-window-signed-char.patch"
5738 "kobodeluxe-manpage-minus-not-hyphen.patch"
5739 "kobodeluxe-midicon-segmentation-fault.patch"
5740 "kobodeluxe-paths.patch"))))
5741 (build-system gnu-build-system)
5744 (list (string-append "CPPFLAGS=-I"
5745 (assoc-ref %build-inputs "sdl-union")
5749 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5750 (synopsis "Shooter with space station destruction")
5752 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5753 for Un*x systems with X11.")
5754 (home-page "http://olofson.net/kobodl/")
5755 (license license:gpl2+)))
5757 (define-public freeciv
5764 (uri (list (string-append
5765 "http://files.freeciv.org/stable/freeciv-"
5768 "mirror://sourceforge/freeciv/Freeciv%20"
5769 (version-major+minor version) "/" version
5770 "/freeciv-" version ".tar.bz2")))
5772 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5773 (build-system gnu-build-system)
5776 ("cyrus-sasl" ,cyrus-sasl)
5778 ("sdl-mixer" ,sdl-mixer)
5781 `(("pkg-config" ,pkg-config)))
5782 (home-page "http://www.freeciv.org/")
5783 (synopsis "Turn-based empire building strategy game")
5784 (description "Freeciv is a turn-based empire building strategy game
5785 inspired by the history of human civilization. The game commences in
5786 prehistory and your mission is to lead your tribe from the Stone Age
5787 into the Space Age.")
5788 (license license:gpl2+)))
5790 (define-public no-more-secrets
5792 (name "no-more-secrets")
5798 (url "https://github.com/bartobri/no-more-secrets")
5799 (commit (string-append "v" version))))
5800 (file-name (git-file-name name version))
5802 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5803 (build-system gnu-build-system)
5806 #:make-flags (list "CC=gcc" "all-ncurses"
5807 (string-append "prefix="
5808 (assoc-ref %outputs "out")))
5810 (modify-phases %standard-phases
5811 (delete 'configure))))
5813 `(("ncurses" ,ncurses)))
5814 (home-page "https://github.com/bartobri/no-more-secrets")
5815 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5817 "@code{No More Secrets} provides a command line tool called \"nms\"
5818 that recreates the famous data decryption effect seen on screen in the 1992
5821 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5822 it will apply the hollywood effect, initially showing encrypted data, then
5823 starting a decryption sequence to reveal the original plaintext characters.")
5824 (license license:expat)))
5826 (define-public megaglest-data
5828 (name "megaglest-data")
5834 "https://github.com/MegaGlest/megaglest-data"
5835 "/releases/download/" version "/megaglest-data-"
5839 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5840 (build-system cmake-build-system)
5843 (home-page "https://megaglest.org/")
5844 (synopsis "Data files for MegaGlest")
5845 (description "This package contains the data files required for MegaGlest.")
5846 (license license:cc-by-sa3.0)))
5848 (define-public megaglest
5856 "https://github.com/MegaGlest/megaglest-source"
5857 "/releases/download/" version "/megaglest-source-"
5861 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5862 (build-system cmake-build-system)
5865 ("fontconfig" ,fontconfig)
5868 ("libjpeg-turbo" ,libjpeg-turbo)
5869 ("megaglest-data" ,megaglest-data)
5871 ("miniupnpc" ,miniupnpc)
5873 ("libircclient" ,libircclient)
5875 ("libvorbis" ,libvorbis)
5878 ("wxwidgets" ,wxwidgets)))
5880 `(("cppunit" ,cppunit)
5881 ("pkg-config" ,pkg-config)))
5884 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5885 (assoc-ref %build-inputs "megaglest-data")
5887 "-DBUILD_MEGAGLEST_TESTS=ON")
5889 (modify-phases %standard-phases
5890 (add-after 'unpack 'fix-ini-search-path
5891 (lambda* (#:key outputs #:allow-other-keys)
5892 (substitute* "source/glest_game/global/config.cpp"
5893 (("/usr/share/megaglest/")
5894 (string-append (assoc-ref outputs "out")
5895 "/share/megaglest/"))))))
5896 #:test-target "megaglest_tests"))
5897 (home-page "https://megaglest.org/")
5898 (synopsis "3D real-time strategy (RTS) game")
5899 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5900 game, where you control the armies of one of seven different factions: Tech,
5901 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5902 (license license:gpl2+)))
5904 (define-public freegish
5905 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5909 (version (string-append "0-" revision "." (string-take commit 9)))
5913 (url "https://github.com/freegish/freegish")
5915 (file-name (git-file-name name version))
5918 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5919 (modules '((guix build utils)))
5920 ;; The audio files in the "music" directory are licensed under
5921 ;; CC-BY-NC, so we delete them.
5924 (delete-file-recursively "music")
5926 (build-system cmake-build-system)
5928 `(#:tests? #f ; no tests included
5930 (list "-DCMAKE_INSTALL_FHS=ON")
5932 (modify-phases %standard-phases
5933 (add-after 'unpack 'set-DATAPATH
5934 (lambda* (#:key outputs #:allow-other-keys)
5935 (substitute* "CMakeLists.txt"
5936 (("^option\\(INSTALL_FHS" line)
5937 (string-append "add_definitions(-DDATAPATH=\""
5938 (assoc-ref outputs "out") "/share/freegish\")\n"
5942 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5944 ("libvorbis" ,libvorbis)
5949 (home-page "https://github.com/freegish/freegish")
5950 (synopsis "Side-scrolling physics platformer with a ball of tar")
5951 (description "In FreeGish you control Gish, a ball of tar who lives
5952 happily with his girlfriend Brea, until one day a mysterious dark creature
5953 emerges from a sewer hole and pulls her below ground.")
5954 ;; The textures are available under the Expat license. All other assets
5955 ;; (including levels) are covered under CC-BY-SA or public domain. The
5956 ;; source code is under GPLv2+.
5957 (license (list license:gpl2+
5959 license:public-domain
5960 license:cc-by-sa3.0)))))
5962 (define-public cdogs-sdl
5970 (url "https://github.com/cxong/cdogs-sdl")
5972 (file-name (git-file-name name version))
5974 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5975 (build-system cmake-build-system)
5978 (list (string-append "-DCDOGS_DATA_DIR="
5979 (assoc-ref %outputs "out")
5980 "/share/cdogs-sdl/"))))
5982 `(("pkg-config" ,pkg-config)))
5987 ("sdl2-image" ,sdl2-image)
5988 ("sdl2-mixer" ,sdl2-mixer)))
5989 (home-page "https://cxong.github.io/cdogs-sdl/")
5990 (synopsis "Classic overhead run-and-gun game")
5991 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5992 supporting up to 4 players in co-op and deathmatch modes. Customize your
5993 player, choose from many weapons, and blast, slide and slash your way through
5994 over 100 user-created campaigns.")
5995 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5996 ;; CC0/CC-BY/CC-BY-SA for assets.
5997 (license (list license:gpl2+
6002 license:cc-by-sa3.0))))
6010 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6011 version "/kiki-" version "-src.tgz"))
6014 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6015 (modules '((guix build utils)))
6018 (for-each delete-file (find-files "." "\\.dll$"))
6021 (search-patches "kiki-level-selection-crash.patch"
6022 "kiki-makefile.patch"
6023 "kiki-missing-includes.patch"
6024 "kiki-portability-64bit.patch"))))
6025 (build-system gnu-build-system)
6027 `(#:tests? #f ; there are no tests
6028 #:make-flags '("CXX=g++")
6030 (modify-phases %standard-phases
6032 (lambda* (#:key inputs outputs #:allow-other-keys)
6033 (setenv "CPLUS_INCLUDE_PATH"
6034 (string-append (assoc-ref inputs "sdl-union")
6036 (assoc-ref inputs "python")
6037 "/include/python2.7:"
6038 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6039 (substitute* "src/main/main.cpp"
6040 (("#include <SDL.h>" line)
6041 (string-append line "
6042 #define K_INCLUDE_GLUT
6043 #include \"KIncludeTools.h\""))
6044 (("// initialize SDL" line)
6045 (string-append "glutInit(&argc,argv);\n" line)))
6046 (substitute* "src/main/KikiController.cpp"
6047 (("getenv\\(\"KIKI_HOME\"\\)")
6048 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6049 (substitute* "linux/Makefile"
6051 (string-append line " -fpermissive"))
6052 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6054 (string-append "PYTHONHOME = "
6055 (assoc-ref inputs "python")
6057 (("\\$\\(GLLIBS\\)" line)
6058 (string-append line " -lm -lpython2.7")))
6059 (substitute* "src/main/KikiPythonWidget.h"
6060 (("#define __KikiPythonWidget" line)
6061 (string-append line "\n#include \"KikiPython.h\"")))
6063 (add-before 'build 'build-kodilib
6064 (lambda* (#:key make-flags #:allow-other-keys)
6065 (with-directory-excursion "kodilib/linux"
6066 (apply invoke "make" make-flags))))
6067 (add-after 'build-kodilib 'chdir
6068 (lambda _ (chdir "linux") #t))
6070 (lambda* (#:key outputs #:allow-other-keys)
6071 (let* ((out (assoc-ref outputs "out"))
6072 (bin (string-append out "/bin"))
6073 (share (string-append out "/share/kiki")))
6076 (install-file "kiki" bin)
6077 (copy-recursively "../py" (string-append share "/py"))
6078 (copy-recursively "../sound" (string-append share "/sound"))
6082 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6083 ("freeglut" ,freeglut-2.8)
6084 ("sdl-union" ,(sdl-union (list sdl
6087 ("python" ,python-2)))
6090 (home-page "http://kiki.sourceforge.net/")
6091 (synopsis "3D puzzle game")
6092 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6093 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6094 small robot living in the nano world, repair its maker.")
6095 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6096 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6097 ;; for a statement from the author.
6098 (license license:public-domain)))
6100 (define-public teeworlds
6107 (url "https://github.com/teeworlds/teeworlds")
6109 ;; There are two submodules in datasrc/{languages,maps}
6111 (file-name (git-file-name name version))
6114 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6115 (modules '((guix build utils)
6120 (snippet ; remove bundled libraries except md5
6121 '(let ((base-dir "src/engine/external/"))
6122 (for-each (compose (cut delete-file-recursively <>)
6123 (cut string-append base-dir <>))
6124 (remove (cut string-match "(^.)|(^md5$)" <>)
6125 (scandir base-dir)))
6127 (build-system cmake-build-system)
6129 `(#:tests? #f ; no tests included
6131 (modify-phases %standard-phases
6132 (add-after 'unpack 'patch-paths
6133 (lambda* (#:key outputs #:allow-other-keys)
6134 ;; Embed path to assets.
6135 (substitute* "src/engine/shared/storage.cpp"
6136 (("#define DATA_DIR.*")
6137 (string-append "#define DATA_DIR \""
6138 (assoc-ref outputs "out")
6139 "/share/teeworlds/data"
6143 `(("freetype" ,freetype)
6145 ("json-parser" ,json-parser)
6147 ("pnglite" ,pnglite)
6149 ("sdl2-image" ,sdl2-image)
6150 ("sdl2-mixer" ,sdl2-mixer)
6151 ("wavpack" ,wavpack)
6152 ("openssl" ,openssl)
6155 `(("python" ,python-wrapper)
6156 ("pkg-config" ,pkg-config)))
6157 (home-page "https://www.teeworlds.com")
6158 (synopsis "2D retro multiplayer shooter game")
6159 (description "Teeworlds is an online multiplayer game. Battle with up to
6160 16 players in a variety of game modes, including Team Deathmatch and Capture
6161 The Flag. You can even design your own maps!")
6162 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6164 (define-public enigma
6170 (uri (string-append "mirror://sourceforge/enigma-game/"
6171 "Release%20" version "/enigma-"
6175 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6176 (build-system gnu-build-system)
6179 (list "--with-system-enet")
6181 (modify-phases %standard-phases
6182 (add-after 'unpack 'fix-build-with-new-gcc
6184 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6185 ;; to NULL. Can be removed for versions > 1.21.
6186 (substitute* "src/lev/Proxy.cc"
6190 (add-after 'unpack 'find-sdl
6192 (substitute* "configure"
6193 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6194 (substitute* '("tools/ttf2bmf.cc"
6195 "lib-src/enigma-core/ecl_font.cc"
6196 "lib-src/enigma-core/ecl_video.cc"
6197 "lib-src/enigma-core/ecl_buffer.hh"
6198 "src/SoundEngine.cc"
6199 "src/SoundEngine.hh"
6200 "src/MusicManager.cc"
6201 "src/MusicManager.hh"
6205 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6206 (string-append "#include \"SDL/SDL_" header ".h\"")))
6207 (substitute* "src/main.cc"
6208 (("#include <SDL_(image|ttf|mixer).h>" line header)
6209 (string-append "#include \"SDL/SDL_" header ".h\"")))
6212 `(("xerces-c" ,xerces-c)
6213 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6217 `(("pkg-config" ,pkg-config)
6218 ("imagemagick" ,imagemagick)))
6219 (home-page "https://www.nongnu.org/enigma")
6220 (synopsis "Puzzle game with a dexterity component")
6221 (description "Enigma is a puzzle game with 550 unique levels. The object
6222 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6223 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6224 and most of all, countless hairy puzzles usually block your direct way to the
6225 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6226 get bored) interact in many unexpected ways, and since many of them follow the
6227 laws of physics (Enigma’s special laws of physics, that is), controlling them
6228 with the mouse isn’t always trivial.")
6229 (license license:gpl2+)))
6231 (define-public chroma
6237 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6238 version ".tar.bz2"))
6241 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
6242 (build-system gnu-build-system)
6244 `(#:tests? #f ; no tests included
6245 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6247 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6248 ("freetype" ,freetype)
6249 ("ncurses" ,ncurses)
6250 ("fontconfig" ,fontconfig)
6251 ("libxft" ,libxft)))
6253 `(("pkg-config" ,pkg-config)))
6254 (home-page "http://level7.org.uk/chroma/")
6255 (synopsis "Abstract puzzle game")
6256 (description "Chroma is an abstract puzzle game. A variety of colourful
6257 shapes are arranged in a series of increasingly complex patterns, forming
6258 fiendish traps that must be disarmed and mysterious puzzles that must be
6259 manipulated in order to give up their subtle secrets. Initially so
6260 straightforward that anyone can pick it up and begin to play, yet gradually
6261 becoming difficult enough to tax even the brightest of minds.")
6262 (license license:gpl2+)))
6264 (define-public fillets-ng
6270 (uri (string-append "mirror://sourceforge/fillets/"
6271 "Fish%20Fillets%20-%20Next%20Generation/"
6272 version "/fillets-ng-" version ".tar.gz"))
6275 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6276 (build-system gnu-build-system)
6279 (list (string-append "--with-lua="
6280 (assoc-ref %build-inputs "lua")))
6282 (list (string-append "CFLAGS=-I"
6283 (assoc-ref %build-inputs "sdl-union")
6285 (string-append "CXXFLAGS=-I"
6286 (assoc-ref %build-inputs "sdl-union")
6289 (modify-phases %standard-phases
6290 ;; Lua 5.1 does not provide it.
6291 (add-after 'unpack 'do-not-link-with-lualib
6293 (substitute* "configure"
6296 (add-after 'install 'install-data
6297 (lambda* (#:key inputs outputs #:allow-other-keys)
6298 (let ((data (string-append (assoc-ref outputs "out")
6299 "/share/games/fillets-ng")))
6301 (invoke "tar" "-xvf"
6302 (assoc-ref inputs "fillets-ng-data")
6303 "--strip-components=1"
6306 `(("sdl-union" ,(sdl-union (list sdl
6310 ("fribidi" ,fribidi)
6314 `(("pkg-config" ,pkg-config)
6318 (uri (string-append "mirror://sourceforge/fillets/"
6319 "Fish%20Fillets%20-%20Next%20Generation/"
6320 version "/fillets-ng-data-" version ".tar.gz"))
6323 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6324 (home-page "http://fillets.sourceforge.net/")
6325 (synopsis "Puzzle game")
6326 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6327 every of the seventy levels is always the same: find a safe way out. The fish
6328 utter witty remarks about their surroundings, the various inhabitants of their
6329 underwater realm quarrel among themselves or comment on the efforts of your
6330 fish. The whole game is accompanied by quiet, comforting music.")
6331 (license license:gpl2+)))
6333 (define-public crawl
6340 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6341 version "/stone_soup-" version "-nodeps.tar.xz"))
6343 (base32 "1m81x1sp6p2ka5w2nib3pcw5w5iv58z41c8aqn0dayi1lb3yslfb"))
6344 (patches (search-patches "crawl-upgrade-saves.patch"))))
6345 (build-system gnu-build-system)
6347 `(("lua51" ,lua-5.1)
6348 ("ncurses" ,ncurses)
6355 ("python" ,python-wrapper)
6356 ("python-pyyaml" ,python-pyyaml)
6357 ("pkg-config" ,pkg-config)))
6360 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6361 (out (assoc-ref %outputs "out")))
6362 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6363 (string-append "prefix=" out)
6365 ;; Don't compile with SSE on systems which don't have it.
6366 ,@(match (%current-system)
6367 ((or "i686-linux" "x86_64-linux")
6369 (_ '("NOSSE=TRUE")))
6370 ;; don't build any bundled dependencies
6376 (modify-phases %standard-phases
6377 (add-after 'unpack 'find-SDL-image
6379 (substitute* "source/windowmanager-sdl.cc"
6380 (("SDL_image.h") "SDL2/SDL_image.h"))
6384 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6385 (setenv "HOME" (getcwd))
6386 ;; Fake a terminal for the test cases.
6387 (setenv "TERM" "xterm-256color")
6388 ;; Run the tests that don't require a debug build.
6389 (apply invoke "make" "nondebugtest"
6390 (format #f "-j~d" (parallel-job-count))
6391 ;; Force command line build for test cases.
6392 (append make-flags '("GAME=crawl" "TILES="))))))))
6393 (synopsis "Roguelike dungeon crawler game")
6394 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6395 for short) is a roguelike adventure through dungeons filled with dangerous
6396 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6397 (home-page "https://crawl.develz.org")
6398 (license (list license:gpl2+
6406 ;; The linter here claims that patch file names should start with the package
6407 ;; name. But, in this case, the patches are inherited from crawl with the
6408 ;; "crawl-" prefix instead of "crawl-tiles-".
6409 (define-public crawl-tiles
6412 (name "crawl-tiles")
6414 (substitute-keyword-arguments
6415 (package-arguments crawl)
6416 ((#:make-flags flags)
6417 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6419 (string-append "PROPORTIONAL_FONT=" dejavu
6420 "/share/fonts/truetype/DejaVuSans.ttf")
6421 (string-append "MONOSPACED_FONT=" dejavu
6422 "/share/fonts/truetype/DejaVuSansMono.ttf")
6424 ;; Rename the executable to allow parallel installation with crawl.
6428 `(,@(package-inputs crawl)
6429 ("font-dejavu" ,font-dejavu)
6430 ("freetype6" ,freetype)
6434 ("sdl2-image" ,sdl2-image)
6435 ("sdl2-mixer" ,sdl2-mixer)))
6437 `(,@(package-native-inputs crawl)
6438 ("pngcrush" ,pngcrush)
6440 (synopsis "Graphical roguelike dungeon crawler game")))
6442 (define-public lugaru
6448 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6449 "lugaru-" version ".tar.xz"))
6452 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6453 (build-system cmake-build-system)
6456 (list "-DSYSTEM_INSTALL=ON")
6460 `(("pkg-config" ,pkg-config)))
6464 ("libjpeg" ,libjpeg-turbo)
6467 ("vorbis" ,libvorbis)
6469 (home-page "https://osslugaru.gitlab.io")
6470 (synopsis "Cross-platform third-person action game")
6471 (description "Lugaru is a third-person action game. The main character,
6472 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6473 In his quest to find those responsible for slaughtering his village, he uncovers
6474 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6475 and the starving wolves from a nearby den. Turner takes it upon himself to
6476 fight against their plot and save his fellow rabbits from slavery.")
6477 (license (list license:gpl2+ ; code
6480 license:cc-by-sa4.0))))
6482 (define-public 0ad-data
6485 (version "0.0.23b-alpha")
6489 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6490 version "-unix-data.tar.xz"))
6491 (file-name (string-append name "-" version ".tar.xz"))
6494 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6495 (modules '((guix build utils)))
6498 (for-each (lambda (name)
6499 (let* ((dir (string-append "binaries/data/mods/" name))
6500 (file (string-append dir "/" name ".zip"))
6501 (unzip #$(file-append unzip "/bin/unzip")))
6502 (invoke unzip "-d" dir file)
6503 (delete-file file)))
6506 (build-system trivial-build-system)
6507 (native-inputs `(("tar" ,tar)
6510 `(#:modules ((guix build utils))
6513 (use-modules (guix build utils))
6514 (let ((out (assoc-ref %outputs "out"))
6515 (source (assoc-ref %build-inputs "source"))
6516 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6517 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6518 (setenv "PATH" xz-path)
6520 (invoke tar "xvf" source "-C" out "--strip=3")))))
6521 (synopsis "Data files for 0ad")
6522 (description "0ad-data provides the data files required by the game 0ad.")
6523 (home-page "https://play0ad.com")
6524 (license (list (license:fsdg-compatible
6525 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6526 "Similar to the license of the Bitstream Vera fonts.")
6527 (license:fsdg-compatible
6528 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6538 (version "0.0.23b-alpha")
6542 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6543 version "-unix-build.tar.xz"))
6544 (file-name (string-append name "-" version ".tar.xz"))
6547 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6548 ;; A snippet here would cause a build failure because of timestamps
6549 ;; reset. See https://bugs.gnu.org/26734.
6551 `(("0ad-data" ,0ad-data)
6557 ("libsodium" ,libsodium)
6558 ("libvorbis" ,libvorbis)
6559 ("libxcursor" ,libxcursor)
6560 ("libxml2" ,libxml2)
6561 ("miniupnpc" ,miniupnpc)
6562 ("mozjs-38" ,mozjs-38)
6565 ("wxwidgets" ,wxwidgets)
6569 ("cmake" ,cmake-minimal)
6571 ("pkg-config" ,pkg-config)
6572 ("python-2" ,python-2)))
6573 (build-system gnu-build-system)
6575 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6577 (modify-phases %standard-phases
6578 (add-after 'unpack 'delete-bundles
6580 (delete-file-recursively "libraries/source/spidermonkey")
6582 (add-after 'unpack 'fix-x11-includes
6584 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6585 (("<Xlib.h>") "<X11/Xlib.h>"))
6586 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6587 (("<Xatom.h>") "<X11/Xatom.h>"))
6588 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6589 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6592 (lambda* (#:key inputs outputs #:allow-other-keys)
6593 (let* ((jobs (number->string (parallel-job-count)))
6594 (out (assoc-ref outputs "out"))
6595 (lib (string-append out "/lib"))
6596 (data (string-append out "/share/0ad")))
6597 (setenv "JOBS" (string-append "-j" jobs))
6599 (with-directory-excursion "build/workspaces"
6600 (invoke "./update-workspaces.sh"
6601 (string-append "--libdir=" lib)
6602 (string-append "--datadir=" data)
6603 ;; TODO: "--with-system-nvtt"
6604 "--with-system-mozjs38")))))
6607 (lambda* (#:key inputs outputs #:allow-other-keys)
6609 (let* ((out (assoc-ref outputs "out"))
6610 (bin (string-append out "/bin"))
6611 (lib (string-append out "/lib"))
6612 (data (string-append out "/share/0ad"))
6613 (applications (string-append out "/share/applications"))
6614 (pixmaps (string-append out "/share/pixmaps"))
6615 (0ad-data (assoc-ref inputs "0ad-data")))
6617 (copy-recursively "data" data)
6618 (for-each (lambda (file)
6619 (symlink (string-append 0ad-data "/" file)
6620 (string-append data "/" file)))
6621 '("config" "mods/mod" "mods/public" "tools"))
6623 (for-each (lambda (file)
6624 (install-file file lib))
6625 (find-files "system" "\\.so$"))
6627 (install-file "system/pyrogenesis" bin)
6628 (with-directory-excursion bin
6629 (symlink "pyrogenesis" "0ad"))
6631 (with-directory-excursion "../build/resources"
6632 (install-file "0ad.desktop" applications)
6633 (install-file "0ad.png" pixmaps))
6635 (add-after 'install 'check
6637 (with-directory-excursion "system"
6638 (invoke "./test")))))))
6639 (home-page "https://play0ad.com")
6640 (synopsis "3D real-time strategy game of ancient warfare")
6641 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6642 warfare. It's a historically-based war/economy game that allows players to
6643 relive or rewrite the history of twelve ancient civilizations, each depicted
6644 at their peak of economic growth and military prowess.
6646 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6647 (license (list license:bsd-2
6658 (define-public open-adventure
6660 (name "open-adventure")
6666 (url "https://gitlab.com/esr/open-adventure")
6668 (file-name (git-file-name name version))
6670 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6671 (build-system gnu-build-system)
6673 `(#:make-flags (list "CC=gcc")
6675 (modify-phases %standard-phases
6676 (delete 'configure) ;no configure script
6677 (add-before 'build 'use-echo
6679 (substitute* "tests/Makefile"
6680 (("/bin/echo") (which "echo")))
6682 (add-after 'build 'build-manpage
6684 ;; This target is missing a dependency
6685 (substitute* "Makefile"
6687 (string-append line " advent.adoc")))
6688 (invoke "make" ".adoc.6")))
6689 ;; There is no install target.
6691 (lambda* (#:key outputs #:allow-other-keys)
6692 (let* ((out (assoc-ref outputs "out"))
6693 (bin (string-append out "/bin"))
6694 (man (string-append out "/share/man/man6")))
6695 (install-file "advent" bin)
6696 (install-file "advent.6" man))
6699 `(("asciidoc" ,asciidoc)
6700 ("libedit" ,libedit)
6701 ("pkg-config" ,pkg-config)
6702 ("python" ,python-wrapper)
6703 ("python-pyyaml" ,python-pyyaml)))
6704 (home-page "https://gitlab.com/esr/open-adventure")
6705 (synopsis "Colossal Cave Adventure")
6707 "The original Colossal Cave Adventure from 1976 was the origin of all
6708 text adventures, dungeon-crawl (computer) games, and computer-hosted
6709 roleplaying games. This is a forward port of the last version released by
6710 Crowther & Woods, its original authors, in 1995. It has been known as
6711 ``adventure 2.5'' and ``430-point adventure''.")
6712 (license license:bsd-2)))
6714 (define-public open-adventure-2.5
6716 (inherit open-adventure)
6718 (properties `((superseded . ,open-adventure)))))
6720 (define-public tome4
6724 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6728 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6729 version ".tar.bz2"))
6731 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6732 (modules '((guix build utils)))
6735 (substitute* '("src/music.h" "src/tSDL.h")
6736 (("#elif defined(__FreeBSD__)" line)
6738 line " || defined(__GNUC__)")))
6739 (substitute* '("src/tgl.h")
6740 (("#include <GL/glext.h>") ""))
6742 (build-system gnu-build-system)
6744 `(("unzip" ,unzip)))
6746 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6748 ("premake4" ,premake4)
6750 ("vorbis" ,libvorbis)
6751 ("luajit" ,luajit)))
6754 (list (string-append "CC=" ,(cc-for-target))
6756 ;; XXX: Building in parallel occasionally causes this build failure:
6757 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6758 ;; No such file or directory
6759 #:parallel-build? #f
6760 #:phases (modify-phases %standard-phases
6764 (invoke "premake4" "gmake")
6766 (add-after 'set-paths 'set-sdl-paths
6767 (lambda* (#:key inputs #:allow-other-keys)
6769 (string-append (assoc-ref inputs "sdl-union")
6771 (or (getenv "CPATH") "")))
6774 ;; premake doesn't provide install target
6776 (lambda* (#:key inputs outputs #:allow-other-keys)
6777 (let* ((out (assoc-ref outputs "out"))
6778 (usr (string-append out "/usr"))
6779 (bin (string-append out "/bin"))
6780 (licenses (string-append out "/share/licenses"))
6781 (documents (string-append out "/share/doc"))
6782 (pixmaps (string-append out "/share/pixmaps"))
6783 (icon "te4-icon.png")
6784 (data (string-append out "/share/" ,name))
6785 (applications (string-append
6786 out "/share/applications"))
6787 (unzip (string-append
6788 (assoc-ref inputs "unzip") "/bin/unzip"))
6789 (wrapper (string-append bin "/" ,name)))
6794 "game/engines/te4-" ,version ".teae")
6796 "data/gfx/" icon) "-d" pixmaps)
6798 (install-file "t-engine" data)
6800 (with-output-to-file wrapper
6805 ;; No bootstrap code found,
6806 ;; defaulting to working directory
6809 "exec -a tome4 ./t-engine \"$@\"\n"))))
6810 (chmod wrapper #o555)
6812 (for-each (lambda (file)
6813 (install-file file licenses))
6814 '("COPYING" "COPYING-MEDIA"))
6816 (for-each (lambda (file)
6817 (install-file file documents))
6818 '("CONTRIBUTING" "CREDITS"))
6820 (copy-recursively "bootstrap" (string-append
6822 (copy-recursively "game" (string-append data "/game"))
6824 (mkdir-p applications)
6825 (make-desktop-entry-file
6826 (string-append applications "/" ,name ".desktop")
6831 #:categories '("Game" "RolePlaying")))
6833 (home-page "https://te4.org")
6834 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6835 combat and advanced character building. Play as one of many unique races and
6836 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6837 challenging battles, and developing characters with your own tailored mix of
6838 abilities and powers. With a modern graphical and customisable interface,
6839 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6840 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6841 (license license:gpl3+)))
6843 (define-public quakespasm
6850 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6853 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6856 #:make-flags '("CC=gcc"
6859 "USE_CODEC_MIKMOD=1"
6862 #:phases (modify-phases %standard-phases
6864 (add-after 'unpack 'fix-makefile-paths
6865 (lambda* (#:key outputs #:allow-other-keys)
6866 (let ((out (assoc-ref outputs "out")))
6867 (mkdir-p (string-append out "/bin"))
6868 (substitute* "Quake/Makefile"
6869 (("/usr/local/games")
6870 (string-append out "/bin")))
6872 (build-system gnu-build-system)
6873 (inputs `(("libmikmod" ,libmikmod)
6874 ("libvorbis" ,libvorbis)
6879 (synopsis "First person shooter engine for Quake 1")
6880 (description "Quakespasm is a modern engine for id software's Quake 1.
6881 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6882 some graphical niceities, and numerous bug-fixes and other improvements.")
6883 (home-page "http://quakespasm.sourceforge.net/")
6884 (license license:gpl2+)))
6886 (define-public vkquake
6888 (inherit quakespasm)
6895 (url "https://github.com/Novum/vkQuake")
6897 (file-name (git-file-name name version))
6899 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6902 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6903 "vulkan-loader") "/lib")))
6907 "USE_CODEC_MIKMOD=1"
6909 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6911 #:phases (modify-phases %standard-phases
6912 (add-after 'unpack 'patch-for-new-vulkan
6914 ;; Mimic upstream commit a869a22d9b51c68e for
6915 ;; compatibility with newer vulkan-headers.
6916 (substitute* "Quake/gl_rmisc.c"
6917 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6921 (add-after 'unpack 'fix-makefile-paths
6922 (lambda* (#:key outputs #:allow-other-keys)
6923 (let ((vulkan (assoc-ref %build-inputs
6925 (out (assoc-ref outputs "out")))
6926 (mkdir-p (string-append out "/bin"))
6927 (substitute* "Quake/Makefile" ((" /usr")
6928 (string-append " " out)))
6929 (substitute* "Quake/Makefile" (("/games")
6930 (string-append "/bin")))
6931 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6933 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6934 (package-arguments quakespasm))))
6935 (inputs `(("vulkan-headers" ,vulkan-headers)
6936 ("vulkan-loader" ,vulkan-loader)
6937 ,@(package-inputs quakespasm)))
6938 (description "vkquake is a modern engine for id software's Quake 1.
6939 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6940 some graphical niceities, and numerous bug-fixes and other improvements.")
6941 (home-page "https://github.com/Novum/vkQuake")))
6943 (define-public yamagi-quake2
6945 (name "yamagi-quake2")
6950 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6953 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
6954 (build-system gnu-build-system)
6959 ;; link openAL instead of using dlopen at runtime
6960 "DLOPEN_OPENAL=\"no\""
6961 ;; an optional directory where it will look for quake2 data files
6962 ;; in addition to the current working directory
6963 "WITH_SYSTEMWIDE=yes"
6964 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6966 (modify-phases %standard-phases
6969 (lambda* (#:key outputs #:allow-other-keys)
6970 (let ((out (assoc-ref outputs "out")))
6971 (mkdir-p (string-append out "/lib"))
6972 (mkdir-p (string-append out "/bin"))
6973 ;; The yamagi-quake2 binary must be in the same directory
6974 ;; as it's engine libraries, but symlinking it to /bin is okay
6975 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6976 (copy-recursively "release"
6977 (string-append out "/lib/yamagi-quake2"))
6978 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6979 (string-append out "/bin/yamagi-quake2"))
6980 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6981 (string-append out "/bin/yamagi-q2ded"))))))))
6983 `(("pkg-config" ,pkg-config)))
6985 `(("curl" ,curl-minimal)
6986 ("libvorbis" ,libvorbis)
6991 (synopsis "First person shooter engine based on quake2")
6992 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6993 The main focus is an unchanged single player experience like back in 1997,
6994 thus the gameplay and the graphics are unaltered. However the user may use one
6995 of the unofficial retexturing packs. In comparison with the official client,
6996 over 1000 bugs were fixed and an extensive code audit done,
6997 making Yamagi Quake II one of the most solid Quake II implementations available.")
6998 (home-page "https://www.yamagi.org/quake2/")
6999 (license (list license:gpl2+ ; game and server
7000 (license:non-copyleft ; info-zip
7002 "See Info-Zip section.")
7003 license:public-domain)))) ; stb
7005 (define-public nudoku
7013 (url "https://github.com/jubalh/nudoku")
7015 (file-name (git-file-name name version))
7017 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7018 (build-system gnu-build-system)
7020 `(("autoconf" ,autoconf)
7021 ("automake" ,automake)
7022 ("gettext" ,gettext-minimal)
7023 ("pkg-config" ,pkg-config)))
7025 `(("ncurses" ,ncurses)))
7026 (home-page "https://jubalh.github.io/nudoku/")
7027 (synopsis "Sudoku for your terminal")
7028 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7029 (license license:gpl3+)))
7031 (define-public the-butterfly-effect
7033 (name "the-butterfly-effect")
7039 (url "https://github.com/the-butterfly-effect/tbe")
7040 (commit (string-append "v" version))))
7041 (file-name (git-file-name name version))
7044 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7045 (build-system gnu-build-system)
7048 (modify-phases %standard-phases
7050 ;; There is no "install" phase. By default, tbe is installed
7051 ;; in the build directory. Provide our own installation.
7053 (lambda* (#:key outputs #:allow-other-keys)
7054 (let* ((out (assoc-ref outputs "out"))
7055 (bin (string-append out "/bin"))
7056 (share (string-append out "/share")))
7057 (install-file "usr/games/tbe" bin)
7059 (copy-recursively "usr/share" share)
7061 ;; Test suite requires a running Xorg server. Even when
7062 ;; provided, it fails with "D-Bus library appears to be
7063 ;; incorrectly set up; failed to read machine uuid: Failed to
7064 ;; open "/etc/machine-id": No such file or directory" along
7065 ;; with multiple "QPainter:: ... Painter not active" warnings.
7068 `(("qtbase" ,qtbase)
7071 `(("cmake" ,cmake-minimal)
7072 ("gettext-minimal" ,gettext-minimal)
7073 ("qttools" ,qttools)))
7074 (synopsis "Realistic physics puzzle game")
7075 (description "The Butterfly Effect (tbe) is a game that uses
7076 realistic physics simulations to combine lots of simple mechanical
7077 elements to achieve a simple goal in the most complex way possible.")
7078 (home-page "http://the-butterfly-effect.org/")
7079 ;; Main license is GPL2-only. However, artwork is distributed
7080 ;; under various licenses, listed here.
7081 (license (list license:gpl2 license:public-domain license:expat
7082 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7084 (define-public pioneer
7087 (version "20210203")
7091 (url "https://github.com/pioneerspacesim/pioneer")
7093 (file-name (git-file-name name version))
7096 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7097 (build-system cmake-build-system)
7099 `(("pkg-config" ,pkg-config)))
7101 `(("assimp" ,assimp)
7103 ("freetype" ,freetype)
7107 ("libsigc++" ,libsigc++)
7108 ("libvorbis" ,libvorbis)
7109 ("lua" ,lua-5.2) ;not compatible with 5.3
7111 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7113 `(#:tests? #f ;tests are broken
7114 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7115 (string-append "-DPIONEER_DATA_DIR="
7116 %output "/share/games/pioneer"))))
7117 (home-page "https://pioneerspacesim.net")
7118 (synopsis "Game of lonely space adventure")
7120 "Pioneer is a space adventure game set in our galaxy at the turn of the
7121 31st century. The game is open-ended, and you are free to eke out whatever
7122 kind of space-faring existence you can think of. Look for fame or fortune by
7123 exploring the millions of star systems. Turn to a life of crime as a pirate,
7124 smuggler or bounty hunter. Forge and break alliances with the various
7125 factions fighting for power, freedom or self-determination. The universe is
7126 whatever you make of it.")
7127 (license license:gpl3)))
7129 (define-public badass
7130 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7134 (version (git-version "0.0" revision commit))
7138 (url "https://github.com/umayr/badass")
7140 (file-name (git-file-name name version))
7143 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7144 (build-system go-build-system)
7146 '(#:import-path "github.com/umayr/badass"))
7147 (synopsis "Hacking contribution graphs in git")
7149 "Badass generates false commits for a range of dates, essentially
7150 hacking the gamification of contribution graphs on platforms such as
7152 (home-page "https://github.com/umayr/badass")
7153 (license license:expat))))
7155 (define-public colobot
7158 (version "0.1.12-alpha")
7163 (url "https://github.com/colobot/colobot")
7164 (commit (string-append "colobot-gold-" version))
7165 (recursive? #t))) ;for "data/" subdir
7166 (file-name (git-file-name name version))
7169 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7170 (build-system cmake-build-system)
7172 `(#:tests? #f ;no test
7174 (modify-phases %standard-phases
7175 (add-after 'unpack 'make-git-checkout-writable
7177 (for-each make-file-writable (find-files "."))
7179 (add-after 'unpack 'fix-directories
7181 (substitute* "CMakeLists.txt"
7182 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7183 (string-append prefix "/bin"))
7184 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7185 (string-append prefix "/colobot")))
7187 (add-after 'fix-directories 'install-music
7188 ;; Retrieve and install music files.
7189 (lambda* (#:key inputs #:allow-other-keys)
7190 ;; Installation process tries to download music files using
7191 ;; "wget" if not already present. Since we are going another
7192 ;; route, skip "wget" command check.
7193 (substitute* "data/music/CMakeLists.txt"
7194 (("find_program\\(WGET wget\\)") ""))
7195 ;; Populate "music/" directory.
7196 (let ((data (assoc-ref inputs "colobot-music")))
7197 (invoke "tar" "-xvf" data "-Cdata/music"))
7203 (uri (string-append "https://colobot.info/files/music/"
7204 "colobot-music_ogg_" version ".tar.gz"))
7207 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7208 ("gettext" ,gettext-minimal)
7209 ("librsvg" ,librsvg)
7211 ("python" ,python-wrapper)))
7217 ("libsndfile" ,libsndfile)
7218 ("libvorbis" ,libvorbis)
7221 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7222 (synopsis "Educational programming strategy game")
7223 (description "Colobot: Gold Edition is a real-time strategy game, where
7224 you can program your units (bots) in a language called CBOT, which is similar
7225 to C++ and Java. Your mission is to find a new planet to live and survive.
7226 You can save humanity and get programming skills!")
7227 (home-page "https://colobot.info")
7228 (license license:gpl3+)))
7230 (define-public gzdoom
7238 (url "https://github.com/coelckers/gzdoom")
7239 (commit (string-append "g" version))))
7240 (file-name (git-file-name name version))
7242 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7243 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7244 "gzdoom-find-system-libgme.patch"))
7245 (modules '((guix build utils)))
7248 ;; Remove some bundled libraries. XXX There are more, but removing
7249 ;; them would require, at least, patching the build system.
7250 (with-directory-excursion "libraries"
7251 (delete-file-recursively "bzip2")
7252 (delete-file-recursively "game-music-emu")
7253 (delete-file-recursively "jpeg")
7254 (delete-file-recursively "zlib"))
7259 (let ((out (assoc-ref %outputs "out")))
7262 "-DCMAKE_CXX_FLAGS:="
7263 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7264 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7266 ;; The build requires some extra convincing not to use the bundled
7267 ;; libgme previously deleted in the soure snippet.
7268 "-DFORCE_INTERNAL_GME=OFF"
7270 ;; Link libraries at build time instead of loading them at run time.
7272 "-DDYN_FLUIDSYNTH=OFF"
7275 "-DDYN_SNDFILE=OFF"))
7277 (modify-phases %standard-phases
7278 (add-before 'configure 'fix-referenced-paths
7279 (lambda* (#:key inputs outputs #:allow-other-keys)
7280 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7281 (timidity++ (assoc-ref inputs "timidity++"))
7282 (out (assoc-ref outputs "out")))
7285 "src/CMakeLists.txt"
7286 (("COMMAND /bin/sh")
7287 (string-append "COMMAND " (which "sh"))))
7290 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7291 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7292 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7295 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7296 (("exename = \"timidity\"")
7297 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7299 (build-system cmake-build-system)
7300 (inputs `(("bzip2" ,bzip2)
7301 ("fluid-3" ,fluid-3)
7302 ("fluidsynth" ,fluidsynth)
7305 ("libjpeg" ,libjpeg-turbo)
7306 ("libsndfile" ,libsndfile)
7311 ("timidity++" ,timidity++)
7313 (native-inputs `(("pkg-config" ,pkg-config)
7315 (synopsis "Modern Doom 2 source port")
7316 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7317 renderer. It improves modding support with ZDoom's advanced mapping features
7318 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7319 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7320 (home-page "https://zdoom.org/index")
7321 ;; The source uses x86 assembly
7322 (supported-systems '("x86_64-linux" "i686-linux"))
7323 (license (list license:gpl3+ ; gzdoom game
7324 license:lgpl3+ ; gzdoom renderer
7325 license:expat ; gdtoa
7326 (license:non-copyleft ; modified dumb
7327 "file://dumb/licence.txt"
7328 "Dumb license, explicitly GPL compatible.")))))
7330 (define-public odamex
7338 "mirror://sourceforge/odamex/Odamex/" version "/"
7339 "odamex-src-" version ".tar.gz"))
7341 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7342 (build-system cmake-build-system)
7343 (arguments `(#:tests? #f)) ; no tests
7346 ("sdl-mixer" ,sdl-mixer)
7349 ("alsa-lib" ,alsa-lib)))
7350 (home-page "https://odamex.net/")
7351 (synopsis "Multiplayer Doom port")
7352 (description "Odamex is a modification of the Doom engine that
7353 allows players to easily join servers dedicated to playing Doom
7355 (license license:gpl2+)))
7357 (define-public chocolate-doom
7359 (name "chocolate-doom")
7363 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7370 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7371 (build-system gnu-build-system)
7372 (inputs `(("sdl2-net" ,sdl2-net)
7373 ("sdl2-mixer" , sdl2-mixer)
7376 `(("pkg-config" ,pkg-config)))
7377 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7380 "Chocolate Doom takes a different approach to other source ports. Its
7381 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7382 a conservative, historically accurate Doom source port, which is compatible
7383 with the thousands of mods and levels that were made before the Doom source
7384 code was released. Rather than flashy new graphics, Chocolate Doom's main
7385 features are its accurate reproduction of the game as it was played in the
7386 1990s. The project is developed around a carefully-considered philosophy that
7387 intentionally restricts which features may be added (and rejects any that
7389 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7390 (license license:gpl2)))
7392 (define-public crispy-doom
7394 (inherit chocolate-doom)
7395 (name "crispy-doom")
7400 (url "https://github.com/fabiangreffrath/crispy-doom")
7401 (commit (string-append "crispy-doom-" version))))
7402 (file-name (git-file-name name version))
7404 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7407 (package-native-inputs chocolate-doom)
7408 `(("automake" ,automake)
7409 ("autoreconf" ,autoconf))))
7412 (modify-phases %standard-phases
7414 ;; The bundled autogen.sh script unconditionally runs ./configure.
7415 (lambda _ (invoke "autoreconf" "-vif"))))))
7416 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7419 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7420 display resolution, removes the static limits of the Doom engine and offers
7421 further optional visual, tactical and physical enhancements while remaining
7422 entirely config file, savegame, netplay and demo compatible with the
7424 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7426 (define shlomif-cmake-modules
7429 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7430 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7431 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7433 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7435 (define-public rinutils
7442 (url "https://github.com/shlomif/rinutils")
7444 (file-name (git-file-name name version))
7447 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7450 ;; The following is only needed for tests.
7451 ("perl-file-find-object" ,perl-file-find-object)
7452 ("perl-test-differences" ,perl-test-differences)
7453 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7454 ("perl-io-all" ,perl-io-all)
7455 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7456 ("cmake-rules" ,shlomif-cmake-modules)
7457 ("pkg-config" ,pkg-config)))
7459 `(("cmocka" ,cmocka)
7460 ("perl-env-path" ,perl-env-path)
7461 ("perl-inline" ,perl-inline)
7462 ("perl-inline-c" ,perl-inline-c)
7463 ("perl-string-shellquote" ,perl-string-shellquote)
7464 ("perl-test-trailingspace" ,perl-test-trailingspace)
7465 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7466 ("perl-text-glob" ,perl-text-glob)
7467 ("perl-number-compare" ,perl-number-compare)
7468 ("perl-moo" ,perl-moo)))
7471 (modify-phases %standard-phases
7472 (add-after 'unpack 'fix-build-env
7473 (lambda* (#:key inputs #:allow-other-keys)
7474 (use-modules (guix build utils))
7475 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7476 (copy-file cmake-rules
7477 (string-append "cmake/"
7478 (strip-store-file-name cmake-rules)))
7482 (with-directory-excursion "../source"
7483 (setenv "FCS_TEST_BUILD" "1")
7484 (setenv "RINUTILS_TEST_BUILD" "1")
7485 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7486 ;; which requires tidy-all.
7487 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7488 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7489 (build-system cmake-build-system)
7490 (home-page "https://www.shlomifish.org/open-source/projects/")
7491 (synopsis "C11 / gnu11 utilities C library")
7492 (description "This package provides C11 / gnu11 utilities C library")
7493 (license license:expat)))
7495 (define-public fortune-mod
7497 (name "fortune-mod")
7503 (url "https://github.com/shlomif/fortune-mod")
7504 (commit (string-append "fortune-mod-" version))))
7505 (file-name (git-file-name name version))
7507 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7508 (build-system cmake-build-system)
7510 `(#:test-target "check"
7512 (modify-phases %standard-phases
7513 (add-after 'unpack 'fix-build-env
7514 (lambda* (#:key inputs #:allow-other-keys)
7515 (use-modules (guix build utils))
7516 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7517 (copy-file cmake-rules
7518 (string-append "fortune-mod/cmake/"
7519 (strip-store-file-name cmake-rules)))
7520 (chdir "fortune-mod")
7521 ;; TODO: Valgrind tests fail for some reason.
7522 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7523 (delete-file "tests/t/valgrind.t")
7525 (add-after 'install 'fix-install-directory
7526 (lambda* (#:key outputs #:allow-other-keys)
7527 ;; Move binary from "games/" to "bin/" and remove the latter. This
7528 ;; is easier than patching CMakeLists.txt since the tests hard-code
7529 ;; the location as well.
7530 (let* ((out (assoc-ref outputs "out"))
7531 (bin (string-append out "/bin"))
7532 (games (string-append out "/games")))
7533 (rename-file (string-append games "/fortune")
7534 (string-append bin "/fortune"))
7537 (inputs `(("recode" ,recode)))
7540 ;; The following is only needed for tests.
7541 ("perl-file-find-object" ,perl-file-find-object)
7542 ("perl-test-differences" ,perl-test-differences)
7543 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7544 ("perl-io-all" ,perl-io-all)
7545 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7546 ("cmake-rules" ,shlomif-cmake-modules)
7547 ("rinutils" ,rinutils)))
7548 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7549 (synopsis "The Fortune Cookie program from BSD games")
7550 (description "Fortune is a command-line utility which displays a random
7551 quotation from a collection of quotes.")
7552 (license license:bsd-4)))
7554 (define xonotic-data
7556 (name "xonotic-data")
7561 (uri (string-append "http://dl.xonotic.org/xonotic-"
7563 (file-name (string-append name "-" version ".zip"))
7566 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7567 (build-system trivial-build-system)
7569 `(("unzip" ,unzip)))
7571 `(#:modules ((guix build utils))
7574 (use-modules (guix build utils))
7575 (let* ((out (assoc-ref %outputs "out"))
7576 (xonotic (string-append out "/share/xonotic"))
7577 (source (assoc-ref %build-inputs "source"))
7578 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7579 (copy-file source (string-append ,name "-" ,version ".zip"))
7580 (invoke unzip (string-append ,name "-" ,version ".zip"))
7584 (copy-recursively "data"
7585 (string-append xonotic "/data"))
7586 (copy-recursively "server"
7587 (string-append xonotic "/server"))
7588 (install-file "key_0.d0pk" xonotic)))))
7589 (home-page "http://xonotic.org")
7590 (synopsis "Data files for Xonotic")
7592 "Xonotic-data provides the data files required by the game Xonotic.")
7593 (license (list license:gpl2+
7594 (license:x11-style "file://server/rcon.pl")))))
7596 (define-public xonotic
7603 (uri (string-append "http://dl.xonotic.org/xonotic-"
7604 version "-source.zip"))
7605 (file-name (string-append name "-" version ".zip"))
7608 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7609 (build-system gnu-build-system)
7611 `(#:configure-flags (list (string-append "--prefix="
7612 (assoc-ref %outputs "out"))
7613 "--disable-rijndael")
7615 (modify-phases %standard-phases
7616 (add-before 'configure 'make-darkplaces
7617 (lambda* (#:key outputs #:allow-other-keys)
7618 (let* ((out (assoc-ref outputs "out"))
7619 (sharedir (string-append out "/share/xonotic/")))
7620 (invoke "make" "-C" "source/darkplaces"
7621 (string-append "DP_FS_BASEDIR="
7623 "DP_LINK_TO_LIBJPEG=1"
7628 (invoke "make" "-C" "source/darkplaces"
7629 (string-append "DP_FS_BASEDIR="
7631 "DP_LINK_TO_LIBJPEG=1"
7636 (invoke "make" "-C" "source/darkplaces"
7637 (string-append "DP_FS_BASEDIR="
7639 "DP_LINK_TO_LIBJPEG=1"
7644 (add-before 'configure 'bootstrap
7646 (chdir "source/d0_blind_id")
7647 (invoke "sh" "autogen.sh")))
7648 (add-after 'build 'install-desktop-entry
7649 (lambda* (#:key outputs #:allow-other-keys)
7650 ;; Add .desktop files for the 2 variants and the symlink
7651 (let* ((output (assoc-ref outputs "out"))
7652 (apps (string-append output "/share/applications")))
7654 (with-output-to-file
7655 (string-append apps "/xonotic-glx.desktop")
7660 Comment=Xonotic glx~@
7661 Exec=~a/bin/xonotic-glx~@
7662 TryExec=~@*~a/bin/xonotic-glx~@
7667 (with-output-to-file
7668 (string-append apps "/xonotic-sdl.desktop")
7673 Comment=Xonotic sdl~@
7674 Exec=~a/bin/xonotic-sdl~@
7675 TryExec=~@*~a/bin/xonotic-sdl~@
7680 (with-output-to-file
7681 (string-append apps "/xonotic.desktop")
7687 Exec=~a/bin/xonotic-glx~@
7688 TryExec=~@*~a/bin/xonotic~@
7694 (add-after 'install-desktop-entry 'install-icons
7695 (lambda* (#:key outputs #:allow-other-keys)
7696 (let ((out (assoc-ref outputs "out")))
7697 (with-directory-excursion "../../misc/logos/icons_png/"
7700 (let* ((size (string-filter char-numeric? file))
7701 (icons (string-append out "/share/icons/hicolor/"
7702 size "x" size "/apps")))
7704 (copy-file file (string-append icons "/xonotic.png"))))
7705 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7706 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7707 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7708 (add-after 'install-icons 'install-binaries
7709 (lambda* (#:key outputs #:allow-other-keys)
7710 (let ((out (assoc-ref outputs "out")))
7711 (define (install src dst)
7712 (let ((dst (string-append out dst)))
7713 (mkdir-p (dirname dst))
7714 (copy-file src dst)))
7715 (mkdir-p (string-append out "/bin"))
7716 (install "../darkplaces/darkplaces-dedicated"
7717 "/bin/xonotic-dedicated")
7718 (install "../darkplaces/darkplaces-glx"
7720 (install "../darkplaces/darkplaces-sdl"
7722 ;; Provide a default xonotic executable, defaulting to SDL.
7723 (symlink (string-append out "/bin/xonotic-sdl")
7724 (string-append out "/bin/xonotic"))
7726 (add-after 'install-binaries 'install-data
7727 (lambda* (#:key outputs inputs #:allow-other-keys)
7728 (let* ((out (assoc-ref outputs "out"))
7729 (data (assoc-ref inputs "xonotic-data")))
7730 (symlink (string-append data "/share/xonotic")
7731 (string-append out "/share/xonotic"))
7733 (add-after 'install-binaries 'wrap-binaries
7734 (lambda* (#:key outputs inputs #:allow-other-keys)
7735 ;; Curl and libvorbis need to be wrapped so that we get
7736 ;; sound and networking.
7737 (let* ((out (assoc-ref outputs "out"))
7738 (bin (string-append out "/bin/xonotic"))
7739 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7740 (bin-glx (string-append out "/bin/xonotic-glx"))
7741 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7742 (curl (assoc-ref inputs "curl"))
7743 (vorbis (assoc-ref inputs "libvorbis")))
7745 `("LD_LIBRARY_PATH" ":" prefix
7746 (,(string-append curl "/lib:" vorbis "/lib"))))
7747 (wrap-program bin-sdl
7748 `("LD_LIBRARY_PATH" ":" prefix
7749 (,(string-append curl "/lib:" vorbis "/lib"))))
7750 (wrap-program bin-glx
7751 `("LD_LIBRARY_PATH" ":" prefix
7752 (,(string-append curl "/lib:" vorbis "/lib"))))
7753 (wrap-program bin-dedicated
7754 `("LD_LIBRARY_PATH" ":" prefix
7755 (,(string-append curl "/lib:" vorbis "/lib"))))
7758 `(("xonotic-data" ,xonotic-data)
7759 ("alsa-lib" ,alsa-lib)
7761 ("libjpeg" ,libjpeg-turbo)
7762 ("libmodplug" ,libmodplug)
7763 ("libvorbis" ,libvorbis)
7766 ("libxxf86dga" ,libxxf86dga)
7767 ("libxxf86vm" ,libxxf86vm)
7769 ("libxext" ,libxext)
7771 ("libxdmcp" ,libxdmcp)
7774 ("freetype" ,freetype)
7777 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7780 ("autoconf" ,autoconf)
7781 ("automake" ,automake)
7782 ("pkg-config" ,pkg-config)
7783 ("libtool" ,libtool)
7785 (home-page "https://xonotic.org")
7786 (synopsis "Fast-paced first-person shooter game")
7788 "Xonotic is a free, fast-paced first-person shooter.
7789 The project is geared towards providing addictive arena shooter
7790 gameplay which is all spawned and driven by the community itself.
7791 Xonotic is a direct successor of the Nexuiz project with years of
7792 development between them, and it aims to become the best possible
7793 open-source FPS of its kind.")
7794 (license (list license:gpl2+
7795 license:bsd-3 ; /source/d0_blind_id folder and others
7796 (license:x11-style "" "See file rcon.pl.")))))
7798 (define-public frotz
7804 (uri (list (string-append
7805 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7806 "frotz/frotz-" version ".tar.gz")
7808 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7809 "frotz/frotz-" version ".tar.gz")))
7812 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7813 (build-system gnu-build-system)
7815 `(#:tests? #f ; there are no tests
7817 (modify-phases %standard-phases
7819 (add-before 'build 'curses
7821 (substitute* "Makefile"
7822 (("lcurses") "lncurses"))
7825 (lambda* (#:key outputs #:allow-other-keys)
7826 (let* ((out (assoc-ref outputs "out"))
7827 (bin (string-append out "/bin"))
7828 (man (string-append out "/share/man/man6")))
7829 (install-file "frotz" bin)
7831 (install-file "doc/frotz.6" man)
7833 (inputs `(("libmodplug" ,libmodplug)
7834 ("libsamplerate" ,libsamplerate)
7835 ("libsndfile" ,libsndfile)
7836 ("libvorbis" ,libvorbis)
7837 ("ncurses" ,ncurses)))
7838 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7839 (description "Frotz is an interpreter for Infocom games and other Z-machine
7840 games in the text adventure/interactive fiction genre. This version of Frotz
7841 complies with standard 1.0 of Graham Nelson's specification. It plays all
7842 Z-code games V1-V8, including V6, with sound support through libao, and uses
7843 ncurses for text display.")
7844 (home-page "http://frotz.sourceforge.net")
7845 (license license:gpl2+)))
7847 (define-public frotz-dumb-terminal
7849 (name "frotz-dumb-terminal")
7853 (uri (list (string-append
7854 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7855 "frotz/frotz-" version ".tar.gz")
7857 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7858 "frotz/frotz-" version ".tar.gz")))
7861 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7862 (build-system gnu-build-system)
7864 `(#:tests? #f ; there are no tests
7866 (modify-phases %standard-phases
7870 (invoke "make" "dumb")))
7872 (lambda* (#:key outputs #:allow-other-keys)
7873 (let* ((out (assoc-ref outputs "out"))
7874 (bin (string-append out "/bin"))
7875 (man (string-append out "/share/man/man6")))
7876 (install-file "dfrotz" bin)
7878 (install-file "doc/dfrotz.6" man)
7880 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7881 (description "Frotz is an interpreter for Infocom games and
7882 other Z-machine games in the text adventure/interactive fiction genre.
7883 dfrotz is the dumb interface version. You get no screen control; everything
7884 is just printed to the terminal line by line. The terminal handles all the
7885 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7886 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7887 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7888 to play games on webpages. It can also be made into a chat bot.")
7889 (home-page "http://frotz.sourceforge.net")
7890 (license license:gpl2+)))
7892 (define-public frotz-sdl
7893 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7900 (url "https://gitlab.com/DavidGriffith/frotz")
7904 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7905 (file-name (git-file-name name version))))
7906 (build-system gnu-build-system)
7908 `(#:tests? #f ; there are no tests
7910 (modify-phases %standard-phases
7912 (add-before 'build 'patch-makefile
7914 (substitute* "Makefile"
7915 (("lcurses") "lncurses")
7916 (("^BUILD_DATE_TIME =.*$")
7917 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7921 (invoke "make" "sdl")))
7923 (lambda* (#:key outputs #:allow-other-keys)
7924 (let* ((out (assoc-ref outputs "out"))
7925 (bin (string-append out "/bin"))
7926 (man (string-append out "/share/man/man6")))
7927 (install-file "sfrotz" bin)
7929 (install-file "doc/sfrotz.6" man)
7932 `(("pkg-config" ,pkg-config)
7935 (inputs `(("sdl2" ,sdl2)
7936 ("sdl2-mixer" ,sdl2-mixer)
7937 ("libmodplug" ,libmodplug)
7938 ("libsamplerate" ,libsamplerate)
7939 ("libsndfile" ,libsndfile)
7940 ("libvorbis" ,libvorbis)
7941 ("ncurses" ,ncurses)
7942 ("freetype" ,freetype)
7943 ("libjpeg-turbo" ,libjpeg-turbo)))
7944 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7945 (description "Frotz is an interpreter for Infocom games and other Z-machine
7946 games in the text adventure/interactive fiction genre. This version of Frotz
7947 using SDL fully supports all these versions of the Z-Machine including the
7948 graphical version 6. Graphics and sound are created through the use of the SDL
7949 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7950 when packaged in Blorb container files or optionally from individual files.")
7951 (home-page "http://frotz.sourceforge.net")
7952 (license license:gpl2+))))
7954 (define-public frozen-bubble
7955 ;; Last official release is very outdated (2010). Use latest commit (2017).
7956 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7959 (name "frozen-bubble")
7960 (version (git-version "2.2.1" revision commit))
7965 (url "https://github.com/kthakore/frozen-bubble")
7967 (file-name (git-file-name name version))
7969 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7970 (build-system perl-build-system)
7973 (modify-phases %standard-phases
7974 ;; Build process needs to create files in the "server"
7976 (add-after 'unpack 'fix-permissions
7978 (for-each make-file-writable
7979 (find-files "server" "." #:directories? #t))))
7980 ;; By default, build stops at warnings.
7981 (add-after 'unpack 'prevent-build-error
7983 (substitute* "inc/My/Builder.pm"
7986 (add-after 'install 'install-desktop-file-and-icons
7987 (lambda* (#:key outputs #:allow-other-keys)
7988 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7989 (hicolor (string-append share "/icons/hicolor")))
7990 ;; Create desktop entry.
7991 (make-desktop-entry-file
7992 (string-append share "/applications/" ,name ".desktop")
7993 #:name "Frozen Bubble"
7994 #:comment "Frozen Bubble arcade game"
7997 #:categories '("Game" "ArcadeGame"))
7999 (with-directory-excursion "share/icons"
8002 (let* ((dim (string-append size "x" size))
8003 (dir (string-append hicolor "/" dim "/apps")))
8006 (string-append "frozen-bubble-icon-" dim ".png")
8007 (string-append dir "/frozen-bubble.png"))))
8008 '("16" "32" "48" "64"))))
8010 (add-after 'install 'wrap-perl-libs
8011 (lambda* (#:key outputs #:allow-other-keys)
8012 (let ((out (assoc-ref outputs "out"))
8013 (perl5lib (getenv "PERL5LIB")))
8014 (for-each (lambda (prog)
8015 (wrap-program (string-append out "/" prog)
8016 `("PERL5LIB" ":" prefix
8017 (,(string-append perl5lib ":" out
8018 "/lib/perl5/site_perl")))))
8019 (find-files "bin" ".")))
8022 `(("perl-alien-sdl" ,perl-alien-sdl)
8023 ("perl-capture-tiny" ,perl-capture-tiny)
8024 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8025 ("perl-module-build" ,perl-module-build)
8026 ("pkg-config" ,pkg-config)))
8029 ("perl-compress-bzip2" ,perl-compress-bzip2)
8030 ("perl-file-sharedir" ,perl-file-sharedir)
8031 ("perl-file-slurp" ,perl-file-slurp)
8032 ("perl-file-which" ,perl-file-which)
8033 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8034 ("perl-sdl" ,perl-sdl)
8035 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8036 (home-page "http://frozen-bubble.org/")
8037 (synopsis "Puzzle with bubbles")
8039 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8040 you attempt to shoot bubbles into groups of the same color to cause them to
8043 Players compete as penguins and must use the arrow keys to aim a colored
8044 bubble at groups of bubbles. The objective is to clear all the bubbles off
8045 the screen before a bubble passes below a line at the bottom.
8047 It features 100 single-player levels, a two-player mode, music and striking
8048 graphics. A level editor is also included to allow players to create and play
8050 (license license:gpl2))))
8052 (define-public libmanette
8058 (uri (string-append "mirror://gnome/sources/libmanette/"
8059 (version-major+minor version) "/"
8060 "libmanette-" version ".tar.xz"))
8063 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8064 (build-system meson-build-system)
8066 `(("glib" ,glib "bin") ; for glib-compile-resources
8067 ("gobject-introspection" ,gobject-introspection)
8068 ("pkg-config" ,pkg-config)
8071 `(("libevdev" ,libevdev)
8072 ("libgudev" ,libgudev)))
8073 (home-page "https://wiki.gnome.org/Apps/Games")
8074 (synopsis "Game controller library")
8075 (description "Libmanette is a small GObject library giving you simple
8076 access to game controllers. It supports the de-facto standard gamepads as
8077 defined by the W3C standard Gamepad specification or as implemented by the SDL
8079 (license license:lgpl2.1+)))
8081 (define-public quadrapassel
8083 (name "quadrapassel")
8087 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8088 (version-major+minor version) "/"
8089 "quadrapassel-" version ".tar.xz"))
8092 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8093 (build-system meson-build-system)
8097 (modify-phases %standard-phases
8098 (add-after 'unpack 'skip-gtk-update-icon-cache
8099 ;; Don't create 'icon-theme.cache'.
8101 (substitute* "build-aux/meson_post_install.py"
8102 (("gtk-update-icon-cache") (which "true")))
8105 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8106 ("gettext" ,gettext-minimal)
8107 ("glib" ,glib "bin") ;for glib-compile-resources
8108 ("itstool" ,itstool)
8109 ("libxml2" ,libxml2) ;for xmllint
8110 ("pkg-config" ,pkg-config)
8113 `(("clutter" ,clutter)
8114 ("clutter-gtk" ,clutter-gtk)
8117 ("libcanberra" ,libcanberra)
8118 ("libmanette" ,libmanette)
8119 ("librsvg" ,librsvg)))
8120 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8121 (synopsis "GNOME version of Tetris")
8122 (description "Quadrapassel comes from the classic falling-block game,
8123 Tetris. The goal of the game is to create complete horizontal lines of
8124 blocks, which will disappear. The blocks come in seven different shapes made
8125 from four blocks each: one straight, two L-shaped, one square, and two
8126 S-shaped. The blocks fall from the top center of the screen in a random
8127 order. You rotate the blocks and move them across the screen to drop them in
8128 complete lines. You score by dropping blocks fast and completing lines. As
8129 your score gets higher, you level up and the blocks fall faster.")
8130 (license license:gpl2+)))
8132 (define-public endless-sky
8134 (name "endless-sky")
8140 (url "https://github.com/endless-sky/endless-sky")
8141 (commit (string-append "v" version))))
8142 (file-name (git-file-name name version))
8144 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8145 (build-system scons-build-system)
8147 `(#:scons ,scons-python2
8148 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8149 #:tests? #f ; no tests
8151 (modify-phases %standard-phases
8152 (add-after 'unpack 'patch-resource-locations
8153 (lambda* (#:key outputs #:allow-other-keys)
8154 (substitute* "source/Files.cpp"
8156 (string-append (assoc-ref outputs "out") "/")))
8158 (add-after 'unpack 'patch-scons
8160 (substitute* "SConstruct"
8161 ;; Keep environmental variables
8162 (("Environment\\(\\)")
8163 "Environment(ENV = os.environ)")
8164 ;; Install into %out/bin
8165 (("games\"") "bin\""))
8169 ("libjpeg" ,libjpeg-turbo)
8174 (home-page "https://endless-sky.github.io/")
8175 (synopsis "2D space trading and combat game")
8176 (description "Endless Sky is a 2D space trading and combat game. Explore
8177 other star systems. Earn money by trading, carrying passengers, or completing
8178 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8179 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8180 leave human space behind and hope to find friendly aliens whose culture is more
8181 civilized than your own.")
8182 (license (list license:gpl3+
8185 license:public-domain))))
8187 (define-public stepmania
8190 (version "5.1.0-b2")
8195 (url "https://github.com/stepmania/stepmania")
8196 (commit (string-append "v" version))))
8197 (file-name (git-file-name name version))
8200 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8201 (modules '((guix build utils)))
8204 ;; Remove song files, which are licensed under a non-commercial
8205 ;; clause, and a course pointing to them.
8206 (for-each delete-file-recursively
8207 '("Songs/StepMania 5/Goin' Under"
8208 "Songs/StepMania 5/MechaTribe Assault"
8209 "Songs/StepMania 5/Springtime"))
8210 (for-each delete-file '("Courses/Default/Jupiter.crs"
8211 "Courses/Default/Jupiter.png"))
8213 (substitute* "extern/CMakeLists.txt"
8214 (("include\\(CMakeProject-png.cmake\\)") ""))
8215 (delete-file-recursively "extern/libpng")
8217 (build-system cmake-build-system)
8219 `(#:tests? #f ;FIXME: couldn't find how to run tests
8220 #:build-type "Release"
8221 #:out-of-source? #f ;for the 'install-desktop' phase
8223 (list "-DWITH_SYSTEM_FFMPEG=1"
8224 ;; SSE instructions are available on Intel systems only.
8225 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8229 '("-DWITH_SSE2=NO"))
8230 ;; Configuration cannot find GTK2 without the two following
8232 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8233 (assoc-ref %build-inputs "gtk+")
8234 "/lib/gtk-2.0/include")
8235 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8236 (assoc-ref %build-inputs "glib")
8237 "/lib/glib-2.0/include"))
8239 (modify-phases %standard-phases
8240 (add-after 'unpack 'ensure-application-files-can-be-found
8241 (lambda* (#:key outputs #:allow-other-keys)
8242 (let ((out (assoc-ref outputs "out")))
8243 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8244 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8245 (string-append "\"" out
8246 "/share/stepmania/GtkModule.so\"")))
8247 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8248 (("Root = sDirOfExecutable")
8249 (string-append "Root = \"" out "/share/stepmania/\""))
8250 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8251 (string-append "\"" out "/share/stepmania/" dir "\"")))
8252 (substitute* "src/RageFileManager.cpp"
8253 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8254 (string-append "\"" out "/share/stepmania/\""))))
8256 (add-after 'unpack 'fix-install-subdir
8257 ;; Installation would be done in "%out/stepmania-X.Y", but we
8258 ;; prefer the more common layout "%out/share/stepmania".
8260 (substitute* "src/CMakeLists.txt"
8261 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8263 (add-after 'unpack 'unbundle-libpng
8264 (lambda* (#:key inputs #:allow-other-keys)
8265 (substitute* "src/CMakeLists.txt"
8266 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8267 (string-append (assoc-ref inputs "libpng") "/include")))
8269 (add-after 'install 'install-executable
8270 (lambda* (#:key outputs #:allow-other-keys)
8271 (let* ((out (assoc-ref outputs "out"))
8272 (bin (string-append out "/bin"))
8273 (exe (string-append out "/share/stepmania/stepmania")))
8275 (symlink exe (string-append bin "/stepmania"))
8277 (add-after 'install-executable 'install-desktop
8278 (lambda* (#:key outputs #:allow-other-keys)
8279 (let* ((out (assoc-ref outputs "out"))
8280 (share (string-append out "/share"))
8281 (applications (string-append share "/applications"))
8282 (icons (string-append share "/icons")))
8283 (install-file "stepmania.desktop" applications)
8285 (copy-recursively "icons" icons)
8287 ;; Move documentation in a more usual place, i.e.,
8288 ;; "%out/share/doc/stepmania/".
8289 (add-after 'install-desktop 'install-doc
8290 (lambda* (#:key outputs #:allow-other-keys)
8291 (let* ((out (assoc-ref outputs "out"))
8292 (share (string-append out "/share")))
8293 (with-directory-excursion share
8295 (symlink "../stepmania/Docs" "doc/stepmania"))
8298 `(("pkg-config" ,pkg-config)
8301 `(("alsa-lib" ,alsa-lib)
8302 ;; Per upstream, StepMania is only guaranteed to work with a very
8303 ;; specific FFmpeg version, which is included in the repository as
8304 ;; a Git submodule. This particular version requirement usually
8305 ;; changes every few years.
8306 ("ffmpeg" ,ffmpeg-for-stepmania)
8310 ("jsoncpp" ,jsoncpp)
8312 ("libjpeg" ,libjpeg-turbo)
8316 ("libvorbis" ,libvorbis)
8317 ("libxinerama" ,libxinerama)
8318 ("libxrandr" ,libxrandr)
8321 ("pulseaudio" ,pulseaudio)
8325 (synopsis "Advanced rhythm game designed for both home and arcade use")
8326 (description "StepMania is a dance and rhythm game. It features 3D
8327 graphics, keyboard and dance pad support, and an editor for creating your own
8330 This package provides the core application, but no song is shipped. You need
8331 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8332 (home-page "https://www.stepmania.com")
8333 (license license:expat)))
8335 (define-public btanks
8338 (version "0.9.8083")
8342 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8343 "btanks-" version ".tar.bz2"))
8346 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8347 (build-system scons-build-system)
8349 `(#:tests? #f ; there are none
8350 #:scons ,scons-python2
8351 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8353 (modify-phases %standard-phases
8354 (add-after 'unpack 'replace-removed-scons-syntax
8356 (substitute* "SConstruct"
8357 (("Options") "Variables")
8358 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8359 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8361 (add-after 'set-paths 'set-sdl-paths
8362 (lambda* (#:key inputs #:allow-other-keys)
8364 (string-append (assoc-ref inputs "sdl")
8366 (or (getenv "CPATH") "")))
8368 (add-after 'unpack 'fix-compilation-errors
8370 (substitute* "mrt/base_file.h"
8371 (("#include <string>" m)
8372 (string-append m "\n#include <sys/types.h>")))
8373 (substitute* '("engine/sl08/sl08.h"
8374 "engine/sl08/sl08.py")
8375 (("signal = NULL") "signal = 0")
8376 (("object\\(NULL\\)") "object(0)")
8377 (("func\\(NULL\\)") "func(0)")
8378 ((" connect\\(signal_ref\\)")
8379 " this->connect(signal_ref)"))
8380 (substitute* "math/range_list.h"
8381 ((" lower_bound\\(value\\)")
8382 " this->lower_bound(value)")
8385 (substitute* "clunk/source.cpp"
8386 (("using namespace clunk" m)
8387 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8389 (add-after 'unpack 'find-lua
8391 (substitute* "engine/SConscript"
8392 (("lua5.1") "lua-5.1")
8393 (("bt_libs.append\\(lua\\)")
8394 "bt_libs.append(\"lua\")"))
8399 ("libsmpeg" ,libsmpeg-with-sdl1)
8400 ("libvorbis" ,libvorbis)
8402 ("sdl" ,(sdl-union (list sdl
8408 `(("pkg-config" ,pkg-config)
8410 (home-page "http://btanks.sourceforge.net")
8411 (synopsis "Multiplayer tank battle game")
8412 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8413 game, where you can choose one of three vehicles and eliminate your enemy
8414 using the whole arsenal of weapons. It has original cartoon-like graphics and
8415 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8417 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8418 ;; released under GPLv2 or later. It comes with extra exceptions for the
8420 (license (list license:gpl2+ license:lgpl2.1+))))
8422 (define-public slimevolley
8424 (name "slimevolley")
8429 (uri (string-append "https://download.tuxfamily.org/slime/"
8430 "slimevolley_" version ".tar.gz"))
8432 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8433 (build-system cmake-build-system)
8435 `(#:tests? #f ;no test
8436 ;; Work around build failure: "error adding symbols: DSO
8437 ;; missing from command line".
8438 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8440 `(("gettext" ,gettext-minimal)))
8442 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8443 (home-page "https://slime.tuxfamily.org/")
8444 (synopsis "Unrealistic 2D volleyball simulation")
8446 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8447 the spirit of some Java games of the same name.
8449 Two teams, 1-3 players each, try to be the first to get 10 points.
8450 This happens when the one ball touches the floor on the other side of
8451 the net. There can be 1 to 8 balls in game. Once one ball touches
8452 the ground, the set ends and all balls are served again.")
8453 (license license:gpl3+)))
8455 (define-public slingshot
8463 (url "https://github.com/ryanakca/slingshot")
8465 (file-name (git-file-name name version))
8468 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8469 (build-system python-build-system)
8471 `(#:python ,python-2))
8473 `(("python-pygame" ,python2-pygame)))
8474 (home-page "https://github.com/ryanakca/slingshot")
8475 (synopsis "Simple 2D shooting strategy game set in space")
8476 (description "Slingshot is a two-dimensional strategy game where two
8477 players attempt to shoot one another through a section of space populated by
8478 planets. The main feature of the game is that the shots, once fired, are
8479 affected by the gravity of the planets.")
8480 (license license:gpl2+)))
8482 (define-public 4dtris
8489 (uri (string-append "https://launchpad.net/4dtris/"
8490 (version-major+minor version)
8491 "/" version "/+download/4dtris_"
8492 version ".orig.tar.gz"))
8495 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8496 (build-system gnu-build-system)
8499 (modify-phases %standard-phases
8500 (add-after 'unpack 'fix-install-directories
8501 (lambda* (#:key outputs #:allow-other-keys)
8502 (let ((out (assoc-ref outputs "out")))
8503 (substitute* "Makefile.in"
8504 (("bindir = /usr/games")
8505 (string-append "bindir = " out "/bin"))
8506 (("/usr/share/applications")
8507 (string-append out "/share/applications"))
8508 (("/usr/share/games/4dtris")
8509 (string-append out "/share/4dtris"))))
8511 (add-after 'set-paths 'set-sdl-paths
8512 (lambda* (#:key inputs #:allow-other-keys)
8514 (string-append (assoc-ref inputs "sdl")
8516 (or (getenv "CPATH") "")))
8519 `(("fontconfig" ,fontconfig)
8520 ("freeglut" ,freeglut)
8521 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8522 (home-page "https://launchpad.net/4dtris/")
8523 (synopsis "4D Tetris")
8524 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8525 game field is extended to 4D space, which has to filled up by the gamer with
8527 (license license:gpl3)))
8529 (define-public arx-libertatis
8531 (name "arx-libertatis")
8536 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8540 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8541 (build-system cmake-build-system)
8542 (outputs '("out" "installer"))
8544 '(#:tests? #f ; No tests.
8546 (modify-phases %standard-phases
8547 (add-after 'unpack 'fix-install-helper-paths
8548 (lambda* (#:key inputs #:allow-other-keys)
8549 (let ((p7zip (assoc-ref inputs "p7zip"))
8550 (innoextract (assoc-ref inputs "innoextract"))
8551 (wget (assoc-ref inputs "wget"))
8552 (zenity (assoc-ref inputs "zenity")))
8553 (substitute* "scripts/arx-install-data"
8554 (("have innoextract")
8555 (string-append "have " innoextract "/bin/innoextract"))
8556 (("then innoextract")
8557 (string-append "then " innoextract "/bin/innoextract"))
8558 (("else innoextract")
8559 (string-append "else " innoextract "/bin/innoextract"))
8560 (("for _extract_zip_sz in 7za 7z")
8561 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8562 (("else if have 7z")
8563 (string-append "else if have " p7zip "/bin/7za"))
8565 (string-append p7zip "/bin/7z x -tiso"))
8567 (string-append "if have " wget "/bin/wget"))
8569 (string-append wget "/bin/wget -O"))
8570 (("for backend in \\$preferred zenity")
8571 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8572 (("zenity +--title")
8573 (string-append zenity "/bin/zenity --title"))
8575 (string-append zenity "/bin/zenity)"))))
8577 (add-after 'install 'move-installer
8578 (lambda* (#:key outputs #:allow-other-keys)
8579 (let ((out (assoc-ref outputs "out"))
8580 (installer (assoc-ref outputs "installer")))
8581 (mkdir-p (string-append installer "/bin"))
8582 (rename-file (string-append out "/bin/arx-install-data")
8583 (string-append installer "/bin/arx-install-data"))))))))
8585 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8586 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8592 ("freetype" ,freetype)
8593 ;; The following are only needed by the arx-install-data script.
8594 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8595 ("zenity" ,zenity) ; GUI for install-helper.
8596 ("wget" ,wget) ; Used by the install-helper to download the patch.
8597 ;; The install-helper needs it to extract the patch.
8598 ("innoextract" ,innoextract)))
8599 (home-page "https://arx-libertatis.org/")
8600 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8601 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8602 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8603 This port however does not include the game data, so you need to obtain a copy
8604 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8605 features crafting, melee and ranged combat, as well as a unique casting system
8606 where the player draws runes in real time to effect the desired spell.")
8607 (license license:gpl3+)))
8609 (define-public edgar
8617 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8618 version "/edgar-" version "-1.tar.gz"))
8620 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8621 (build-system gnu-build-system)
8622 (arguments '(#:tests? #f ; there are no tests
8625 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8626 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8628 (modify-phases %standard-phases
8630 (add-before 'build 'fix-env
8631 (lambda* (#:key inputs #:allow-other-keys)
8633 (string-append (assoc-ref inputs "sdl2-union")
8635 (or (getenv "CPATH") "")))
8638 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8641 `(("pkg-config" ,pkg-config)
8642 ("autoconf" ,autoconf)
8643 ("automake" ,automake)
8644 ("gnu-gettext" ,gettext-minimal)
8645 ("libtool" ,libtool)
8647 (synopsis "2d action platformer game")
8648 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8649 When Edgar's father fails to return home after venturing out one dark and stormy night,
8650 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8651 a fortress beyond the forbidden swamp.")
8652 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8653 (license license:gpl2+)))
8655 (define-public openclonk
8662 "https://www.openclonk.org/builds/release/" version "/"
8663 "openclonk-" version "-src.tar.bz2"))
8666 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8667 (build-system cmake-build-system)
8669 `(#:configure-flags '("-DAudio_TK=OpenAL")
8670 #:test-target "tests"
8672 (modify-phases %standard-phases
8673 (add-after 'unpack 'prepare-gmock
8674 (lambda* (#:key inputs #:allow-other-keys)
8676 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8677 (substitute* "tests/CMakeLists.txt"
8679 (string-append (getcwd) "/gmock/googlemock"))
8681 (string-append (getcwd) "/gmock/googletest"))
8682 (("PATH_SUFFIXES \"src\" \"gtest\"")
8683 "PATH_SUFFIXES \"src\""))
8685 (add-after 'unpack 'adjust-backward-cpp-includes
8687 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8688 ;; that includes external libraries such as libdl from glibc.
8689 ;; By default, CMake interface includes are treated as "system
8690 ;; headers", and GCC behaves poorly when glibc is passed as a
8691 ;; system header (causing #include_next failures).
8693 ;; Here we prevent targets that consume the Backward::Backward
8694 ;; interface from treating it as "system includes".
8695 (substitute* "CMakeLists.txt"
8696 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8697 (string-append "set_property(TARGET " target " PROPERTY "
8698 "NO_SYSTEM_FROM_IMPORTED true)\n"
8701 (add-after 'unpack 'add-libiberty
8702 ;; Build fails upon linking executables without this.
8704 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8705 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8706 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8708 (add-after 'add-libiberty 'lax-freealut-requirement
8709 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8710 ;; it as 1.0.1. Force minimal version.
8712 (substitute* "cmake/FindAudio.cmake"
8713 (("freealut>=1.1.0") "freealut>=1.0.1"))
8715 (add-after 'lax-freealut-requirement 'fix-directories
8716 ;; Prefer "$out/share/openclonk" over
8717 ;; "$out/share/games/openclonk". Also install "openclonk"
8718 ;; binary in "bin/", not "games/".
8720 (substitute* "CMakeLists.txt"
8721 (("share/games/openclonk") "share/openclonk")
8722 (("TARGETS openclonk DESTINATION games")
8723 "TARGETS openclonk DESTINATION bin"))
8726 `(("googlemock" ,(package-source googletest))
8727 ("googletest" ,googletest)
8728 ("pkg-config" ,pkg-config)))
8730 `(("freealut" ,freealut)
8731 ("freetype" ,freetype)
8733 ("libiberty" ,libiberty)
8734 ("libjpeg" ,libjpeg-turbo)
8737 ("libvorbis" ,libvorbis)
8738 ("libxrandr" ,libxrandr)
8740 ("miniupnpc" ,miniupnpc)
8743 ("readline" ,readline)
8745 ("tinyxml" ,tinyxml)
8747 (home-page "https://www.openclonk.org/")
8749 "Multiplayer action game where you control small and nimble humanoids")
8750 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8751 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8752 antfarm-style landscape, the player controls a crew of Clonks, small but
8753 robust humanoid beings. The game encourages free play but the normal goal is
8754 to either exploit valuable resources from the earth by building a mine or
8755 fight each other on an arena-like map.")
8756 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8757 (license (list license:isc license:cc-by3.0))))
8759 (define-public flare-engine
8761 (name "flare-engine")
8766 (url "https://github.com/flareteam/flare-engine")
8767 (commit (string-append "v" version))))
8768 (file-name (git-file-name name version))
8771 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8772 (build-system cmake-build-system)
8774 `(#:tests? #f ;no test
8775 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8777 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8778 ("python" ,python-wrapper)
8779 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8780 (home-page "http://www.flarerpg.org/")
8781 (synopsis "Action Roleplaying Engine")
8782 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8783 game engine built to handle a very specific kind of game: single-player 2D
8785 (license license:gpl3+)))
8787 (define-public flare-game
8794 (url "https://github.com/flareteam/flare-game")
8795 (commit (string-append "v" version))))
8796 (file-name (git-file-name name version))
8799 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8800 (build-system cmake-build-system)
8802 `(#:tests? #f ;no test
8803 #:configure-flags '("-DDATADIR=share/flare")
8805 (modify-phases %standard-phases
8806 ;; Flare expects the mods to be located in the same folder.
8807 ;; Yet, "default" mod is in the engine, whereas the others
8808 ;; are in the current package. Merge everything here with
8810 (add-after 'install 'add-default-mod
8811 (lambda* (#:key inputs outputs #:allow-other-keys)
8812 (let* ((out (assoc-ref outputs "out"))
8813 (mods (string-append out "/share/flare/mods")))
8814 (with-directory-excursion mods
8815 (symlink (string-append (assoc-ref inputs "flare-engine")
8816 "/share/flare/mods/default")
8819 (add-after 'install 'install-executable
8820 ;; The package only provides assets for the game, the
8821 ;; executable coming from "flare-engine". Since more than
8822 ;; one game may use the engine, we create a new executable,
8823 ;; "flare-game", which launches the engine with appropriate
8825 (lambda* (#:key inputs outputs #:allow-other-keys)
8826 (let* ((out (assoc-ref outputs "out"))
8827 (bash (string-append (assoc-ref inputs "bash")
8829 (flare (string-append (assoc-ref inputs "flare-engine")
8831 (script (string-append out "/bin/flare-game")))
8832 (mkdir-p (dirname script))
8833 (call-with-output-file script
8837 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8841 (chmod script #o755))
8844 `(("flare-engine" ,flare-engine)))
8845 (home-page "http://www.flarerpg.org/")
8846 (synopsis "Fantasy action RPG using the FLARE engine")
8847 (description "Flare is a single-player 2D action RPG with
8848 fast-paced action and a dark fantasy style.")
8849 (license license:cc-by-sa3.0)))
8851 (define-public meritous
8858 (url "https://gitlab.com/meritous/meritous.git")
8859 (commit (string-append "v" version))))
8860 (file-name (git-file-name name version))
8863 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8864 (build-system gnu-build-system)
8866 `(#:tests? #f ;no test
8869 (string-append "prefix=" (assoc-ref %outputs "out")))
8871 (modify-phases %standard-phases
8873 (add-after 'unpack 'fix-sdl-path
8874 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8875 ;; directory, not SDL-union provided as an input to the package.
8876 ;; We force the latter with "--prefix=" option.
8877 (lambda* (#:key inputs #:allow-other-keys)
8878 (substitute* "Makefile"
8879 (("sdl-config" command)
8880 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8882 (add-after 'unpack 'fix-crash
8883 ;; XXX: Songs are not present in the repository, due to licensing
8884 ;; issues. Yet, the game tries to load them, and, since it cannot
8885 ;; find them, crashes. Users cannot add them back, the store being
8886 ;; read-only, so we turn off background music altogether.
8888 (substitute* "src/audio.c"
8889 (("PlayBackgroundMusic\\(new_track\\);" all)
8890 (string-append "// " all)))
8893 `(("intltool" ,intltool)))
8895 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8897 (home-page "https://gitlab.com/meritous/meritous")
8898 (synopsis "Action-adventure dungeon crawl game")
8899 (description "Far below the surface of the planet is a place of limitless
8900 power. Those that seek to control such a utopia will soon bring an end to
8901 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8902 journeys into the hallowed Orcus Dome in search of answers.
8904 Meritous is a action-adventure game with simple controls but a challenge to
8905 find a balance of power versus recovery time during real-time battles. Set in
8906 a procedurally generated world, the player can explore thousands of rooms in
8907 search of powerful artifacts, tools to help them, and to eventually free the
8908 Orcus Dome from evil.")
8909 (license license:gpl3+)))
8911 (define-public marble-marcher
8912 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8915 (name "marble-marcher")
8916 (version (git-version "0" revision commit))
8920 (url "https://github.com/HackerPoet/MarbleMarcher")
8922 (file-name (git-file-name name version))
8925 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8926 (build-system cmake-build-system)
8928 `(#:tests? #f ; there are none
8930 (modify-phases %standard-phases
8931 (add-after 'unpack 'embed-asset-directory
8932 (lambda* (#:key outputs #:allow-other-keys)
8933 (let ((assets (string-append (assoc-ref outputs "out")
8934 "/share/marble-marcher/assets/")))
8935 ;; Some of the files we're patching are
8936 ;; ISO-8859-1-encoded, so choose it as the default
8937 ;; encoding so the byte encoding is preserved.
8938 (with-fluids ((%default-port-encoding #f))
8939 (substitute* "src/Resource.rc"
8940 (("../assets/icon.ico")
8941 (string-append assets "icon.ico")))
8942 (substitute* "src/Res.h"
8943 (("assets/") assets))))
8946 (lambda* (#:key outputs #:allow-other-keys)
8947 (let* ((out (assoc-ref outputs "out"))
8948 (assets (string-append out "/share/marble-marcher/assets"))
8949 (bin (string-append out "/bin/")))
8952 (copy-recursively "../source/assets" assets)
8953 (install-file "MarbleMarcher" bin))
8960 `(("pkg-config" ,pkg-config)))
8961 (home-page "https://codeparade.itch.io/marblemarcher")
8962 (synopsis "Guide a marble across fractal landscapes")
8963 (description "Marble Marcher is a video game that uses a fractal physics
8964 engine and fully procedural rendering to produce beautiful and unique
8965 gameplay. The game is played on the surface of evolving fractals. The goal
8966 of the game is to get your marble to the flag as quickly as possible. But be
8967 careful not to fall off the level or get crushed by the fractal! There are 24
8969 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8970 (license (list license:gpl2+
8972 license:cc-by-sa3.0)))))
8974 ;; This must be updated together with flightgear.
8978 (version "2018.3.5")
8982 (uri (string-append "mirror://sourceforge/flightgear/release-"
8983 (version-major+minor version) "/"
8984 "simgear-" version ".tar.bz2"))
8986 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
8987 (build-system cmake-build-system)
8990 (modify-phases %standard-phases
8993 ;; Skip tests that require internet access.
8994 (invoke "ctest" "-E" "(http|dns)"))))))
8996 `(("boost" ,boost-for-mysql) ; fails with 1.69
9001 ("openscenegraph" ,openscenegraph-3.4)
9003 (home-page "https://home.flightgear.org/")
9004 (synopsis "Libraries for 3D simulations and games")
9005 (description "SimGear is a set of libraries designed to be used as
9006 building blocks for quickly assembling 3D simulations, games, and
9007 visualization applications. SimGear is developed by the FlightGear project
9008 and also provides the base for the FlightGear Flight Simulator.")
9009 (license license:lgpl2.0+)))
9011 (define-public flightgear
9014 (version (package-version simgear))
9018 (uri (string-append "mirror://sourceforge/flightgear/release-"
9019 (version-major+minor version) "/"
9020 "flightgear-" version ".tar.bz2"))
9022 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9023 (modules '((guix build utils)))
9026 ;; There are some bundled libraries.
9027 (for-each delete-file-recursively
9028 '("3rdparty/sqlite3/"))
9030 (build-system cmake-build-system)
9033 (list "-DSYSTEM_SQLITE=ON"
9034 (string-append "-DFG_DATA_DIR="
9035 (assoc-ref %outputs "out")
9036 "/share/flightgear"))
9037 ;; TODO: test cannot be run because the "run_test_suite" executable
9038 ;; does not seem to be built.
9041 (modify-phases %standard-phases
9042 (add-after 'install 'wrap-executable
9043 (lambda* (#:key inputs outputs #:allow-other-keys)
9044 (let ((out (assoc-ref outputs "out")))
9045 (wrap-program (string-append out "/bin/fgfs")
9046 `("QT_PLUGIN_PATH" ":" prefix
9047 ,(map (lambda (label)
9048 (string-append (assoc-ref inputs label)
9049 "/lib/qt5/plugins"))
9050 '("qtbase" "qtdeclarative" "qtsvg")))
9051 `("QML2_IMPORT_PATH" ":" prefix
9052 ,(map (lambda (label)
9053 (string-append (assoc-ref inputs label)
9055 '("qtdeclarative" "qtsvg"))))
9057 (add-after 'install 'install-data
9058 (lambda* (#:key inputs outputs #:allow-other-keys)
9059 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9061 (with-directory-excursion share
9062 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9063 "--strip-components=1")))
9066 `(("boost" ,boost-for-mysql) ; same as simgear
9069 ("freeglut" ,freeglut)
9070 ("freetype" ,freetype)
9074 ("openscenegraph" ,openscenegraph-3.4)
9077 ("qtdeclarative" ,qtdeclarative)
9079 ("simgear" ,simgear)
9080 ("speexdsp" ,speexdsp)
9084 `(("cppunit" ,cppunit)
9085 ("pkg-config" ,pkg-config)
9086 ("qttools" ,qttools)
9090 (uri (string-append "mirror://sourceforge/flightgear/release-"
9091 (version-major+minor version) "/"
9092 "FlightGear-" version "-data.tar.bz2"))
9095 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9096 (home-page "https://home.flightgear.org/")
9097 (synopsis "Flight simulator")
9098 (description "The goal of the FlightGear project is to create a
9099 sophisticated flight simulator framework for use in research or academic
9100 environments, pilot training, as an industry engineering tool, for DIY-ers to
9101 pursue their favorite interesting flight simulation idea, and last but
9102 certainly not least as a fun, realistic, and challenging desktop flight
9104 (license license:gpl2+)))
9106 (define-public jumpnbump
9113 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9115 (file-name (git-file-name name version))
9118 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9119 (build-system gnu-build-system)
9123 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9124 #:tests? #f ;no test
9126 (modify-phases %standard-phases
9127 (delete 'configure) ;no configure script
9128 (add-after 'unpack 'fix-sdl-path
9129 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9130 ;; directory, not SDL-union provided as an input to the package.
9131 ;; We force the latter with "--prefix=" option.
9132 (lambda* (#:key inputs #:allow-other-keys)
9133 (substitute* "Makefile"
9134 (("sdl2-config" command)
9135 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9139 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9142 `(("gettext" ,gettext-minimal))) ;for msgfmt
9143 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9144 (synopsis "Multiplayer platform game with bunnies")
9145 (description "You, as a bunny, have to jump on your opponents to make them
9146 explode. It is a true multiplayer game; you cannot play this alone. You can
9147 play with up to four players simultaneously. It has network support.")
9148 (license license:gpl2+)))
9150 (define-public hedgewars
9156 (uri (string-append "https://www.hedgewars.org/download/releases/"
9157 "hedgewars-src-" version ".tar.bz2"))
9160 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9161 (build-system cmake-build-system)
9163 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9164 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9165 ;; a Pascal to C translator and Clang instead.
9166 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9167 "-Dhaskell_flags=-dynamic;-fPIC")
9169 (modify-phases %standard-phases
9171 (lambda _ (invoke "ctest")))
9172 (add-after 'install 'install-icon
9174 ;; Install icon for the desktop file.
9175 (let* ((out (assoc-ref %outputs "out"))
9176 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9177 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9178 (install-file "misc/hedgewars.png" icons)))
9181 `(("ffmpeg" ,ffmpeg)
9182 ("freeglut" ,freeglut)
9183 ("ghc-entropy" ,ghc-entropy)
9184 ("ghc-hslogger" ,ghc-hslogger)
9185 ("ghc-network" ,ghc-network)
9186 ("ghc-random" ,ghc-random)
9187 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9188 ("ghc-sandi" ,ghc-sandi)
9189 ("ghc-sha" ,ghc-sha)
9190 ("ghc-utf8-string" ,ghc-utf8-string)
9191 ("ghc-vector" ,ghc-vector)
9192 ("ghc-zlib" ,ghc-zlib)
9199 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9203 ("pkg-config" ,pkg-config)
9204 ("qttools" ,qttools)))
9205 (home-page "https://hedgewars.org/")
9206 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9208 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9209 featuring the antics of pink hedgehogs with attitude as they battle from the
9210 depths of hell to the depths of space.
9212 As commander, it's your job to assemble your crack team of hedgehog soldiers
9213 and bring the war to your enemy.")
9214 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9215 ;; scripts are distributed under various terms.
9216 (license (list license:gpl2
9217 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9218 license:expat license:fdl1.3+ license:public-domain
9221 (define-public harmonist
9228 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9229 (commit (string-append "v" version))))
9230 (file-name (git-file-name name version))
9233 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9234 (build-system go-build-system)
9236 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9238 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9239 (home-page "https://harmonist.tuxfamily.org/")
9240 (synopsis "Stealth coffee-break roguelike game")
9241 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9242 coffee-break roguelike game. The game has a heavy focus on tactical
9243 positioning, light and noise mechanisms, making use of various terrain types
9244 and cones of view for monsters. Aiming for a replayable streamlined experience,
9245 the game avoids complex inventory management and character building, relying
9246 on items and player adaptability for character progression.")
9247 (license license:isc)))
9249 (define-public harmonist-tk
9252 (name "harmonist-tk")
9255 (package-arguments harmonist)
9257 (modify-phases %standard-phases
9260 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9261 "git.tuxfamily.org/harmonist/harmonist")))
9264 (invoke "go" "test" "--tags" "tk"
9265 "git.tuxfamily.org/harmonist/harmonist")))))))
9267 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9269 (define-public drascula
9275 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9276 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9277 "drascula-" version ".zip"))
9280 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9281 (build-system trivial-build-system)
9283 `(#:modules ((guix build utils))
9286 (use-modules (guix build utils)
9288 (let* ((out (assoc-ref %outputs "out"))
9289 (share (string-append out "/share/drascula"))
9290 (scummvm (assoc-ref %build-inputs "scummvm")))
9292 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9294 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9299 (assoc-ref %build-inputs input)
9301 ;; Every input provides "readme.txt", and we want to
9302 ;; preserve them all. Therefore we rename them first.
9305 (rename-file "readme.txt" "readme-international.txt"))
9307 (rename-file "readme.txt" "readme-audio.txt"))
9309 ;; Install documentation.
9310 (for-each (lambda (f) (install-file f doc))
9311 (find-files "." "\\.(txt|doc)$"))
9313 (for-each (lambda (f) (install-file f share))
9314 (find-files "." "\\.(ogg|00[0-9])$")))
9315 '("drascula-audio" "drascula-int" "source")))
9316 ;; Create standalone executable.
9317 (let* ((bin (string-append out "/bin"))
9318 (executable (string-append bin "/drascula"))
9319 (bash (string-append (assoc-ref %build-inputs "bash")
9322 (with-output-to-file executable
9324 (format #t "#!~a~%" bash)
9326 "exec ~a/bin/scummvm --path=~a drascula~%"
9328 (chmod executable #o755))
9329 ;; Create desktop file. There is no dedicated icon for the
9330 ;; game, so we borrow SCUMMVM's.
9331 (let ((apps (string-append out "/share/applications")))
9333 (make-desktop-entry-file
9334 (string-append apps "/drascula.desktop")
9335 #:name "Drascula: The Vampire Strikes Back"
9336 #:generic-name "Drascula"
9337 #:exec (string-append out "/bin/drascula")
9338 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9339 #:categories '("AdventureGame" "Game" "RolePlaying")
9340 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9341 #:comment '((#f "Classic 2D point and click adventure game")
9342 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9343 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9344 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9350 `(("scummvm" ,scummvm)
9352 ,(let ((version "1.1"))
9355 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9356 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9357 "drascula-int-" version ".zip"))
9360 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9362 ,(let ((version "2.0"))
9365 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9366 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9367 "drascula-audio-" version ".zip"))
9370 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9371 (home-page "https://www.scummvm.org")
9372 (synopsis "Classic 2D point and click adventure game")
9373 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9374 point and click adventure game.
9376 In Drascula you play the role of John Hacker, a British estate agent, that
9377 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9378 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9379 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9380 the World and demonstrating that he is even more evil than his brother Vlad.")
9381 ;; Drascula uses a BSD-like license.
9382 (license (license:non-copyleft "file:///readme.txt"))))
9384 (define (make-lure-package name language hash)
9392 "mirror://sourceforge/scummvm/extras/"
9393 "Lure%20of%20the%20Temptress/"
9394 name "-" version ".zip"))
9397 (build-system trivial-build-system)
9399 `(#:modules ((guix build utils))
9402 (use-modules (guix build utils))
9403 (let* ((out (assoc-ref %outputs "out"))
9404 (share (string-append out "/share"))
9405 (data (string-append share "/" ,name "/" ,language))
9406 (apps (string-append share "/applications"))
9407 (bin (string-append out "/bin"))
9408 (executable (string-append bin "/" ,name))
9409 (scummvm (assoc-ref %build-inputs "scummvm")))
9410 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9412 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9413 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9414 (for-each (lambda (f) (install-file f doc))
9415 (find-files "." "\\.(txt|PDF|pdf)$")))
9416 (for-each (lambda (f) (install-file f data))
9417 (find-files "." "\\.(vga|VGA)$"))
9418 ;; Build the executable.
9420 (let ((bash (assoc-ref %build-inputs "bash")))
9421 (with-output-to-file executable
9423 (format #t "#!~a/bin/bash~%" bash)
9424 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9425 scummvm ,language data))))
9426 (chmod executable #o755)
9427 ;; Create desktop file. There is no dedicated
9428 ;; icon for the game, so we borrow SCUMMVM's.
9430 (with-output-to-file (string-append apps "/" ,name ".desktop")
9434 Name=Lure of the Temptress~@
9437 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9438 Categories=AdventureGame;Game;RolePlaying;~@
9439 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9440 Comment=Classic 2D point and click adventure game~@
9441 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9442 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9443 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9445 executable scummvm)))
9448 `(("unzip" ,unzip)))
9451 ("scummvm" ,scummvm)))
9452 (home-page "https://www.scummvm.org")
9453 (synopsis "2D point and click fantasy adventure game")
9455 "Lure of the Temptress is a classic 2D point and click adventure game.
9457 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9458 intents and purposes, a good man. After decades of unrest the King has united
9459 the warring factions in his kingdom and all his lands are at peace, except
9460 a remote region around a town called Turnvale. A revolt has recently taken
9461 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9462 Selena, the titular temptress. The king calls together his finest horsemen
9463 and heads off (with you in tow) to Turnvale just to witness how hellish
9464 mercenary monsters called Skorl are invading the town.
9466 The king's men are defeated, the king is killed and you fall of your horse and
9467 bang your head heavily on the ground. You have been *unconscious for a while
9468 when you realize that you are in a dingy cell guarded by a not so friendly
9469 Skorl. Maybe it would be an idea to try and escape...")
9470 (license (license:non-copyleft "file:///README"))))
9474 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9476 (define-public lure-de
9478 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9480 (define-public lure-es
9482 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9484 (define-public lure-fr
9486 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9488 (define-public lure-it
9490 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9492 (define (make-queen-package name file-prefix release language hash)
9499 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9500 "Flight%20of%20the%20Amazon%20Queen/"
9501 file-prefix release ".zip"))
9504 (build-system trivial-build-system)
9506 `(#:modules ((guix build utils))
9509 (use-modules (guix build utils))
9510 (let* ((out (assoc-ref %outputs "out"))
9511 (share (string-append out "/share"))
9512 (data (string-append share "/" ,name))
9513 (apps (string-append share "/applications"))
9514 (bin (string-append out "/bin"))
9515 (executable (string-append bin "/" ,name))
9516 (scummvm (assoc-ref %build-inputs "scummvm")))
9517 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9519 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9520 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9521 (install-file "readme.txt" doc))
9522 (install-file "queen.1c" data)
9524 (let ((bash (assoc-ref %build-inputs "bash")))
9525 (with-output-to-file executable
9527 (format #t "#!~a/bin/bash~%" bash)
9528 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9530 (chmod executable #o755)
9531 ;; Create desktop file. There is no dedicated
9532 ;; icon for the game, so we borrow SCUMMVM's.
9534 (with-output-to-file (string-append apps "/" ,name ".desktop")
9538 Name=Flight of the Amazon Queen~@
9540 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~@
9541 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~@
9544 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9545 Categories=AdventureGame;Game;RolePlaying;~@
9546 Keywords=adventure;game;roleplaying;fantasy;~%"
9547 executable scummvm))))
9550 `(("unzip" ,unzip)))
9553 ("scummvm" ,scummvm)))
9554 (home-page "https://www.scummvm.org/")
9555 (synopsis "Classic 2D point and click adventure game")
9556 (description "Flight of the Amazon Queen is a 2D point-and-click
9557 adventure game set in the 1940s.
9559 You assume the role of Joe King, a pilot for hire who is given the job
9560 of flying Faye Russell (a famous movie star) into the Amazon jungle
9561 for a photo shoot. Of course, things never go according to plans.
9562 After an unfortunate turn of events they find themselves stranded in
9563 the heart of the Amazon jungle, where Joe will embark on a quest to
9564 rescue a kidnapped princess and in the process, discover the true
9565 sinister intentions of a suspiciously located Lederhosen company. In
9566 a rich 2D environment, Joe will cross paths with a variety of unlikely
9567 jungle inhabitants including, but not limited to, a tribe of Amazon
9568 women and 6-foot-tall pygmies.")
9569 (license (license:non-copyleft "file:///readme.txt"))))
9571 (define-public queen
9573 "queen" "FOTAQ_Talkie-" "1.1" "en"
9574 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9576 (define-public queen-de
9578 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9579 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9581 (define-public queen-fr
9583 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9584 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9586 (define-public queen-it
9588 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9589 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9594 (version "1.2") ;1.3 is floppy version
9598 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9599 "Beneath%20a%20Steel%20Sky/"
9600 "bass-cd-" version ".zip"))
9602 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9603 (build-system trivial-build-system)
9605 `(#:modules ((guix build utils))
9608 (use-modules (guix build utils))
9609 (let* ((out (assoc-ref %outputs "out"))
9610 (share (string-append out "/share"))
9611 (data (string-append share "/" ,name))
9612 (apps (string-append share "/applications"))
9613 (bin (string-append out "/bin"))
9614 (executable (string-append bin "/" ,name))
9615 (scummvm (assoc-ref %build-inputs "scummvm")))
9616 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9618 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9619 (let ((doc (string-append share "/doc/bass-" ,version)))
9620 (install-file "readme.txt" doc))
9621 (for-each (lambda (f) (install-file f data))
9622 (find-files "." "^sky\\."))
9623 ;; Build the executable.
9625 (let ((bash (assoc-ref %build-inputs "bash")))
9626 (with-output-to-file executable
9628 (format #t "#!~a/bin/bash~%" bash)
9629 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9630 (chmod executable #o755)
9631 ;; Create desktop file. There is no dedicated
9632 ;; icon for the game, so we borrow SCUMMVM's.
9634 (with-output-to-file (string-append apps "/" ,name ".desktop")
9638 Name=Beneath a Steel Sky~@
9641 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9642 Categories=AdventureGame;Game;RolePlaying;~@
9643 Keywords=adventure;game;roleplaying;cyberpunk;~@
9644 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9645 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9646 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9648 executable scummvm)))
9651 `(("unzip" ,unzip)))
9654 ("scummvm" ,scummvm)))
9655 (home-page "https://www.scummvm.org/")
9656 (synopsis "Classic 2D point and click science-fiction adventure game")
9658 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9659 post-apocalyptic vision of the future. It revolves around Union City,
9660 where selfishness, rivalry, and corruption by its citizens seems to be
9661 all too common, those who can afford it live underground, away from
9662 the pollution and social problems which are plaguing the city.
9664 You take on the role of Robert Foster, an outcast of sorts from the
9665 city since a boy who was raised in a remote environment outside of
9666 Union City simply termed ``the gap''. Robert's mother took him away
9667 from Union City as a child on their way to ``Hobart'' but the
9668 helicopter crashed on its way. Unfortunately, Robert's mother died,
9669 but he survived and was left to be raised by a local tribe from the
9672 Years later, Union City security drops by and abducts Robert, killing
9673 his tribe in the process; upon reaching the city the helicopter taking
9674 him there crashes with him escaping, high upon a tower block in the
9675 middle of the city. He sets out to discover the truth about his past,
9676 and to seek vengeance for the killing of his tribe.")
9677 (license (license:non-copyleft "file:///readme.txt"))))
9679 (define-public gnurobots
9686 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9690 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9691 (build-system gnu-build-system)
9696 ("readline" ,readline)
9697 ("guile" ,guile-1.8)))
9699 `(("pkg-config" ,pkg-config)))
9703 ;; Do not abort build on "deprecated-declarations" warnings.
9704 "CFLAGS=-Wno-error=deprecated-declarations"
9705 ;; Find readline headers in sub-directory.
9706 (string-append "READLINE_CFLAGS=-I"
9707 (assoc-ref %build-inputs "readline")
9708 "/include/readline/"))
9710 (modify-phases %standard-phases
9711 (add-after 'install 'install-doc
9712 (lambda* (#:key outputs #:allow-other-keys)
9713 (install-file "doc/Robots-HOWTO"
9714 (string-append (assoc-ref outputs "out")
9715 "/share/doc/gnurobots-"
9718 (home-page "https://www.gnu.org/software/gnurobots/")
9719 (synopsis "Program a little robot and watch it explore a world")
9721 "GNU Robots is a game in which you program a robot to explore a world
9722 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9723 the game is to stay alive and collect prizes. The robot program conveniently
9724 may be written in a plain text file in the Scheme programming language.")
9725 (license license:gpl3+)))
9727 (define-public ri-li
9733 (uri (string-append "mirror://sourceforge/ri-li/"
9734 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9735 "Ri-li-" version ".tar.bz2"))
9738 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9740 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9741 ;; It doesn't build otherwise.
9742 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9743 (build-system gnu-build-system)
9746 (modify-phases %standard-phases
9747 ;; Remove "gentoo" subdirectory from Makefile, as it is
9748 ;; missing a make file and generates a build failure.
9749 (add-after 'configure 'fix-build
9751 (substitute* "Makefile"
9754 (add-after 'install 'install-desktop-file
9755 (lambda* (#:key outputs #:allow-other-keys)
9756 (let* ((out (assoc-ref outputs "out"))
9757 (apps (string-append out "/share/applications"))
9758 (pixmaps (string-append out "/share/pixmaps")))
9759 (for-each (lambda (f) (install-file f pixmaps))
9760 (find-files "data" "\\.(png|ico)$"))
9762 (with-output-to-file (string-append apps "/ri-li.desktop")
9768 Icon=~a/Ri-li-icon-32x32.png~@
9769 Categories=Game;ArcadeGame;~@
9770 Keywords=toy;train;wooden;snake-like;engine;~@
9771 Comment=a toy simulator game~@
9772 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9773 Comment[fr]=un jeu de petit train~@
9774 Comment[ro_RO]=un joc cu un tren de jucărie~@
9779 (add-after 'install-desktop-file 'remove-spurious-files
9780 ;; Delete redundant files already installed somewhere else.
9781 (lambda* (#:key outputs #:allow-other-keys)
9782 (let ((out (assoc-ref outputs "out")))
9783 (for-each delete-file
9784 (find-files (string-append out "/share/Ri-li")
9785 "\\.(png|ico)|COPYING"))
9788 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9789 (home-page "http://www.ri-li.org")
9790 (synopsis "Toy train simulation game")
9791 (description "Ri-li is a game in which you drive a wooden toy
9792 steam locomotive across many levels and collect all the coaches to
9794 ;; The project is dual-licensed GPL2+ and GPL3+.
9795 (license (list license:gpl2+ license:gpl3+))))
9797 (define-public freeorion
9804 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9805 "download/v" version "/FreeOrion_v" version
9806 "_2020-07-10.f3d403e_Source.tar.gz"))
9808 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9809 (modules '((guix build utils)))
9812 ;; There are some bundled fonts.
9813 (for-each delete-file-recursively '("default/data/fonts"))
9815 (build-system cmake-build-system)
9817 '(#:tests? #f ;no test
9819 (modify-phases %standard-phases
9820 (add-after 'unpack 'unbundle-fonts
9821 (lambda* (#:key inputs #:allow-other-keys)
9822 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9823 "/share/fonts/truetype/")))
9824 (substitute* "UI/ClientUI.cpp"
9825 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9827 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9831 ("boost_signals" ,boost-signals2)
9832 ("font-dejavu" ,font-dejavu)
9833 ("font-roboto" ,font-google-roboto)
9834 ("freetype2" ,freetype)
9839 ("libvorbis" ,libvorbis)
9844 (home-page "https://www.freeorion.org/index.php/Main_Page")
9845 (synopsis "Turn-based space empire and galactic conquest computer game")
9847 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9848 computer game being designed and built by the FreeOrion project. Control an
9849 empire with the goal of exploring the galaxy, expanding your territory,
9850 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9851 inspired by the tradition of the Master of Orion games, but is not a clone or
9852 remake of that series or any other game.")
9853 ;; Source code is released under gpl2. Artwork, music and sounds, and
9854 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9855 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9856 ;; released under lgpl2.1+.
9857 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9859 (define-public leela-zero
9867 (url "https://github.com/leela-zero/leela-zero")
9868 (commit (string-append "v" version))))
9869 (file-name (git-file-name name version))
9872 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9873 (patches (search-patches "leela-zero-gtest.patch"))))
9874 (build-system cmake-build-system)
9876 `(("googletest" ,googletest)))
9879 ("ocl-icd" ,ocl-icd)
9880 ("openblas" ,openblas)
9881 ("opencl-headers" ,opencl-headers)
9885 '(#:configure-flags '("-DUSE_BLAS=YES")
9886 #:phases (modify-phases %standard-phases
9887 (add-before 'configure 'fix-tests
9888 (lambda* (#:key outputs #:allow-other-keys)
9889 (let ((home (getcwd)))
9890 (setenv "HOME" home)
9891 (substitute* "src/tests/gtests.cpp"
9892 (("\\.\\./src/tests/0k\\.txt")
9893 (string-append home "/src/tests/0k.txt"))
9894 (("cfg_gtp_mode = true;")
9895 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9899 (invoke "./tests"))))))
9900 (home-page "https://github.com/leela-zero/leela-zero")
9901 (synopsis "Program playing the game of Go")
9903 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9904 the AlphaGo Zero paper. The current best network weights file for the engine
9905 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9906 (license license:gpl3+)))
9915 (url "https://github.com/bernds/q5Go")
9916 (commit (string-append "q5go-" version))))
9917 (file-name (git-file-name name version))
9920 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9921 (build-system gnu-build-system)
9923 `(("pkg-config" ,pkg-config)))
9925 `(("qtbase" ,qtbase)
9926 ("qtmultimedia" ,qtmultimedia)
9930 (modify-phases %standard-phases
9931 (add-after 'unpack 'fix-configure-script
9933 ;; Bypass the unavailable qtchooser program.
9934 (substitute* "configure"
9935 (("test -z \"QTCHOOSER\"")
9937 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9940 (add-after 'unpack 'fix-paths
9942 (substitute* '("src/pics/Makefile.in"
9943 "src/translations/Makefile.in")
9944 (("\\$\\(datadir\\)/qGo/")
9945 "$(datadir)/q5go/"))
9947 (add-after 'install 'install-desktop-file
9948 (lambda* (#:key outputs #:allow-other-keys)
9949 (let* ((out (assoc-ref outputs "out"))
9950 (apps (string-append out "/share/applications"))
9951 (pics (string-append out "/share/q5go/pics")))
9952 (delete-file-recursively (string-append out "/share/applnk"))
9953 (delete-file-recursively (string-append out "/share/mimelnk"))
9954 (install-file "../source/src/pics/Bowl.ico" pics)
9956 (with-output-to-file (string-append apps "/q5go.desktop")
9964 Comment=Game of Go~@
9965 Comment[de]=Spiel des Go~@
9967 Comment[es]=Juego de Go~@
9968 Comment[fr]=Jeu de Go~@
9976 (synopsis "Qt GUI to play the game of Go")
9978 "This a tool for Go players which performs the following functions:
9981 @item Analysis frontend for Leela Zero (or compatible engines),
9982 @item GTP interface (to play against an engine),
9983 @item IGS client (to play on the internet),
9984 @item Export games to a variety of formats.
9986 (home-page "https://github.com/bernds/q5Go")
9987 (license license:gpl2+)))
9989 (define-public ktuberling
9996 (uri (string-append "mirror://kde/stable/release-service/" version
9997 "/src/ktuberling-" version ".tar.xz"))
9999 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10000 (build-system qt-build-system)
10002 `(("extra-cmake-modules" ,extra-cmake-modules)
10003 ("kdoctools" ,kdoctools)
10006 `(("kcompletion" ,kcompletion)
10007 ("kconfigwidgets" ,kconfigwidgets)
10008 ("kcoreaddons" ,kcoreaddons)
10010 ("kdbusaddons" ,kdbusaddons)
10013 ("kwidgetsaddons" ,kwidgetsaddons)
10014 ("kxmlgui" ,kxmlgui)
10015 ("libkdegames" ,libkdegames)
10016 ("python" ,python-wrapper)
10018 ("qtmultimedia" ,qtmultimedia)
10019 ("qtdeclarative" ,qtdeclarative)
10021 (home-page "https://games.kde.org/")
10022 (synopsis "Stamp drawing toy")
10023 (description "KTuberling is a drawing toy intended for small children and
10024 adults who remain young at heart. The game has no winner; the only purpose is
10025 to make the funniest faces you can. Several activities are possible, e.g.:
10028 @item Give the potato a funny face, clothes, and other goodies
10029 @item Build a small town, complete with school, zoo, and fire department
10030 @item Create a fantastic moonscape with spaceships and aliens
10034 KTuberling can speak the name of each the object in several languages,
10035 to assist in learning basic vocabulary.
10037 This package is part of the KDE games module.")
10038 (license (list license:gpl2+ license:fdl1.2+))))
10040 (define-public picmi
10043 (version "20.12.0")
10047 (uri (string-append "mirror://kde/stable/release-service/" version
10048 "/src/picmi-" version ".tar.xz"))
10050 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10051 (build-system qt-build-system)
10053 `(("extra-cmake-modules" ,extra-cmake-modules)
10054 ("kdoctools" ,kdoctools)))
10056 `(("kcoreaddons" ,kcoreaddons)
10058 ("kdbusaddons" ,kdbusaddons)
10059 ("kdeclarative" ,kdeclarative)
10062 ("knewstuff" ,knewstuff)
10063 ("kxmlgui" ,kxmlgui)
10064 ("libkdegames" ,libkdegames)
10066 ("qtdeclarative" ,qtdeclarative)
10068 (home-page "https://games.kde.org/")
10069 (synopsis "Number logic game")
10070 (description "Picmi is a number logic game in which cells in a grid have
10071 to be colored or left blank according to numbers given at the side of the
10072 grid. The aim is to reveal a hidden picture.
10074 This package is part of the KDE games module.")
10075 (license (list license:gpl2+ license:fdl1.2+))))
10077 (define-public kolf
10080 (version "20.12.0")
10084 (uri (string-append "mirror://kde/stable/release-service/" version
10085 "/src/kolf-" version ".tar.xz"))
10087 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10088 (build-system qt-build-system)
10090 `(("extra-cmake-modules" ,extra-cmake-modules)
10091 ("kdoctools" ,kdoctools)))
10093 `(("kcompletion" ,kcompletion)
10094 ("kconfigwidgets" ,kconfigwidgets)
10095 ("kcoreaddons" ,kcoreaddons)
10097 ("kdbusaddons" ,kdbusaddons)
10100 ("kwidgetsaddons" ,kwidgetsaddons)
10101 ("kxmlgui" ,kxmlgui)
10102 ("ktextwidgets" ,ktextwidgets)
10103 ("libkdegames" ,libkdegames)
10105 ("qtdeclarative" ,qtdeclarative)))
10106 (home-page "https://games.kde.org/")
10107 (synopsis "Miniature golf game")
10108 (description "Kolf is a miniature golf game for one to ten players. The
10109 game is played from an overhead view, with a short bar representing the golf
10110 club. Kolf features many different types of objects, such as water hazards,
10111 slopes, sand traps, and black holes (warps), among others.
10115 @item Single and Multi-player (up to ten players) modes
10116 @item High scores table
10117 @item Dynamic courses
10118 @item Third-party courses
10119 @item Course editor
10122 This package is part of the KDE games module.")
10123 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10125 (define-public libkmahjongg
10127 (name "libkmahjongg")
10128 (version "20.12.0")
10132 (uri (string-append "mirror://kde/stable/release-service/"
10133 version "/src/libkmahjongg-" version ".tar.xz"))
10135 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10136 (build-system qt-build-system)
10138 `(("extra-cmake-modules" ,extra-cmake-modules)))
10141 ("kcompletion" ,kcompletion)
10142 ;("kconfig" ,kconfig)
10143 ("kcodecs" ,kcodecs)
10144 ("kconfigwidgets" ,kconfigwidgets)
10145 ("kcoreaddons" ,kcoreaddons)
10147 ("kwidgetsaddons" ,kwidgetsaddons)
10150 (home-page "https://games.kde.org/")
10151 (synopsis "Shared library for kmahjongg and kshisen")
10152 (description "Shared library and common files for kmahjongg, kshisen and
10153 other Mah Jongg like games.")
10154 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10156 (define-public kmahjongg
10159 (version "20.12.0")
10163 (uri (string-append "mirror://kde/stable/release-service/"
10164 version "/src/kmahjongg-" version ".tar.xz"))
10166 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10167 (build-system qt-build-system)
10169 `(("extra-cmake-modules" ,extra-cmake-modules)
10170 ("kdoctools" ,kdoctools)))
10172 `(("kcompletion" ,kcompletion)
10174 ("kdbusaddons" ,kdbusaddons)
10175 ("kdeclarative" ,kdeclarative)
10177 ("knewstuff" ,knewstuff)
10178 ("kxmlgui" ,kxmlgui)
10179 ("libkdegames" ,libkdegames)
10180 ("libkmahjongg" ,libkmahjongg)
10182 ("qtdeclarative" ,qtdeclarative)
10184 (home-page "https://games.kde.org/")
10185 (synopsis "Tile laying patience")
10186 (description "In KMahjongg the tiles are scrambled and staked on top of
10187 each other to resemble a certain shape. The player is then expected to remove
10188 all the tiles off the game board by locating each tile's matching pair.
10190 A variety of tile layouts are included, as well as an editor to create new
10193 This package is part of the KDE games module.")
10194 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10196 (define-public kshisen
10199 (version "20.12.0")
10203 (uri (string-append "mirror://kde/stable/release-service/"
10204 version "/src/kshisen-" version ".tar.xz"))
10206 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10207 (build-system qt-build-system)
10209 `(("extra-cmake-modules" ,extra-cmake-modules)
10211 ;("pkg-config" ,pkg-config)
10212 ("kdoctools" ,kdoctools)))
10215 ("kcompletion" ,kcompletion)
10216 ("kconfigwidgets" ,kconfigwidgets)
10217 ("kcoreaddons" ,kcoreaddons)
10219 ("kdbusaddons" ,kdbusaddons)
10221 ("kxmlgui" ,kxmlgui)
10222 ("libkdegames" ,libkdegames)
10223 ("libkmahjongg" ,libkmahjongg)
10225 ("qtdeclarative" ,qtdeclarative)))
10226 (home-page "https://games.kde.org/")
10227 (synopsis "Shisen-Sho solitaire game")
10228 (description "KShisen is a solitaire-like game played using the standard
10229 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10232 This package is part of the KDE games module.")
10233 (license license:gpl2+)))
10235 (define-public kajongg
10238 (version "20.12.0")
10242 (uri (string-append "mirror://kde/stable/release-service/"
10243 version "/src/kajongg-" version ".tar.xz"))
10245 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10246 (build-system qt-build-system)
10249 (modify-phases %standard-phases
10250 (add-after 'install 'wrap
10251 (lambda* (#:key outputs #:allow-other-keys)
10252 (let ((out (assoc-ref outputs "out")))
10253 (wrap-program (string-append out "/bin/kajongg")
10254 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10257 `(("extra-cmake-modules" ,extra-cmake-modules)
10259 ("kdoctools" ,kdoctools)))
10261 `(("kconfig" ,kconfig)
10262 ("kconfigwidgets" ,kconfigwidgets)
10263 ("kcoreaddons" ,kcoreaddons)
10265 ("libkmahjongg" ,libkmahjongg)
10267 ("python-twisted" ,python-twisted)
10268 ("python-pyqt" ,python-pyqt)
10271 (home-page "https://games.kde.org/")
10272 (synopsis "Classical Mah Jongg game for 4 players")
10273 (description "Kajongg is the ancient Chinese board game for 4 players.
10275 If you are looking for the Mah Jongg solitaire please use the application
10278 Kajongg can be used in two different ways: Scoring a manual game where you
10279 play as always and use Kajongg for the computation of scores and for
10280 bookkeeping. Or you can use Kajongg to play against any combination of other
10281 human players or computer players.
10283 This package is part of the KDE games module.")
10284 (license (list license:gpl2+ license:fdl1.2+))))
10286 (define-public kbreakout
10289 (version "20.12.0")
10293 (uri (string-append "mirror://kde/stable/release-service/" version
10294 "/src/kbreakout-" version ".tar.xz"))
10296 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10297 (build-system qt-build-system)
10299 `(("extra-cmake-modules" ,extra-cmake-modules)
10300 ("kdoctools" ,kdoctools)))
10302 `(("kcompletion" ,kcompletion)
10303 ("kconfig" ,kconfig)
10304 ("kconfigwidgets" ,kconfigwidgets)
10305 ("kcoreaddons" ,kcoreaddons)
10307 ("kdbusaddons" ,kdbusaddons)
10309 ("kwidgetsaddons" ,kwidgetsaddons)
10310 ("kxmlgui" ,kxmlgui)
10311 ("libkdegames" ,libkdegames)
10313 ("qtdeclarative" ,qtdeclarative)))
10314 (home-page "https://games.kde.org/")
10315 (synopsis "Breakout like game")
10316 (description "KBreakout is similar to the classics breakout and xboing,
10317 featuring a number of added graphical enhancements and effects. You control a
10318 paddle at the bottom of the playing-field, and must destroy bricks at the top
10319 by bouncing balls against them.
10321 This package is part of the KDE games module.")
10322 (license (list license:gpl2+ license:fdl1.2+))))
10324 (define-public kmines
10327 (version "20.12.0")
10331 (uri (string-append "mirror://kde/stable/release-service/" version
10332 "/src/kmines-" version ".tar.xz"))
10334 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10335 (build-system qt-build-system)
10337 `(("extra-cmake-modules" ,extra-cmake-modules)
10338 ("kdoctools" ,kdoctools)))
10340 `(("kcompletion" ,kcompletion)
10341 ("kconfig" ,kconfig)
10342 ("kconfigwidgets" ,kconfigwidgets)
10343 ("kcoreaddons" ,kcoreaddons)
10345 ("kdbusaddons" ,kdbusaddons)
10347 ("ktextwidgets" ,ktextwidgets)
10348 ("kwidgetsaddons" ,kwidgetsaddons)
10349 ("kxmlgui" ,kxmlgui)
10350 ("libkdegames" ,libkdegames)
10352 ("qtdeclarative" ,qtdeclarative)))
10353 (home-page "https://games.kde.org/")
10354 (synopsis "Classical mine sweeper game")
10355 (description "KMines is a classic Minesweeper game. The idea is to
10356 uncover all the squares without blowing up any mines. When a mine is blown
10357 up, the game is over.
10359 This package is part of the KDE games module.")
10360 (license (list license:gpl2+ license:fdl1.2+))))
10362 (define-public konquest
10365 (version "20.12.0")
10369 (uri (string-append "mirror://kde/stable/release-service/"
10370 version "/src/konquest-" version ".tar.xz"))
10372 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10373 (build-system qt-build-system)
10375 `(("extra-cmake-modules" ,extra-cmake-modules)
10376 ("kdoctools" ,kdoctools)))
10378 `(("kcompletion" ,kcompletion)
10379 ("kconfig" ,kconfig)
10380 ("kcoreaddons" ,kcoreaddons)
10382 ("kdbusaddons" ,kdbusaddons)
10383 ("kguiaddons" ,kguiaddons)
10385 ("kwidgetsaddons" ,kwidgetsaddons)
10386 ("kxmlgui" ,kxmlgui)
10387 ("libkdegames" ,libkdegames)
10389 ("qtdeclarative" ,qtdeclarative)
10391 (home-page "https://games.kde.org/")
10392 (synopsis "Simple turn-based strategy game")
10393 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10394 conquer other planets by sending ships to them. The goal is to build an
10395 interstellar empire and ultimately conquer all other player's planets. The
10396 game can be played with up to nine empires, commanded either by the computer
10397 or by puny earthlings.
10399 This package is part of the KDE games module.")
10400 (license (list license:gpl2+ license:fdl1.2+))))
10402 (define-public kbounce
10405 (version "20.12.0")
10409 (uri (string-append "mirror://kde/stable/release-service/"
10410 version "/src/kbounce-" version ".tar.xz"))
10412 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10413 (build-system qt-build-system)
10415 `(("extra-cmake-modules" ,extra-cmake-modules)
10416 ("kdoctools" ,kdoctools)))
10418 `(("kcompletion" ,kcompletion)
10419 ("kconfigwidgets" ,kconfigwidgets)
10420 ("kcoreaddons" ,kcoreaddons)
10422 ("kdbusaddons" ,kdbusaddons)
10425 ("kwidgetsaddons" ,kwidgetsaddons)
10426 ("kxmlgui" ,kxmlgui)
10427 ("libkdegames" ,libkdegames)
10429 ("qtdeclarative" ,qtdeclarative)
10431 (home-page "https://games.kde.org/")
10432 (synopsis "Jezzball arcade game")
10433 (description "KBounce is a single player arcade game with the elements of
10434 puzzle. It is played on a field, surrounded by wall, with two or more balls
10435 bouncing around within the walls. The object of the game is to build new
10436 walls to decrease the size of the active field.
10438 This package is part of the KDE games module.")
10439 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10441 (define-public kblocks
10444 (version "20.12.0")
10448 (uri (string-append "mirror://kde/stable/release-service/"
10449 version "/src/kblocks-" version ".tar.xz"))
10451 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10452 (build-system qt-build-system)
10454 `(("extra-cmake-modules" ,extra-cmake-modules)
10455 ("kdoctools" ,kdoctools)))
10457 `(("kcompletion" ,kcompletion)
10458 ("kconfig" ,kconfig)
10459 ("kconfigwidgets" ,kconfigwidgets)
10460 ("kcoreaddons" ,kcoreaddons)
10462 ("kdbusaddons" ,kdbusaddons)
10464 ("kwidgetsaddons" ,kwidgetsaddons)
10465 ("kxmlgui" ,kxmlgui)
10466 ("libkdegames" ,libkdegames)
10468 ("qtdeclarative" ,qtdeclarative)
10470 (home-page "https://games.kde.org/")
10471 (synopsis "Single player falling blocks puzzle game")
10472 (description "KBlocks is the classic Tetris-like falling blocks game.
10474 The idea is to stack the falling blocks to create horizontal lines without any
10475 gaps. When a line is completed it is removed, and more space is available in
10476 the play area. When there is not enough space for blocks to fall, the game is
10479 This package is part of the KDE games module.")
10480 (license (list license:gpl2+ license:fdl1.2+))))
10482 (define-public ksudoku
10485 (version "20.12.0")
10489 (uri (string-append "mirror://kde/stable/release-service/"
10490 version "/src/ksudoku-" version ".tar.xz"))
10492 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10493 (build-system qt-build-system)
10495 `(("extra-cmake-modules" ,extra-cmake-modules)
10496 ("kdoctools" ,kdoctools)))
10498 `(("karchive" ,karchive)
10499 ("kconfig" ,kconfig)
10500 ("kconfigwidgets" ,kconfigwidgets)
10501 ("kcoreaddons" ,kcoreaddons)
10503 ("kguiaddons" ,kguiaddons)
10505 ("kiconthemes" ,kiconthemes)
10507 ("kwidgetsaddons" ,kwidgetsaddons)
10508 ("kxmlgui" ,kxmlgui)
10509 ("libkdegames" ,libkdegames)
10512 ("qtdeclarative" ,qtdeclarative)
10514 (home-page "https://games.kde.org/")
10515 (synopsis "Sudoku puzzle game and solver")
10516 (description "KSudoku is a Sudoku game and solver, supporting a range of
10517 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10518 puzzle sheets and find the solution to any Sudoku puzzle.
10520 The word Sudoku means \"single number in an allotted place\" in Japanese.
10521 These are the basic rules: Every Sudoku is a square divided into 3x3
10522 subsquares with 3x3 cells each.
10524 Some cells are filled with a number at the beginning. The remaining ones are
10525 to be filled by the player using numbers from 1 to 9, without repeating a
10526 number twice on each column, row or subsquare (each of them must contain only
10527 one 1, one 2, one 3, and so on). The game requires logic and patience.
10528 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10531 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10532 board we use letters): arithmetic relationships between numbers are
10535 This program supports also 16x16 games with numbers from 1 to 16 and 256
10536 cells with 16 cols, rows and subsquares!
10538 More information at http://en.wikipedia.org/wiki/Sudoku
10540 This package is part of the KDE games module.")
10541 (license (list license:gpl2+ license:fdl1.2+))))
10543 (define-public klines
10546 (version "20.12.0")
10550 (uri (string-append "mirror://kde/stable/release-service/" version
10551 "/src/klines-" version ".tar.xz"))
10553 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10554 (build-system qt-build-system)
10556 `(("extra-cmake-modules" ,extra-cmake-modules)
10557 ("kdoctools" ,kdoctools)))
10559 `(("kcompletion" ,kcompletion)
10560 ("kconfigwidgets" ,kconfigwidgets)
10561 ("kcoreaddons" ,kcoreaddons)
10563 ("kdbusaddons" ,kdbusaddons)
10565 ("kwidgetsaddons" ,kwidgetsaddons)
10566 ("kxmlgui" ,kxmlgui)
10567 ("libkdegames" ,libkdegames)
10569 ("qtdeclarative" ,qtdeclarative)))
10570 (home-page "https://games.kde.org/")
10571 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10572 (description "KLines is a simple but highly addictive one player game.
10574 The player has to move the colored balls around the game board, gathering them
10575 into the lines of the same color by five. Once the line is complete it is
10576 removed from the board, therefore freeing precious space. In the same time
10577 the new balls keep arriving by three after each move, filling up the game
10580 KLines is a single-player game where the player removes colored balls from the
10581 board by arranging them into lines of five or more. However, every time the
10582 player moves a ball, three more balls are added to the board.
10584 This package is part of the KDE games module.")
10585 (license (list license:gpl2+ license:fdl1.2+))))
10587 (define-public kgoldrunner
10589 (name "kgoldrunner")
10590 (version "20.12.0")
10594 (uri (string-append "mirror://kde/stable/release-service/" version
10595 "/src/kgoldrunner-" version ".tar.xz"))
10597 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10598 (build-system qt-build-system)
10600 `(("extra-cmake-modules" ,extra-cmake-modules)
10601 ("kdoctools" ,kdoctools)))
10603 `(("kcompletion" ,kcompletion)
10604 ("kcoreaddons" ,kcoreaddons)
10606 ("kdbusaddons" ,kdbusaddons)
10609 ("kwidgetsaddons" ,kwidgetsaddons)
10610 ("kxmlgui" ,kxmlgui)
10611 ("libkdegames" ,libkdegames)
10613 ("qtdeclarative" ,qtdeclarative)))
10614 (home-page "https://games.kde.org/")
10615 (synopsis "Action and puzzle solving game")
10616 (description "KGoldrunner is an action game where the hero runs through a
10617 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10618 gold nuggets and escape to the next level. Your enemies are also after the
10619 gold. Worse still, they are after you!.
10621 KGoldrunner is a fast-paced platform game where the player must navigate a
10622 maze while collecting gold nuggets and avoiding enemies. A variety of level
10623 packs are included, as well as an editor to create new levels.
10625 This package is part of the KDE games module.")
10626 (license (list license:gpl2+ license:fdl1.2+))))
10628 (define-public kdiamond
10631 (version "20.12.0")
10635 (uri (string-append "mirror://kde/stable/release-service/" version
10636 "/src/kdiamond-" version ".tar.xz"))
10638 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
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 ("knotifications" ,knotifications)
10652 ("knotifyconfig" ,knotifyconfig)
10653 ("kwidgetsaddons" ,kwidgetsaddons)
10654 ("kxmlgui" ,kxmlgui)
10655 ("libkdegames" ,libkdegames)
10657 ("qtdeclarative" ,qtdeclarative)))
10658 (home-page "https://games.kde.org/")
10659 (synopsis "Three-in-a-row game")
10660 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10661 features unlimited fun with randomly generated games and five difficulty
10662 levels with varying number of diamond colors and board sizes.
10664 This package is part of the KDE games module.")
10665 (license (list license:gpl2+ license:fdl1.2+))))
10667 (define-public kfourinline
10669 (name "kfourinline")
10670 (version "20.12.0")
10674 (uri (string-append "mirror://kde/stable/release-service/" version
10675 "/src/kfourinline-" version ".tar.xz"))
10677 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10678 (build-system qt-build-system)
10680 `(("extra-cmake-modules" ,extra-cmake-modules)
10681 ("kdoctools" ,kdoctools)))
10683 `(("kcompletion" ,kcompletion)
10684 ("kconfig" ,kconfig)
10685 ("kconfigwidgets" ,kconfigwidgets)
10686 ("kcoreaddons" ,kcoreaddons)
10690 ("kxmlgui" ,kxmlgui)
10691 ("libkdegames" ,libkdegames)
10693 ("qtdeclarative" ,qtdeclarative)
10695 (home-page "https://games.kde.org/")
10696 (synopsis "Place 4 pieces in a row")
10697 (description "KFourInLine is a board game for two players based on the
10700 KFourInLine is a game where two players take turns dropping pieces into a
10701 grid, the winner being the first to place four pieces in a line.
10703 This package is part of the KDE games module.")
10704 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10706 (define-public kblackbox
10709 (version "20.12.0")
10713 (uri (string-append "mirror://kde/stable/release-service/" version
10714 "/src/kblackbox-" version ".tar.xz"))
10716 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10717 (build-system qt-build-system)
10719 `(("extra-cmake-modules" ,extra-cmake-modules)
10720 ("kdoctools" ,kdoctools)))
10722 `(("karchive" ,karchive)
10723 ("kcompletion" ,kcompletion)
10724 ("kconfig" ,kconfig)
10725 ("kcoreaddons" ,kcoreaddons)
10727 ("kdbusaddons" ,kdbusaddons)
10729 ("ktextwidgets" ,ktextwidgets)
10730 ("kxmlgui" ,kxmlgui)
10731 ("libkdegames" ,libkdegames)
10733 ("qtdeclarative" ,qtdeclarative)
10735 (home-page "https://games.kde.org/")
10736 (synopsis "Find atoms in a grid by shooting electrons")
10737 (description "KBlackbox is a game of hide and seek played on a grid of
10738 boxes where the computer has hidden several balls. The position of the hidden
10739 balls can be deduced by shooting beams into the box
10741 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10742 player shoots rays into the grid to deduce the positions of hidden objects.
10744 This package is part of the KDE games module.")
10745 (license (list license:gpl2+ license:fdl1.2+))))
10747 (define-public knetwalk
10750 (version "20.12.0")
10754 (uri (string-append "mirror://kde/stable/release-service/" version
10755 "/src/knetwalk-" version ".tar.xz"))
10757 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10758 (build-system qt-build-system)
10760 `(("extra-cmake-modules" ,extra-cmake-modules)
10761 ("kdoctools" ,kdoctools)))
10763 `(("kcompletion" ,kcompletion)
10764 ("kconfig" ,kconfig)
10765 ("kconfigwidgets" ,kconfigwidgets)
10766 ("kcoreaddons" ,kcoreaddons)
10768 ("kdbusaddons" ,kdbusaddons)
10770 ("ktextwidgets" ,ktextwidgets)
10771 ("kwidgetsaddons" ,kwidgetsaddons)
10772 ("kxmlgui" ,kxmlgui)
10773 ("libkdegames" ,libkdegames)
10775 ("qtdeclarative" ,qtdeclarative)))
10776 (home-page "https://games.kde.org/")
10777 (synopsis "Turn the board pieces to get all computers connected")
10778 (description "KNetWalk is a small game where you have to build up a
10779 computer network by rotating the wires to connect the terminals to the server.
10780 When the network is build, a highscore-list comes up where competitions can be
10783 KNetwalk is a puzzle game where the player arranges sections of wire to
10784 connect all the computers on the board.
10786 This package is part of the KDE games module.")
10787 (license (list license:gpl2+ license:fdl1.2+))))
10789 (define-public bomber
10792 (version "20.12.0")
10796 (uri (string-append "mirror://kde/stable/release-service/" version
10797 "/src/bomber-" version ".tar.xz"))
10799 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10800 (build-system qt-build-system)
10802 `(("extra-cmake-modules" ,extra-cmake-modules)
10803 ("kdoctools" ,kdoctools)))
10805 `(("kcompletiom" ,kcompletion)
10806 ("kconfig" ,kconfig)
10807 ("kcoreaddons" ,kcoreaddons)
10809 ("kdbusaddons" ,kdbusaddons)
10811 ("kxmlgui" ,kxmlgui)
10812 ("libkdegames" ,libkdegames)
10814 ("qtdeclarative" ,qtdeclarative)))
10815 (home-page "https://games.kde.org/")
10816 (synopsis "Arcade bombing game")
10817 (description "Bomber is a single player arcade game.
10819 The player is invading various cities in a plane that is decreasing in height.
10820 The goal of the game is to destroy all the buildings and advance to the next
10821 level. Each level gets a bit harder by increasing the speed of the plane and
10822 the height of the buildings.
10824 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10825 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10826 not destroyed a building in your path, you will crash into it.
10828 This package is part of the KDE games module.")
10829 (license (list license:gpl2+ license:fdl1.2+))))
10831 (define-public granatier
10834 (version "20.12.0")
10838 (uri (string-append "mirror://kde/stable/release-service/" version
10839 "/src/granatier-" version ".tar.xz"))
10841 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10842 (build-system qt-build-system)
10844 `(("extra-cmake-modules" ,extra-cmake-modules)
10845 ("kdoctools" ,kdoctools)))
10847 `(("kcompletion" ,kcompletion)
10848 ("kconfig" ,kconfig)
10849 ("kconfigwidgets" ,kconfigwidgets)
10850 ("kcoreaddons" ,kcoreaddons)
10852 ("kdbusaddons" ,kdbusaddons)
10854 ("knewstuff" ,knewstuff)
10855 ("kwidgetsaddons" ,kwidgetsaddons)
10856 ("kxmlgui" ,kxmlgui)
10857 ("libkdegames" ,libkdegames)
10859 ("qtdeclarative" ,qtdeclarative)
10861 (home-page "https://games.kde.org/")
10862 (synopsis "Bomberman clone")
10863 (description "Granatier is a clone of the classic Bomberman game,
10864 inspired by the work of the Clanbomber clone.
10866 This package is part of the KDE games module.")
10867 (license (list license:gpl2+ license:fdl1.2+))))
10869 (define-public ksirk
10872 (version "20.12.0")
10876 (uri (string-append "mirror://kde/stable/release-service/" version
10877 "/src/ksirk-" version ".tar.xz"))
10879 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
10880 (build-system qt-build-system)
10882 `(("extra-cmake-modules" ,extra-cmake-modules)
10883 ("kdoctools" ,kdoctools)))
10885 `(("kcrash" ,kcrash)
10887 ("kiconthemes" ,kiconthemes)
10889 ("knewstuff" ,knewstuff)
10890 ("kwallet" ,kwallet)
10891 ("kxmlgui" ,kxmlgui)
10892 ("libkdegames" ,libkdegames)
10896 ("qtdeclarative" ,qtdeclarative)
10899 (home-page "https://games.kde.org/")
10900 (synopsis "Computerized version of the well known strategy board game
10902 (description "KsirK is a multi-player network-enabled game. The goal of
10903 the game is simply to conquer the world by attacking your neighbors with your
10906 At the beginning of the game, countries are distributed to all the players.
10907 Each country contains one army represented by an infantryman. Each player has
10908 some armies to distribute to his countries. On each turn, each player can
10909 attack his neighbours, eventually conquering one or more countries. At the
10910 end of each turn, some bonus armies are distributed to the players in function
10911 of the number of countries they own. The winner is the player that conquered
10916 @item Support for 1-6 human or computer players
10917 @item Multi-player gaming over a network
10918 @item You can easily create new skins with SVG graphics and the skin editor
10919 @item Hot New Stuff support. You can easily download and install new skins
10922 This package is part of the KDE games module.")
10923 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10925 (define-public palapeli
10928 (version "20.12.0")
10932 (uri (string-append "mirror://kde/stable/release-service/" version
10933 "/src/palapeli-" version ".tar.xz"))
10935 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
10936 (build-system qt-build-system)
10938 `(("extra-cmake-modules" ,extra-cmake-modules)
10939 ("kdoctools" ,kdoctools)))
10941 `(("karchive" ,karchive)
10942 ("kcompletion" ,kcompletion)
10943 ("kconfig" ,kconfig)
10944 ("kconfigwidgets" ,kconfigwidgets)
10945 ("kcoreaddons" ,kcoreaddons)
10951 ("kitemviews" ,kitemviews)
10952 ("knotifications" ,knotifications)
10953 ("kservice" ,kservice)
10954 ("kwidgetsaddons" ,kwidgetsaddons)
10955 ("kxmlgui" ,kxmlgui)
10956 ("libkdegames" ,libkdegames)
10958 ("qtdeclarative" ,qtdeclarative)
10960 ("shared-mime-info" ,shared-mime-info)))
10961 (home-page "https://games.kde.org/")
10962 (synopsis "Jigsaw puzzle game")
10963 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10964 that genre, you are not limited to aligning pieces on imaginary grids. The
10965 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10966 everything you do is saved on your disk immediately.
10968 Palapeli is the Finnish word for jigsaw puzzle.
10970 This package is part of the KDE games module.")
10971 (license license:gpl2+)))
10973 (define-public kiriki
10976 (version "20.12.0")
10980 (uri (string-append "mirror://kde/stable/release-service/" version
10981 "/src/kiriki-" version ".tar.xz"))
10983 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
10984 (build-system qt-build-system)
10986 `(("extra-cmake-modules" ,extra-cmake-modules)
10987 ("kdoctools" ,kdoctools)))
10989 `(("kcompletion" ,kcompletion)
10990 ("kconfig" ,kconfig)
10991 ("kconfigwidgets" ,kconfigwidgets)
10992 ("kcoreaddons" ,kcoreaddons)
10994 ("kdbusaddons" ,kdbusaddons)
10996 ("kiconthemes" ,kiconthemes)
10997 ("kxmlgui" ,kxmlgui)
10998 ("libkdegames" ,libkdegames)
11000 ("qtdeclarative" ,qtdeclarative)))
11001 (home-page "https://games.kde.org/")
11002 (synopsis "Yahtzee dice game")
11003 (description "Kiriki is an addictive and fun dice game, designed to be
11004 played by as many as six players.
11006 Participants have to collect points by rolling five dice for up to three times
11007 per single turn to make combinations with the highest score.
11009 This package is part of the KDE games module.")
11010 (license (list license:gpl2+ license:fdl1.2+))))
11012 (define-public kigo
11015 (version "20.12.0")
11019 (uri (string-append "mirror://kde/stable/release-service/" version
11020 "/src/kigo-" version ".tar.xz"))
11022 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11023 (build-system qt-build-system)
11025 `(("extra-cmake-modules" ,extra-cmake-modules)
11026 ("kdoctools" ,kdoctools)))
11028 `(("kconfig" ,kconfig)
11029 ("kconfigwidgets" ,kconfigwidgets)
11030 ("kcoreaddons" ,kcoreaddons)
11032 ("kdbusaddons" ,kdbusaddons)
11035 ("knewstuff" ,knewstuff)
11036 ("ktextwidgets" ,ktextwidgets)
11037 ("kxmlgui" ,kxmlgui)
11038 ("libkdegames" ,libkdegames)
11040 ("qtdeclarative" ,qtdeclarative)
11042 (home-page "https://games.kde.org/")
11043 (synopsis "Go board game")
11044 (description "Kigo is an open-source implementation of the popular Go
11047 Go is a strategic board game for two players. It is also known as
11048 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11049 for being rich in strategic complexity despite its simple rules. The game is
11050 played by two players who alternately place black and white stones (playing
11051 pieces, now usually made of glass or plastic) on the vacant intersections of a
11052 grid of 19x19 lines (9x9 or 13x13 for easier games).
11054 You also need to install a go engine, e.g. @code{gnugo}.
11056 This package is part of the KDE games module.")
11057 (license license:gpl3+)))
11059 (define-public kubrick
11062 (version "20.12.0")
11066 (uri (string-append "mirror://kde/stable/release-service/" version
11067 "/src/kubrick-" version ".tar.xz"))
11069 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11070 (build-system qt-build-system)
11072 `(("extra-cmake-modules" ,extra-cmake-modules)
11073 ("kdoctools" ,kdoctools)))
11076 ("kconfig" ,kconfig)
11077 ("kconfigwidgets" ,kconfigwidgets)
11078 ("kcoreaddons" ,kcoreaddons)
11082 ("kwidgetsaddons" ,kwidgetsaddons)
11083 ("kxmlgui" ,kxmlgui)
11084 ("libkdegames" ,libkdegames)
11086 ("qtdeclarative" ,qtdeclarative)
11088 (home-page "https://games.kde.org/")
11089 (synopsis "Game based on Rubik's Cube")
11090 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11092 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11093 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11094 selection of puzzles at several levels of difficulty, as well as demos of
11095 pretty patterns and solution moves, or you can make up your own puzzles. The
11096 game has unlimited undo, redo, save and reload capabilities.
11098 This package is part of the KDE games module.")
11099 (license (list license:gpl2+ license:fdl1.2+))))
11101 (define-public lskat
11104 (version "20.12.0")
11108 (uri (string-append "mirror://kde/stable/release-service/" version
11109 "/src/lskat-" version ".tar.xz"))
11111 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11112 (build-system qt-build-system)
11114 `(("extra-cmake-modules" ,extra-cmake-modules)
11115 ("kdoctools" ,kdoctools)))
11117 `(("kcompletion" ,kcompletion)
11118 ("kconfig" ,kconfig)
11119 ("kcoreaddons" ,kcoreaddons)
11121 ("kguiaddons" ,kguiaddons)
11123 ("kwidgetsaddons" ,kwidgetsaddons)
11124 ("kxmlgui" ,kxmlgui)
11125 ("libkdegames" ,libkdegames)
11127 ("qtdeclarative" ,qtdeclarative)
11129 (home-page "https://games.kde.org/")
11130 (synopsis "Lieutnant Skat card game")
11131 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11132 engaging card game for two players, where the second player is either live
11133 opponent, or a built in artificial intelligence.
11135 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11137 This package is part of the KDE games module.")
11138 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11140 (define-public kapman
11143 (version "20.12.0")
11147 (uri (string-append "mirror://kde/stable/release-service/" version
11148 "/src/kapman-" version ".tar.xz"))
11150 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11151 (build-system qt-build-system)
11153 `(("extra-cmake-modules" ,extra-cmake-modules)
11154 ("kdoctools" ,kdoctools)))
11156 `(("kcompletion" ,kcompletion)
11157 ("kconfig" ,kconfig)
11158 ("kconfigwidgets" ,kconfigwidgets)
11159 ("kcoreaddons" ,kcoreaddons)
11161 ("kdbusaddons" ,kdbusaddons)
11163 ("kxmlgui" ,kxmlgui)
11164 ("libkdegames" ,libkdegames)
11166 ("qtdeclarative" ,qtdeclarative)
11168 (home-page "https://games.kde.org/")
11169 (synopsis "Pac-Man clone")
11170 (description "Kapman is a clone of the well known game Pac-Man.
11172 You must run through the maze to eat all pills without being captured by a
11173 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11174 few seconds. When a stage is cleared of pills and energizer the player is
11175 taken to the next stage with slightly increased game speed
11177 This package is part of the KDE games module.")
11178 (license (list license:gpl2+ license:fdl1.2+))))
11180 (define-public kspaceduel
11182 (name "kspaceduel")
11183 (version "20.12.0")
11187 (uri (string-append "mirror://kde/stable/release-service/" version
11188 "/src/kspaceduel-" version ".tar.xz"))
11190 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11191 (build-system qt-build-system)
11193 `(("extra-cmake-modules" ,extra-cmake-modules)
11194 ("kdoctools" ,kdoctools)))
11196 `(("kcompletion" ,kcompletion)
11197 ("kconfig" ,kconfig)
11198 ("kconfigwidgets" ,kconfigwidgets)
11199 ("kcoreaddons" ,kcoreaddons)
11201 ("kdbusaddons" ,kdbusaddons)
11203 ("kxmlgui" ,kxmlgui)
11204 ("libkdegames" ,libkdegames)
11206 ("qtdeclarative" ,qtdeclarative)
11208 (home-page "https://games.kde.org/")
11209 (synopsis "Two player game with shooting spaceships flying around a sun")
11210 (description "KSpaceduel is a space battle game for one or two players,
11211 where two ships fly around a star in a struggle to be the only survivor.
11213 This package is part of the KDE games module.")
11214 (license (list license:gpl2+ license:fdl1.2+))))
11216 (define-public bovo
11219 (version "20.12.0")
11223 (uri (string-append "mirror://kde/stable/release-service/" version
11224 "/src/bovo-" version ".tar.xz"))
11226 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11227 (build-system qt-build-system)
11229 `(("extra-cmake-modules" ,extra-cmake-modules)
11230 ("kdoctools" ,kdoctools)))
11232 `(("kcompletion" ,kcompletion)
11233 ("kcoreaddons" ,kcoreaddons)
11235 ("kdbusaddons" ,kdbusaddons)
11237 ("kxmlgui" ,kxmlgui)
11238 ("libkdegames" ,libkdegames)
11240 ("qtdeclarative" ,qtdeclarative)
11242 (home-page "https://games.kde.org/")
11243 (synopsis "Classic pen and paper game: five in a line")
11244 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11245 points\") like game for two players, where the opponents alternate in placing
11246 their respective pictogram on the game board. The winner is the first to
11247 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11248 X and O, Naughts and Crosses)
11250 This package is part of the KDE games module.")
11251 (license (list license:gpl2+ license:fdl1.2+))))
11253 (define-public killbots
11256 (version "20.12.0")
11260 (uri (string-append "mirror://kde/stable/release-service/" version
11261 "/src/killbots-" version ".tar.xz"))
11263 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11264 (build-system qt-build-system)
11266 `(("extra-cmake-modules" ,extra-cmake-modules)
11267 ("kdoctools" ,kdoctools)))
11269 `(("kcompletion" ,kcompletion)
11270 ("kconfig" ,kconfig)
11271 ("kconfigwidgets" ,kconfigwidgets)
11272 ("kcoreaddons" ,kcoreaddons)
11274 ("kdbusaddons" ,kdbusaddons)
11276 ("kwidgetsaddons" ,kwidgetsaddons)
11277 ("kxmlgui" ,kxmlgui)
11278 ("libkdegames" ,libkdegames)
11280 ("qtdeclarative" ,qtdeclarative)))
11281 (home-page "https://games.kde.org/")
11282 (synopsis "Port of the classic BSD console game robots")
11283 (description "Killbots is a simple game of evading killer robots.
11285 Who created the robots and why they have been programmed to destroy, no one
11286 knows. All that is known is that the robots are numerous and their sole
11287 objective is to destroy you. Fortunately for you, their creator has focused
11288 on quantity rather than quality and as a result the robots are severely
11289 lacking in intelligence. Your superior wit and a fancy teleportation device
11290 are your only weapons against the never-ending stream of mindless automatons.
11292 This package is part of the KDE games module.")
11293 (license (list license:gpl2+ license:fdl1.2+))))
11295 (define-public ksnakeduel
11297 (name "ksnakeduel")
11298 (version "20.12.0")
11302 (uri (string-append "mirror://kde/stable/release-service/" version
11303 "/src/ksnakeduel-" version ".tar.xz"))
11305 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11306 (build-system qt-build-system)
11308 `(("extra-cmake-modules" ,extra-cmake-modules)
11309 ("kdoctools" ,kdoctools)))
11311 `(("kcompletion" ,kcompletion)
11312 ("kconfig" ,kconfig)
11313 ("kconfigwidgets" ,kconfigwidgets)
11314 ("kcoreaddons" ,kcoreaddons)
11316 ("kdbusaddons" ,kdbusaddons)
11317 ("kguiaddons" ,kguiaddons)
11319 ("kxmlgui" ,kxmlgui)
11320 ("libkdegames" ,libkdegames)
11322 ("qtdeclarative" ,qtdeclarative)
11324 (home-page "https://games.kde.org/")
11325 (synopsis "Snake race played against the computer")
11326 (description "KSnakeDuel is a fast action game where you steer a snake
11327 which has to eat food. While eating the snake grows. But once a player
11328 collides with the other snake or the wall the game is lost. This becomes of
11329 course more and more difficult the longer the snakes grow.
11331 This package is part of the KDE games module.")
11332 (license (list license:gpl2+ license:fdl1.2+))))
11334 (define-public kollision
11337 (version "20.12.0")
11341 (uri (string-append "mirror://kde/stable/release-service/" version
11342 "/src/kollision-" version ".tar.xz"))
11344 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11345 (build-system qt-build-system)
11347 `(("extra-cmake-modules" ,extra-cmake-modules)
11348 ("kdoctools" ,kdoctools)))
11350 `(("kcompletion" ,kcompletion)
11351 ("kconfig" ,kconfig)
11352 ("kcoreaddons" ,kcoreaddons)
11354 ("kdbusaddons" ,kdbusaddons)
11356 ("kwidgetsaddons" ,kwidgetsaddons)
11357 ("kxmlgui" ,kxmlgui)
11358 ("libkdegames" ,libkdegames)
11360 ("qtdeclarative" ,qtdeclarative)))
11361 (home-page "https://games.kde.org/")
11362 (synopsis "Simple ball dodging game")
11363 (description "In Kollision you use mouse to control a small blue ball in a
11364 closed space environment filled with small red balls, which move about
11365 chaotically. Your goal is to avoid touching any of those red balls with your
11366 blue one, because the moment you do the game will be over. The longer you can
11367 stay in game the higher will your score be.
11369 This package is part of the KDE games module.")
11370 (license (list license:gpl2+ license:fdl1.2+))))
11372 (define-public knavalbattle
11374 (name "knavalbattle")
11375 (version "20.12.0")
11379 (uri (string-append "mirror://kde/stable/release-service/" version
11380 "/src/knavalbattle-" version ".tar.xz"))
11382 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11383 (build-system qt-build-system)
11385 `(("extra-cmake-modules" ,extra-cmake-modules)
11386 ("kdoctools" ,kdoctools)))
11389 ("kcompletion" ,kcompletion)
11390 ("kconfig" ,kconfig)
11391 ("kconfigwidgets" ,kconfigwidgets)
11392 ("kcoreaddons" ,kcoreaddons)
11394 ("kdbusaddons" ,kdbusaddons)
11397 ("ktextwidgets" ,ktextwidgets)
11398 ("kxmlgui" ,kxmlgui)
11399 ("libkdegames" ,libkdegames)
11401 ("qtdeclarative" ,qtdeclarative)))
11402 (home-page "https://games.kde.org/")
11403 (synopsis "Battleship board game with built-in game server")
11404 (description "KBattleship is a Battle Ship game for KDE.
11406 Ships are placed on a board which represents the sea. Players try to hit each
11407 others ships in turns without knowing where they are placed. The first player
11408 to destroy all ships wins the game.
11410 This package is part of the KDE games module.")
11411 (license (list license:gpl2+ license:fdl1.2+))))
11413 (define-public kreversi
11416 (version "20.08.3")
11420 (uri (string-append "mirror://kde/stable/release-service/" version
11421 "/src/kreversi-" version ".tar.xz"))
11423 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11424 (build-system qt-build-system)
11426 `(("extra-cmake-modules" ,extra-cmake-modules)
11427 ("kdoctools" ,kdoctools)))
11429 `(("kconfig" ,kconfig)
11430 ("kconfigwidgets" ,kconfigwidgets)
11431 ("kcoreaddons" ,kcoreaddons)
11433 ("kdbusaddons" ,kdbusaddons)
11434 ("kdeclarative" ,kdeclarative)
11436 ("kiconthemes" ,kiconthemes)
11438 ("kxmlgui" ,kxmlgui)
11439 ("libkdegames" ,libkdegames)
11441 ("qtdeclarative" ,qtdeclarative)
11443 (home-page "https://games.kde.org/")
11444 (synopsis "Old reversi board game, also known as othello")
11445 (description "KReversi is a simple one player strategy game played
11446 against the computer.
11448 If a player's piece is captured by an opposing player, that piece is turned
11449 over to reveal the color of that player. A winner is declared when one player
11450 has more pieces of his own color on the board and there are no more possible
11453 This package is part of the KDE games module.")
11454 (license (list license:gpl2+ license:fdl1.2+))))
11456 (define-public ksquares
11459 (version "20.12.0")
11463 (uri (string-append "mirror://kde/stable/release-service/" version
11464 "/src/ksquares-" version ".tar.xz"))
11466 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11467 (build-system qt-build-system)
11469 `(("extra-cmake-modules" ,extra-cmake-modules)
11470 ("kdoctools" ,kdoctools)))
11472 `(("kcompletion" ,kcompletion)
11473 ("kconfig" ,kconfig)
11474 ("kconfigwidgets" ,kconfigwidgets)
11475 ("kcoreaddons" ,kcoreaddons)
11477 ("kdbusaddons" ,kdbusaddons)
11479 ("kwidgetsaddons" ,kwidgetsaddons)
11480 ("kxmlgui" ,kxmlgui)
11481 ("libkdegames" ,libkdegames)
11483 ("qtdeclarative" ,qtdeclarative)))
11484 (home-page "https://games.kde.org/")
11485 (synopsis "Dots and Boxes game")
11486 (description "KSquares is an implementation of the popular paper based
11487 game Squares. Two players take turns connecting dots on a grid to complete
11488 squares, the player with the most squares wins.
11490 This package is part of the KDE games module.")
11491 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11493 (define-public kjumpingcube
11495 (name "kjumpingcube")
11496 (version "20.12.0")
11500 (uri (string-append "mirror://kde/stable/release-service/" version
11501 "/src/kjumpingcube-" version ".tar.xz"))
11503 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11504 (build-system qt-build-system)
11506 `(("extra-cmake-modules" ,extra-cmake-modules)
11507 ("kdoctools" ,kdoctools)))
11509 `(("kconfig" ,kconfig)
11510 ("kconfigwidgets" ,kconfigwidgets)
11511 ("kcoreaddons" ,kcoreaddons)
11513 ("kdbusaddons" ,kdbusaddons)
11516 ("kwidgetsaddons" ,kwidgetsaddons)
11517 ("kxmlgui" ,kxmlgui)
11518 ("libkdegames" ,libkdegames)
11520 ("qtdeclarative" ,qtdeclarative)
11522 (home-page "https://games.kde.org/")
11523 (synopsis "Simple tactical game for number-crunchers")
11524 (description "KJumpingcube is a simple tactical game for one or two
11525 players, played on a grid of numbered squares. Each turn, players compete for
11526 control of the board by capturing or adding to one square.
11528 This package is part of the KDE games module.")
11529 (license (list license:gpl2+ license:fdl1.2+))))
11531 (define-public xmoto
11538 (uri (git-reference
11539 (url "https://github.com/xmoto/xmoto")
11541 (file-name (git-file-name name version))
11543 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11544 (modules '((guix build utils)
11547 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11548 ;; it appears to be incompatible with the (older) one bundled.
11551 (let ((keep '("chipmunk" "glad" "md5sum")))
11552 (with-directory-excursion "vendor"
11553 (for-each delete-file-recursively
11554 (lset-difference string=?
11556 (cons* "." ".." keep))))
11557 (substitute* "src/CMakeLists.txt"
11558 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11559 (if (member library keep) line ""))))
11561 (build-system cmake-build-system)
11563 `(#:tests? #f ;no test
11565 (modify-phases %standard-phases
11566 (add-after 'unpack 'fix-hard-coded-directory
11567 (lambda* (#:key outputs #:allow-other-keys)
11568 (substitute* "src/common/VFileIO.cpp"
11570 (string-append (assoc-ref outputs "out") "/share")))
11572 (add-before 'build 'set-SDL
11573 ;; Set correct environment for SDL.
11574 (lambda* (#:key inputs #:allow-other-keys)
11577 (assoc-ref inputs "sdl") "/include/SDL:"
11578 (or (getenv "CPATH") "")))
11580 (add-after 'install 'unbundle-fonts
11581 ;; Unbundle DejaVuSans TTF files.
11582 (lambda* (#:key outputs inputs #:allow-other-keys)
11583 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11584 "/share/fonts/truetype/"))
11585 (target-dir (string-append (assoc-ref outputs "out")
11586 "/share/xmoto/Textures/Fonts/")))
11587 (for-each (lambda (f)
11588 (let ((font (string-append font-dir f))
11589 (target (string-append target-dir f)))
11590 (delete-file target)
11591 (symlink font target)))
11592 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11595 `(("gettext" ,gettext-minimal)
11596 ("pkg-config" ,pkg-config)))
11600 ("font-dejavu" ,font-dejavu)
11602 ("libjpeg" ,libjpeg-turbo)
11604 ("libxdg-basedir" ,libxdg-basedir)
11605 ("libxml2" ,libxml2)
11608 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11611 (home-page "https://xmoto.tuxfamily.org/")
11612 (synopsis "2D motocross platform game")
11614 "X-Moto is a challenging 2D motocross platform game, where
11615 physics play an all important role in the gameplay. You need to
11616 control your bike to its limit, if you want to have a chance finishing
11617 the more difficult challenges.")
11618 (license (list license:gpl2+ ;whole project
11619 license:bsd-3 ;vendor/md5sum
11623 (define-public eboard
11630 (uri (git-reference
11631 (url "https://github.com/fbergo/eboard")
11632 (commit (string-append "v" version))))
11633 (file-name (git-file-name name version))
11635 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11636 (build-system gnu-build-system)
11639 ("pkg-config" ,pkg-config)))
11643 ("gstreamer" ,gstreamer)))
11647 (modify-phases %standard-phases
11648 (replace 'configure
11649 (lambda* (#:key outputs #:allow-other-keys)
11650 (make-file-writable "eboard-config")
11651 (setenv "CC" "gcc")
11652 (invoke "./configure"
11653 (string-append "--prefix=" (assoc-ref outputs "out")))
11655 (add-before 'install 'make-required-directories
11656 (lambda* (#:key outputs #:allow-other-keys)
11657 (mkdir-p (string-append (assoc-ref outputs "out")
11660 (synopsis "Graphical user interface to play chess")
11662 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11663 and chess engines.")
11664 (home-page "https://www.bergo.eng.br/eboard/")
11665 (license license:gpl2+)))
11667 (define-public chessx
11674 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11675 version "/chessx-" version ".tgz"))
11677 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11678 (build-system qt-build-system)
11680 `(("qttools" ,qttools)))
11682 `(("qtbase" ,qtbase)
11683 ("qtmultimedia" ,qtmultimedia)
11684 ("qtspeech" ,qtspeech)
11690 (modify-phases %standard-phases
11691 (add-after 'unpack 'fix-paths
11692 (lambda* (#:key inputs #:allow-other-keys)
11693 (substitute* "chessx.pro"
11694 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11695 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11696 ;; Fix missing translations.
11697 (("TRANSLATIONS = i18n/chessx_de.ts")
11698 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11699 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11700 i18n/chessx_es.ts"))
11702 (add-after 'fix-paths 'make-qt-deterministic
11704 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11706 (replace 'configure
11711 (lambda* (#:key outputs #:allow-other-keys)
11712 (let ((out (assoc-ref outputs "out")))
11713 (install-file "release/chessx" (string-append out "/bin"))
11714 (install-file "unix/chessx.desktop"
11715 (string-append out "/share/applications")))
11717 (synopsis "Chess game database")
11719 "ChessX is a chess database. With ChessX you can operate on your
11720 collection of chess games in many ways: browse, edit, add, organize, analyze,
11721 etc. You can also play games on FICS or against an engine.")
11722 (home-page "http://chessx.sourceforge.net/")
11723 (license license:gpl2+)))
11725 (define-public stockfish
11732 (uri (git-reference
11733 (url "https://github.com/official-stockfish/Stockfish")
11734 (commit (string-append "sf_" version))))
11735 (file-name (git-file-name name version))
11737 (base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32"))))
11738 (build-system gnu-build-system)
11740 `(("neural-network"
11743 (uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.nnue")
11745 (base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"))))))
11748 #:make-flags (list "-C" "src"
11750 (string-append "PREFIX="
11751 (assoc-ref %outputs "out"))
11752 (string-append "ARCH="
11753 ,(match (%current-system)
11754 ("x86_64-linux" "x86-64")
11755 ("i686-linux" "x86-32")
11756 ("aarch64-linux" "general-64")
11757 ("armhf-linux" "armv7")
11758 ("mips64el-linux" "general-64")
11759 (_ "general-32"))))
11760 #:phases (modify-phases %standard-phases
11761 (delete 'configure)
11762 ;; The official neural network file is needed for building
11763 ;; and is embedded in the resulting binary.
11764 (add-after 'unpack 'copy-net
11765 (lambda* (#:key inputs #:allow-other-keys)
11766 (copy-file (assoc-ref inputs "neural-network")
11767 "src/nn-82215d0fd0df.nnue")
11769 (synopsis "Strong chess engine")
11771 "Stockfish is a very strong chess engine. It is much stronger than the
11772 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11774 (home-page "https://stockfishchess.org/")
11775 (license license:gpl3+)))
11777 (define-public barrage
11784 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11785 "barrage-" version ".tar.gz"))
11787 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11788 (build-system gnu-build-system)
11790 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11792 ("sdl-mixer" ,sdl-mixer)))
11794 `(#:configure-flags
11796 (string-append "CFLAGS="
11797 "-I" (assoc-ref %build-inputs "sdl-mixer")
11799 (home-page "http://lgames.sourceforge.net/Barrage/")
11800 (synopsis "Violent point-and-click shooting game with nice effects")
11802 "Barrage is a rather destructive action game that puts you on a shooting
11803 range with the objective to hit as many dummy targets as possible within
11804 3 minutes. You control a gun that may either fire small or large grenades at
11805 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11807 (license license:gpl2+)))
11809 (define-public burgerspace
11811 (name "burgerspace")
11816 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11817 "burgerspace-" version ".tar.gz"))
11819 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11820 (build-system gnu-build-system)
11822 `(("pkg-config" ,pkg-config)))
11824 `(("flatzebra" ,flatzebra)))
11825 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11826 (synopsis "Avoid evil foodstuffs and make burgers")
11828 "This is a clone of the classic game BurgerTime. In it, you play
11829 the part of a chef who must create burgers by stepping repeatedly on
11830 the ingredients until they fall into place. And to make things more
11831 complicated, you also must avoid evil animate food items while
11832 performing this task, with nothing but your trusty pepper shaker to
11834 (license license:gpl2+)))
11836 (define-public 7kaa
11839 (version "2.15.4p1")
11843 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11844 "releases/download/v" version "/"
11845 "7kaa-" version ".tar.xz"))
11847 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11848 (build-system gnu-build-system)
11850 `(("gettext" ,gettext-minimal)
11851 ("pkg-config" ,pkg-config)))
11857 (home-page "https://7kfans.com/")
11858 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11860 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11861 Strategy with the addition of trade, diplomacy, and espionage. The game
11862 enables players to compete against up to six other kingdoms allowing players
11863 to conquer opponents by defeating them in war (with troops or machines),
11864 capturing their buildings with spies, or offering opponents money for their
11866 (license license:gpl2+)))
11868 (define-public neverball
11869 ;; Git version is 6-years younger than latest release.
11870 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11874 (version (git-version "1.6.0" revision commit))
11878 (uri (git-reference
11879 (url "https://github.com/Neverball/neverball")
11883 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11884 (file-name (git-file-name name version))
11885 (modules '((guix build utils)))
11888 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11889 (delete-file-recursively "data/ball/octocat")
11891 (build-system copy-build-system)
11894 '(("neverball" "bin/")
11895 ("neverputt" "bin/")
11897 ("data" "share/games/neverball/")
11898 ("locale" "share/")
11899 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11902 ("dist/" "share/applications" #:include ("neverball.desktop"
11903 "neverputt.desktop"))
11904 ("dist/neverball_16.png"
11905 "/share/icons/hicolor/16x16/apps/neverball.png")
11906 ("dist/neverball_24.png"
11907 "/share/icons/hicolor/24x24/apps/neverball.png")
11908 ("dist/neverball_32.png"
11909 "/share/icons/hicolor/32x32/apps/neverball.png")
11910 ("dist/neverball_48.png"
11911 "/share/icons/hicolor/48x48/apps/neverball.png")
11912 ("dist/neverball_64.png"
11913 "/share/icons/hicolor/64x64/apps/neverball.png")
11914 ("dist/neverball_128.png"
11915 "/share/icons/hicolor/128x128/apps/neverball.png")
11916 ("dist/neverball_256.png"
11917 "/share/icons/hicolor/256x256/apps/neverball.png")
11918 ("dist/neverball_512.png"
11919 "/share/icons/hicolor/512x512/apps/neverball.png")
11920 ("dist/neverputt_16.png"
11921 "/share/icons/hicolor/16x16/apps/neverputt.png")
11922 ("dist/neverputt_24.png"
11923 "/share/icons/hicolor/24x24/apps/neverputt.png")
11924 ("dist/neverputt_32.png"
11925 "/share/icons/hicolor/32x32/apps/neverputt.png")
11926 ("dist/neverputt_48.png"
11927 "/share/icons/hicolor/48x48/apps/neverputt.png")
11928 ("dist/neverputt_64.png"
11929 "/share/icons/hicolor/64x64/apps/neverputt.png")
11930 ("dist/neverputt_128.png"
11931 "/share/icons/hicolor/128x128/apps/neverputt.png")
11932 ("dist/neverputt_256.png"
11933 "/share/icons/hicolor/256x256/apps/neverputt.png")
11934 ("dist/neverputt_512.png"
11935 "/share/icons/hicolor/512x512/apps/neverputt.png")
11936 ("dist/" "share/man/man1" #:include ("mapc.1"))
11937 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11938 ("doc/" "share/doc/neverball")
11939 ("README.md" "share/doc/neverball/"))
11941 (modify-phases %standard-phases
11942 (add-before 'install 'build
11943 (lambda* (#:key inputs outputs #:allow-other-keys)
11944 (let* ((out (assoc-ref outputs "out"))
11945 (sdl (assoc-ref inputs "sdl")))
11946 (invoke "make" "-j" (number->string (parallel-job-count))
11947 "--environment-overrides"
11948 "CC=gcc" "BUILD=release"
11949 (string-append "DATADIR="
11951 "/share/games/neverball/data")
11952 (string-append "LOCALEDIR=" out "/share/locale")
11953 (string-append "SDL_CPPFLAGS=-I"
11955 "/include/SDL2/")))
11957 (add-after 'install 'fix-some-broken-fonts
11958 (lambda* (#:key outputs #:allow-other-keys)
11959 (let* ((out (assoc-ref outputs "out")))
11960 (wrap-program (string-append out "/bin/neverball")
11961 `("LANG" = ("en_US.utf8")))
11962 (wrap-program (string-append out "/bin/neverputt")
11963 `("LANG" = ("en_US.utf8"))))
11966 `(("gettext" ,gettext-minimal))) ;for msgfmt
11968 `(("libjpeg" ,libjpeg-turbo)
11970 ("libvorbis" ,libvorbis)
11972 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11973 (home-page "https://neverball.org/")
11974 (synopsis "3D floor-tilting game")
11976 "In the grand tradition of Marble Madness and Super Monkey Ball,
11977 Neverball has you guide a rolling ball through dangerous territory. Balance
11978 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11979 and shovers to get to the goal. Race against the clock to collect coins to
11980 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11981 game.") ;thanks to Debian for description
11982 (license license:gpl2+))))
11984 (define-public pokerth
11991 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11992 version "/pokerth-" version ".tar.gz"))
11994 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11995 (modules '((guix build utils)))
11998 ;; Remove bundled websocketpp.
11999 (delete-file-recursively "src/third_party/websocketpp")
12000 (substitute* "pokerth_lib.pro"
12001 (("src/third_party/websocketpp")
12004 (build-system qt-build-system)
12009 ("libgcrypt" ,libgcrypt)
12010 ("libircclient" ,libircclient)
12011 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12013 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12015 ("tinyxml" ,tinyxml)
12016 ("websocketpp" ,websocketpp)
12019 `(#:tests? #f ; No test suite
12021 (modify-phases %standard-phases
12022 (add-after 'unpack 'fix-paths
12023 (lambda* (#:key inputs #:allow-other-keys)
12024 (substitute* (find-files "." "\\.pro$")
12026 (assoc-ref inputs "gsasl"))
12027 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12028 (string-append (assoc-ref inputs "libircclient")
12029 "/include/libircclient"))
12031 (string-append "LIB_DIRS = "
12032 (assoc-ref inputs "boost") "/lib")))
12034 (add-after 'unpack 'fix-build
12036 ;; Fixes for Boost versions >= 1.66.
12037 (substitute* '("src/net/common/clientthread.cpp"
12038 "src/net/serveraccepthelper.h")
12039 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12041 (("newSock->io_control\\(command\\);")
12042 "newSock->non_blocking(true);")
12043 (("acceptedSocket->io_control\\(command\\);")
12044 "acceptedSocket->non_blocking(true);"))
12046 (replace 'configure
12047 (lambda* (#:key outputs #:allow-other-keys)
12048 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12049 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12050 (home-page "https://www.pokerth.net")
12051 (synopsis "Texas holdem poker game")
12053 "With PokerTH you can play the Texas holdem poker game, either against
12054 computer opponents or against real players online.")
12055 (license license:agpl3+)))
12057 (define-public azimuth
12060 ;; Not marked as latest release, but it fixes a compiling issue
12061 ;; and adds the install target.
12066 (uri (git-reference
12067 (url "https://github.com/mdsteele/azimuth")
12068 (commit (string-append "v" version))))
12069 (file-name (git-file-name name version))
12072 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12073 (build-system gnu-build-system)
12075 `(#:test-target "test"
12077 (modify-phases %standard-phases
12078 (delete 'configure) ; no configure script
12079 ;; Build release version instead of debug version.
12080 (add-after 'unpack 'set-release
12082 (setenv "BUILDTYPE" "release") #t))
12083 (add-after 'unpack 'fix-install ; set install directory
12084 (lambda* (#:key outputs #:allow-other-keys)
12085 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12086 (inputs `(("sdl" ,sdl)))
12087 (home-page "https://mdsteele.games/azimuth/")
12088 (synopsis "Metroidvania game with vector graphics")
12090 "Pilot your ship inside a planet to find and rescue the colonists trapped
12091 inside the Zenith Colony.")
12092 (license license:gpl3+)))
12094 (define-public cgoban
12101 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12102 version "/cgoban-" version ".tar.gz"))
12104 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12105 (build-system gnu-build-system)
12107 `(("libx11" ,libx11)
12109 ("xorgproto" ,xorgproto)))
12110 (home-page "http://cgoban1.sourceforge.net/")
12111 (synopsis "Go client for X11")
12112 (description "Provides a large set of Go-related services for X11:
12114 @item Local games with precise implementation of the Chinese and Japanese rulesets
12115 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12116 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12119 (license license:gpl2+)))
12121 (define-public paperview
12122 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12126 (version (git-version "0.0.1" revision commit)) ;no upstream release
12129 (uri (git-reference
12130 (url "https://github.com/glouw/paperview")
12132 (file-name (git-file-name name version))
12135 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12136 (build-system gnu-build-system)
12140 '(#:tests? #f ;no tests
12142 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12144 (modify-phases %standard-phases
12145 (delete 'configure))))
12146 (home-page "https://github.com/glouw/paperview/")
12147 (synopsis "High performance X11 animated wallpaper setter")
12148 (description "High performance animated desktop background setter for
12149 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12151 (license license:unlicense))))
12153 (define-public curseofwar
12155 (name "curseofwar")
12160 (uri (git-reference
12161 (url "https://github.com/a-nikolaev/curseofwar")
12162 (commit (string-append "v" version))))
12163 (file-name (git-file-name name version))
12165 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12166 (build-system gnu-build-system)
12168 `(#:tests? #f ; no tests
12170 (list (string-append "CC=" ,(cc-for-target))
12171 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12173 (modify-phases %standard-phases
12174 (delete 'configure))))
12175 (inputs `(("ncurses" ,ncurses)))
12176 (home-page "https://a-nikolaev.github.io/curseofwar/")
12177 (synopsis "Fast-paced action strategy game")
12178 (description "Curse of War is a fast-paced action strategy game originally
12179 implemented using ncurses user interface. An SDL graphical version is also
12181 (license license:gpl3+)))