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, 2015 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, 2021 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, 2021 Chris Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2021 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 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, 2021 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 © 2019 Pkill -9 <pkill9@runbox.com>
49 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
50 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
51 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
52 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
53 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
54 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
55 ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
56 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
57 ;;; Copyright © 2020, 2021 Liliana Marie Prikler <liliana.prikler@gmail.com>
58 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
59 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
60 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
61 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
62 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
63 ;;; Copyright © 2021 David Pflug <david@pflug.io>
64 ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
65 ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
66 ;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
67 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
69 ;;; This file is part of GNU Guix.
71 ;;; GNU Guix is free software; you can redistribute it and/or modify it
72 ;;; under the terms of the GNU General Public License as published by
73 ;;; the Free Software Foundation; either version 3 of the License, or (at
74 ;;; your option) any later version.
76 ;;; GNU Guix is distributed in the hope that it will be useful, but
77 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
78 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
79 ;;; GNU General Public License for more details.
81 ;;; You should have received a copy of the GNU General Public License
82 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
84 (define-module (gnu packages games)
85 #:use-module (ice-9 match)
86 #:use-module ((guix licenses) #:prefix license:)
87 #:use-module (guix utils)
88 #:use-module (guix packages)
89 #:use-module (guix download)
90 #:use-module (guix git-download)
91 #:use-module (guix svn-download)
92 #:use-module (guix gexp)
93 #:use-module (gnu packages)
94 #:use-module (gnu packages adns)
95 #:use-module (gnu packages algebra)
96 #:use-module (gnu packages autotools)
97 #:use-module (gnu packages backup)
98 #:use-module (gnu packages base)
99 #:use-module (gnu packages build-tools)
100 #:use-module (gnu packages admin)
101 #:use-module (gnu packages audio)
102 #:use-module (gnu packages avahi)
103 #:use-module (gnu packages assembly)
104 #:use-module (gnu packages bash)
105 #:use-module (gnu packages bison)
106 #:use-module (gnu packages boost)
107 #:use-module (gnu packages check)
108 #:use-module (gnu packages cmake)
109 #:use-module (gnu packages compression)
110 #:use-module (gnu packages code)
111 #:use-module (gnu packages cpp)
112 #:use-module (gnu packages curl)
113 #:use-module (gnu packages crypto)
114 #:use-module (gnu packages cyrus-sasl)
115 #:use-module (gnu packages documentation)
116 #:use-module (gnu packages docbook)
117 #:use-module (gnu packages emulators)
118 #:use-module (gnu packages flex)
119 #:use-module (gnu packages fltk)
120 #:use-module (gnu packages fonts)
121 #:use-module (gnu packages fontutils)
122 #:use-module (gnu packages freedesktop)
123 #:use-module (gnu packages fribidi)
124 #:use-module (gnu packages game-development)
125 #:use-module (gnu packages gcc)
126 #:use-module (gnu packages gettext)
127 #:use-module (gnu packages ghostscript)
128 #:use-module (gnu packages gimp)
129 #:use-module (gnu packages gl)
130 #:use-module (gnu packages glib)
131 #:use-module (gnu packages gnome)
132 #:use-module (gnu packages gnu-doc)
133 #:use-module (gnu packages gnupg)
134 #:use-module (gnu packages gnuzilla)
135 #:use-module (gnu packages golang)
136 #:use-module (gnu packages gperf)
137 #:use-module (gnu packages graphics)
138 #:use-module (gnu packages gsasl)
139 #:use-module (gnu packages gstreamer)
140 #:use-module (gnu packages gtk)
141 #:use-module (gnu packages guile)
142 #:use-module (gnu packages haskell)
143 #:use-module (gnu packages haskell-crypto)
144 #:use-module (gnu packages haskell-xyz)
145 #:use-module (gnu packages icu4c)
146 #:use-module (gnu packages image)
147 #:use-module (gnu packages imagemagick)
148 #:use-module (gnu packages javascript)
149 #:use-module (gnu packages kde)
150 #:use-module (gnu packages kde-frameworks)
151 #:use-module (gnu packages less)
152 #:use-module (gnu packages libcanberra)
153 #:use-module (gnu packages libedit)
154 #:use-module (gnu packages libunwind)
155 #:use-module (gnu packages linux)
156 #:use-module (gnu packages llvm)
157 #:use-module (gnu packages lua)
158 #:use-module (gnu packages man)
159 #:use-module (gnu packages maths)
160 #:use-module (gnu packages messaging)
161 #:use-module (gnu packages mp3)
162 #:use-module (gnu packages music)
163 #:use-module (gnu packages multiprecision)
164 #:use-module (gnu packages ncurses)
165 #:use-module (gnu packages netpbm)
166 #:use-module (gnu packages networking)
167 #:use-module (gnu packages ocaml)
168 #:use-module (gnu packages opencl)
169 #:use-module (gnu packages pcre)
170 #:use-module (gnu packages perl)
171 #:use-module (gnu packages perl-check)
172 #:use-module (gnu packages perl-compression)
173 #:use-module (gnu packages pkg-config)
174 #:use-module (gnu packages protobuf)
175 #:use-module (gnu packages pulseaudio)
176 #:use-module (gnu packages python)
177 #:use-module (gnu packages python-web)
178 #:use-module (gnu packages python-xyz)
179 #:use-module (gnu packages qt)
180 #:use-module (gnu packages readline)
181 #:use-module (gnu packages ruby)
182 #:use-module (gnu packages shells)
183 #:use-module (gnu packages sdl)
184 #:use-module (gnu packages serialization)
185 #:use-module (gnu packages sqlite)
186 #:use-module (gnu packages squirrel)
187 #:use-module (gnu packages swig)
188 #:use-module (gnu packages tcl)
189 #:use-module (gnu packages terminals)
190 #:use-module (gnu packages texinfo)
191 #:use-module (gnu packages textutils)
192 #:use-module (gnu packages tls)
193 #:use-module (gnu packages upnp)
194 #:use-module (gnu packages video)
195 #:use-module (gnu packages vulkan)
196 #:use-module (gnu packages web)
197 #:use-module (gnu packages wget)
198 #:use-module (gnu packages wxwidgets)
199 #:use-module (gnu packages xdisorg)
200 #:use-module (gnu packages xorg)
201 #:use-module (gnu packages xiph)
202 #:use-module (gnu packages xml)
203 #:use-module (guix build-system copy)
204 #:use-module (guix build-system cmake)
205 #:use-module (guix build-system glib-or-gtk)
206 #:use-module (guix build-system gnu)
207 #:use-module (guix build-system go)
208 #:use-module (guix build-system meson)
209 #:use-module (guix build-system perl)
210 #:use-module (guix build-system python)
211 #:use-module (guix build-system qt)
212 #:use-module (guix build-system scons)
213 #:use-module (guix build-system trivial)
214 #:use-module ((srfi srfi-1) #:hide (zip))
215 #:use-module (srfi srfi-26))
224 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
225 "/abe-" version ".tar.gz"))
227 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
228 (build-system gnu-build-system)
231 (list (string-append "--with-data-dir="
232 (assoc-ref %outputs "out")
235 (modify-phases %standard-phases
237 (lambda _ (invoke "sh" "autogen.sh")))
238 (add-before 'build 'set-SDL
239 ;; Set correct environment for SDL.
240 (lambda* (#:key inputs #:allow-other-keys)
243 (assoc-ref inputs "sdl") "/include/SDL:"
244 (or (getenv "CPATH") "")))
246 (add-after 'install 'finalize-install
247 (lambda* (#:key outputs #:allow-other-keys)
248 (let ((share (string-append (assoc-ref outputs "out") "/share")))
249 ;; Installation script does not copy game data files.
250 (let ((data (string-append share "/abe")))
251 (for-each (lambda (dir)
252 (let ((target (string-append data "/" dir)))
254 (copy-recursively dir target)))
255 '("images" "maps" "sounds")))
256 ;; Create desktop file.
257 (let ((apps (string-append share "/applications")))
259 (make-desktop-entry-file
260 (string-append apps "/abe.desktop")
261 #:name "Abe's Amazing Adventure"
263 #:categories '("AdventureGame" "Game")
265 '("side-scrolling" "adventure" "pyramid" "singleplayer")
267 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
268 (#f "Side-scrolling game")))))
271 `(("autoconf" ,autoconf)
272 ("automake" ,automake)))
277 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
278 (home-page "http://abe.sourceforge.net")
279 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
281 "Abe's Amazing Adventure is a scrolling,
282 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
283 the style of similar games for the Commodore+4.")
284 (license license:gpl2+)))
286 ;; Data package for adanaxisgpl.
287 (define adanaxis-mush
288 (let ((version "1.1.0"))
291 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
294 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
296 (define-public adanaxisgpl
303 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
306 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
307 (modules '((guix build utils)))
310 ;; Necessary for building with gcc >=4.7.
311 (substitute* "src/Mushcore/MushcoreSingleton.h"
312 (("SingletonPtrSet\\(new SingletonType\\);")
313 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
314 ;; Avoid an "invalid conversion from const char* to char*" error.
315 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
316 (("char \\*end, \\*result;")
317 (string-append "const char *end;"
321 (build-system gnu-build-system)
323 `(#:tests? #f ; no check target
325 (modify-phases %standard-phases
326 (add-after 'install 'install-data
327 (lambda* (#:key inputs outputs #:allow-other-keys)
328 (let ((data (assoc-ref inputs "adanaxis-mush"))
329 (share (string-append (assoc-ref outputs "out")
330 "/share/" ,name "-" ,version)))
332 (invoke "tar" "xvf" data "-C" share)))))))
334 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
337 ("freeglut" ,freeglut)
339 ("libjpeg" ,libjpeg-turbo)
342 ("libvorbis" ,libvorbis)
347 ("sdl-mixer" ,sdl-mixer)))
348 (home-page "https://www.mushware.com")
349 (synopsis "Action game in four spatial dimensions")
351 "Adanaxis is a fast-moving first person shooter set in deep space, where
352 the fundamentals of space itself are changed. By adding another dimension to
353 space this game provides an environment with movement in four directions and
354 six planes of rotation. Initially the game explains the 4D control system via
355 a graphical sequence, before moving on to 30 levels of gameplay with numerous
356 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
357 mouse and joystick control, and original music.")
358 (license license:gpl2)))
368 (url "https://github.com/carstene1ns/alex4")
370 (file-name (git-file-name name version))
372 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
373 (build-system gnu-build-system)
375 `(#:tests? #f ; no check target
378 "CFLAGS=-D_FILE_OFFSET_BITS=64"
379 (string-append "PREFIX=" (assoc-ref %outputs "out")))
381 (modify-phases %standard-phases
382 (delete 'configure) ; no configure script
383 (add-after 'install 'install-data
384 (lambda* (#:key outputs #:allow-other-keys)
385 (let ((share (string-append (assoc-ref outputs "out")
387 (install-file "alex4.ini" share)
390 `(("allegro" ,allegro-4)
391 ("dumb" ,dumb-allegro4)))
392 (home-page "http://allegator.sourceforge.net/")
393 (synopsis "Retro platform game")
395 "Guide Alex the Allegator through the jungle in order to save his
396 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
397 Plenty of classic platforming in four nice colors guaranteed!
399 The game includes a built-in editor so you can design and share your own maps.")
400 (license license:gpl2+)))
402 (define-public armagetronad
404 (name "armagetronad")
405 (version "0.2.9.1.0")
408 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
409 version "/armagetronad-" version ".tbz"))
412 "18gn4sg4j5sw38ngb90sl50raliplrsgjcvy8fjwry733k0cgdjr"))))
413 (build-system gnu-build-system)
415 `(("pkg-config" ,pkg-config)))
417 `(("libxml2" ,libxml2)
419 ("sdl-image" ,sdl-image)
420 ("freeglut" ,freeglut)
422 ("libjpeg-turbo" ,libjpeg-turbo)))
423 (home-page "http://www.armagetronad.org")
424 (synopsis "Tron clone in 3D")
425 (description "Armagetron Advanced is a multiplayer game in 3d that
426 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
427 It's an old school arcade game slung into the 21st century. Highlights
428 include a customizable playing arena, HUD, unique graphics, and AI bots. For
429 the more advanced player there are new game modes and a wide variety of
430 physics settings to tweak as well.")
431 (license license:gpl2+)))
433 (define-public astromenace
441 (url "https://github.com/viewizard/astromenace")
442 (commit (string-append "v" version))))
443 (file-name (git-file-name name version))
445 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
446 (build-system cmake-build-system)
448 `(#:tests? #f ;no test
449 #:configure-flags (list (string-append "-DDATADIR="
450 (assoc-ref %outputs "out")
451 "/share/astromenace"))
453 (modify-phases %standard-phases
455 ;; Upstream provides no install phase.
456 (lambda* (#:key inputs outputs #:allow-other-keys)
457 (let* ((out (assoc-ref outputs "out"))
458 (bin (string-append out "/bin"))
459 (share (string-append out "/share"))
460 (apps (string-append share "/applications"))
461 (data (string-append share "/astromenace"))
462 (icons (string-append share "/icons/hicolor/64x64/apps")))
463 (install-file "astromenace" bin)
464 (install-file "gamedata.vfs" data)
465 (let ((source (assoc-ref inputs "source")))
466 (with-directory-excursion (string-append source "/share")
467 (install-file "astromenace.desktop" apps)
469 (copy-file "astromenace_64.png"
470 (string-append icons "/astromenace.png")))))
473 `(("freealut" ,freealut)
474 ("freetype" ,freetype)
477 ("libvorbis" ,libvorbis)
480 (home-page "https://www.viewizard.com/")
481 (synopsis "3D space shooter with spaceship upgrade possibilities")
483 "Space is a vast area, an unbounded territory where it seems there is
484 a room for everybody, but reversal of fortune put things differently. The
485 hordes of hostile creatures crawled out from the dark corners of the universe,
486 craving to conquer your homeland. Their force is compelling, their legions
487 are interminable. However, humans didn't give up without a final showdown and
488 put their best pilot to fight back. These malicious invaders chose the wrong
489 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
490 regret their insolence.")
491 ;; Game is released under GPL3+ terms. Artwork is subject to CC
492 ;; BY-SA 4.0, and fonts to OFL1.1.
493 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
495 (define-public bastet
503 (url "https://github.com/fph/bastet")
505 (file-name (git-file-name name version))
507 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
509 (search-patches "bastet-change-source-of-unordered_set.patch"))))
510 (build-system gnu-build-system)
513 (list (string-append "CXXFLAGS=-I"
514 (assoc-ref %build-inputs "boost") "/include"))
516 (modify-phases %standard-phases
517 (delete 'configure) ; no configure script
519 ;; The 'Test' target builds the tests, but doesn't actually run them.
520 (lambda* (#:key make-flags #:allow-other-keys)
521 (apply invoke "make" "Test" make-flags)
525 (lambda* (#:key outputs #:allow-other-keys)
526 (let* ((out (assoc-ref outputs "out"))
527 (share (string-append out "/share"))
528 (hicolor (string-append share "/icons/hicolor")))
529 (install-file "bastet"
530 (string-append out "/bin"))
532 (install-file "bastet.desktop"
533 (string-append share "/applications"))
534 (install-file "bastet.svg"
535 (string-append hicolor "/scalable/apps"))
537 (install-file "bastet.appdata.xml"
538 (string-append share "/appdata"))
540 (install-file "bastet.6"
541 (string-append out "/share/man/man6"))
544 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
547 ("ncurses" ,ncurses)))
548 (home-page "https://fph.altervista.org/prog/bastet.html")
549 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
551 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
552 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
553 Instead, it uses a special algorithm to choose the worst brick possible.
555 Playing bastet can be a painful experience, especially if you usually make
556 canyons and wait for the long I-shaped block to clear four rows at a time.")
557 (license license:gpl3+)))
559 (define-public tetrinet
567 "http://tetrinet.or.cz/download/tetrinet-" version
571 "0b4pddqz6is1771qmvcj8qqlr4in2djdbkk13agvp9yhfah2v8x7"))))
572 (build-system gnu-build-system)
574 `(("ncurses" ,ncurses)))
576 `(#:tests? #f ;no tests
577 #:make-flags '("CC=gcc")
579 (modify-phases %standard-phases
580 (delete 'configure) ;no configure script
581 (add-after 'unpack 'fix-install-dir
582 (lambda* (#:key outputs #:allow-other-keys)
583 (let ((out (assoc-ref outputs "out")))
584 (mkdir-p (string-append out "/bin"))
585 (substitute* "Makefile"
586 (("/usr/games") (string-append out "/bin"))))))
587 (add-after 'install 'install-documentation
588 (lambda* (#:key outputs #:allow-other-keys)
589 (let* ((out (assoc-ref outputs "out"))
590 (doc (string-append out "/share/doc/" ,name "-" ,version)))
591 (for-each (lambda (file)
592 (install-file file doc))
593 (list "README" "tetrinet.txt"))))))))
594 (home-page "http://tetrinet.or.cz")
595 (synopsis "Terminal-based multiplayer Tetris clone")
596 (description "Tetrinet is a multiplayer Tetris-like game with powerups and
597 attacks you can use on opponents.")
598 (license license:public-domain)))
600 (define-public vitetris
608 (url "https://github.com/vicgeralds/vitetris")
609 (commit (string-append "v" version))))
611 (base32 "1ah1c5g7abksif0n8v5rb7r4pn2az20c3mkp4ak13vgs23ddmds5"))
612 (file-name (git-file-name name version))))
613 (build-system gnu-build-system)
615 `(#:tests? #f ;no test
617 (list ,(string-append "CC=" (cc-for-target))
618 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
620 (modify-phases %standard-phases
623 ;; the non standard configure script does not accept
624 ;; standard parameters -> invoke configure by hand
625 (invoke "./configure" "prefix=")
626 ;; src/src-conf.mk must be writable for the build step
627 (make-file-writable "src/src-conf.mk"))))))
628 (home-page "http://victornils.net/tetris/")
629 (synopsis "Terminal-based Tetris clone")
630 (description "Vitetris is a classic multiplayer Tetris clone for the
632 (license license:bsd-2)))
634 (define-public blobwars
641 (uri (string-append "mirror://sourceforge/blobwars/"
642 "blobwars-" version ".tar.gz"))
644 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
645 (build-system gnu-build-system)
647 `(#:tests? #f ;no test
649 (let ((out (assoc-ref %outputs "out")))
650 (list (string-append "PREFIX=" out)
651 (string-append "BINDIR=" out "/bin/")
655 (modify-phases %standard-phases
656 (add-after 'unpack 'werror-begone
658 (substitute* "Makefile" (("-Werror") ""))
660 (delete 'configure)))) ;no configure script
662 `(("gettext" ,gettext-minimal)
663 ("pkg-config" ,pkg-config)))
665 `(("hicolor-icon-theme" ,hicolor-icon-theme)
666 ("sdl" ,(sdl-union (list sdl2
671 (home-page "https://sourceforge.net/projects/blobwars/")
672 (synopsis "Platform action game featuring a blob with a lot of weapons")
673 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
674 in the Blobwars series. You take on the role of a fearless Blob agent. Your
675 mission is to infiltrate various enemy bases and rescue as many MIAs as
676 possible, while battling many vicious aliens.")
677 (license (list license:gpl2 ; For code and graphics
678 license:cc0 ; Music and sounds have specific licenses
679 license:cc-by3.0 ; see /doc/readme
684 (define-public bsd-games
691 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
693 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
696 ;; thanks Arch, and Debian
697 "bsd-games-2.17-64bit.patch"
698 "bsd-games-bad-ntohl-cast.patch"
699 "bsd-games-gamescreen.h.patch"
700 "bsd-games-getline.patch"
701 "bsd-games-null-check.patch"
702 "bsd-games-number.c-and-test.patch"
703 "bsd-games-stdio.h.patch"
704 "bsd-games-prevent-name-collisions.patch"
705 ;; Guix customizations
706 "bsd-games-add-configure-config.patch"
707 "bsd-games-dont-install-empty-files.patch"
708 "bsd-games-add-wrapper.patch"))))
709 (build-system gnu-build-system)
714 `(("curses" ,ncurses)
716 ("miscfiles" ,miscfiles)
717 ("openssl" ,openssl))) ;used only by 'factor'
720 (modify-phases %standard-phases
722 (lambda* (#:key outputs inputs #:allow-other-keys)
723 (let* ((out (assoc-ref outputs "out"))
724 (bin (string-append out "/bin"))
725 (doc (string-append out "/share/doc/bsd-games-" ,version))
726 (man (string-append out "/share/man"))
727 (word-list (search-input-file inputs "/share/web2"))
728 (static-data (string-append out "/share/games/bsd-games"))
729 ;; Not a "./" because of substitute* in 'patch-install
730 ;; below. The .// allow us not to mess with the games'
731 ;; code any further: we just use a wrapper script that
732 ;; cd's to a BSD_GAMES_DIR. :]
734 (substitute* "configure"
735 (("/usr/share/man") man)
736 (("/usr/share/doc/bsd-games") doc)
737 (("/usr/share/[^\n/]*") static-data)
738 (("/var/games") save-files)
739 (("/usr/bin/less") (which "less"))
740 (("(/usr/bin|/usr/games)") bin))
741 (substitute* "config.params" (("WORD_LIST") word-list))
742 (substitute* "wrapper" (("STATIC_DATA") static-data))
743 (invoke "./configure"))
745 (add-before 'install 'patch-install
746 ;; Some games need a writable directory containing pre-maded files.
747 ;; The files get installed to the Store. Then the wrapper kicks in.
748 (lambda* (#:key outputs #:allow-other-keys)
749 (let* ((out (assoc-ref outputs "out"))
750 (static-data (string-append out "/share/games/bsd-games"))
752 (substitute* "Makeconfig" ((save-files) static-data)))
754 (add-after 'install 'install-documents
755 (lambda* (#:key outputs #:allow-other-keys)
756 (let* ((out (assoc-ref outputs "out"))
757 (doc (string-append out "/share/doc/bsd-games-" ,version)))
758 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
760 (lambda(file) (install-file file doc))
761 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
762 "phantasia-COPYRIGHT")))
764 (home-page "https://github.com/vattam/BSDGames")
765 (synopsis "Collection of the old text-based games and amusements")
767 "These are the BSD games. See the fortune-mod package for fortunes.
769 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
770 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
771 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
772 the $$ from the cave, anger the snake, and get out alive), tetris (game of
773 lining up the falling bricks of different shapes), and worm (eat, grow big,
774 and neither bite your tail, nor ram the wall).
776 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
777 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
778 the input), factor (factorizes a number), number (translates numbers into
779 text), pig (translates from English to Pig Latin), pom (should print the
780 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
781 in terminal), random (prints randomly chosen lines from files, or returns a
782 random exit-code), and wtf (explains what do some acronyms mean).
784 Board: backgammon (lead the men out of board faster than the friend do),
785 boggle (find the words in the square of letters), dab (game of dots and
786 boxes), gomoku (game of five in a row), hangman (guess a word before man is
787 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
788 canfield, cribbage, fish (juniors game), and mille.
790 Quests: adventure (search for treasures with the help of wizard),
791 battlestar (explore the world around, starting from dying spaceship),
792 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
793 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
795 Quizzes: arithmetic and quiz.")
796 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
797 ;; not bearing copyright notices, probably fall under the terms of the UCB
798 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
799 ;; warning in regard to the fortune databases."
801 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
802 ;; lib/strlcpy.c, wargames/wargames.6
804 ;; dab and hunt. Files: adventure/extern.h,
805 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
806 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
807 ;; hack/extern.h, robots/auto.c, sail/display.h,
808 ;; sail/restart.h, wargames/wargames
811 license:public-domain
812 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
813 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
816 (define-public bzflag
823 (uri (string-append "https://download.bzflag.org/bzflag/source/"
824 version "/bzflag-" version ".tar.bz2"))
826 (base32 "0kba0011nswc2csqlzkd7bas307zm5813zlnby5vsmxn08rnar4y"))))
827 (build-system gnu-build-system)
830 (modify-phases %standard-phases
831 (add-after 'install 'install-desktop-file-and-icons
832 (lambda* (#:key outputs #:allow-other-keys)
833 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
834 (data (string-append share "/bzflag"))
835 (hicolor (string-append share "/icons/hicolor"))
836 (applications (string-append share "/applications")))
837 ;; Move desktop file.
838 (install-file (string-append data "/bzflag.desktop")
841 (for-each (lambda (size)
842 (let* ((dim (string-append size "x" size))
843 (dir (string-append hicolor "/" dim "/apps")))
846 (string-append data "/bzflag-" dim ".png")
847 (string-append dir "/bzflag.png"))))
851 `(("pkg-config" ,pkg-config)))
859 (home-page "https://www.bzflag.org/")
860 (synopsis "3D first person tank battle game")
862 "BZFlag is a 3D multi-player multiplatform tank battle game that
863 allows users to play against each other in a network environment.
864 There are five teams: red, green, blue, purple and rogue (rogue tanks
865 are black). Destroying a player on another team scores a win, while
866 being destroyed or destroying a teammate scores a loss. Rogues have
867 no teammates (not even other rogues), so they cannot shoot teammates
868 and they do not have a team score.
870 There are two main styles of play: capture-the-flag and free-for-all.
871 In capture-the-flag, each team (except rogues) has a team base and
872 each team with at least one player has a team flag. The object is to
873 capture an enemy team's flag by bringing it to your team's base. This
874 destroys every player on the captured team, subtracts one from that
875 team's score, and adds one to your team's score. In free-for-all,
876 there are no team flags or team bases. The object is simply to get as
877 high a score as possible.")
878 ;; The game is dual-licensed.
879 (license (list license:lgpl2.1 license:mpl2.0))))
881 (define-public cataclysm-dda
883 (name "cataclysm-dda")
889 (url "https://github.com/CleverRaven/Cataclysm-DDA")
892 (base32 "1wzsri6rh2fm7078hw0y4x7lqjs6ak4a66d05szfiinnxyn4w1ph"))
893 (file-name (git-file-name name version))))
894 (build-system gnu-build-system)
897 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
898 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
899 "LOCALIZE=1" "LANGUAGES=all")
901 (modify-phases %standard-phases
903 ;; Apparently we can't do make on both tiles and a console version at
904 ;; the same time anymore, so we have to either "make clean" between
905 ;; builds or do some other hackery. See:
906 ;; https://github.com/CleverRaven/Cataclysm-DDA/issues/42598#issuecomment-667702746
907 (add-after 'install 'make-clean-pre-tiles
908 (lambda* (#:key make-flags outputs #:allow-other-keys)
909 ;; Change prefix directory and enable tile graphics and sound.
910 (invoke "make" "clean")))
911 (add-after 'make-clean-pre-tiles 'build-tiles
912 (lambda* (#:key make-flags outputs #:allow-other-keys)
913 ;; Change prefix directory and enable tile graphics and sound.
914 (apply invoke "make" "TILES=1" "SOUND=1"
915 (string-append "PREFIX="
916 (assoc-ref outputs "tiles"))
918 (add-after 'build-tiles 'install-tiles
919 (lambda* (#:key make-flags outputs #:allow-other-keys)
920 (apply invoke "make" "install" "TILES=1" "SOUND=1"
921 (string-append "PREFIX="
922 (assoc-ref outputs "tiles"))
924 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
925 ;; input in order to support tests.
928 "tiles")) ;for tile graphics and sound support
930 `(("gettext" ,gettext-minimal)
931 ("pkg-config" ,pkg-config)
934 `(("freetype" ,freetype)
936 ("libvorbis" ,libvorbis)
939 ("sdl2-image" ,sdl2-image)
940 ("sdl2-ttf" ,sdl2-ttf)
941 ("sdl2-mixer" ,sdl2-mixer)))
942 (home-page "https://cataclysmdda.org/")
943 (synopsis "Survival horror roguelike video game")
945 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
946 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
947 procedurally generated world. Scavenge the remnants of a dead civilization
948 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
949 to get you out of Dodge. Fight to defeat or escape from a wide variety of
950 powerful monstrosities, from zombies to giant insects to killer robots and
951 things far stranger and deadlier, and against the others like yourself, that
952 want what you have.")
953 (license license:cc-by-sa3.0)))
955 (define-public cockatrice
956 (let ((release-date "2021-01-26"))
964 (url "https://github.com/Cockatrice/Cockatrice")
965 (commit (string-append release-date "-Release-" version))))
966 (file-name (git-file-name name version))
969 "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
970 (modules '((guix build utils)))
972 ;; Strip image URLs as they point towards non-free web services
973 '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
974 (("downloadURLs.append\\(\".*\"\\);") "")))))
975 (build-system qt-build-system)
977 `(#:configure-flags '("-DWITH_SERVER=1"
982 `(("googletest" ,googletest)
983 ("pkg-config" ,pkg-config)))
985 `(("protobuf" ,protobuf)
987 ("qtmultimedia" ,qtmultimedia)
990 ("qtwebsockets" ,qtwebsockets)
993 (home-page "https://cockatrice.github.io")
994 (synopsis "Tabletop card game simulator")
995 (description "Cockatrice is a program for playing tabletop card games
996 over a network. Its server design prevents users from manipulating the game
997 for unfair advantage. The client also provides a single-player mode, which
998 allows users to brew while offline.")
999 (license license:gpl2))))
1001 (define-public corsix-th
1009 (url "https://github.com/CorsixTH/CorsixTH")
1010 (commit (string-append "v" version))))
1011 (file-name (git-file-name name version))
1013 (base32 "0hw92ln9jm9v55drmbfqjng58yshgwfpv7fqynryrg3gvg8zhbvh"))))
1014 (build-system cmake-build-system)
1017 (modify-phases %standard-phases
1018 (add-after 'install 'wrap-binary
1020 ;; Set Lua module paths and default MIDI soundfont on startup.
1021 (let* ((out (assoc-ref %outputs "out"))
1022 (fluid (assoc-ref %build-inputs "fluid-3"))
1023 (lua-version ,(version-major+minor (package-version lua)))
1027 (assoc-ref %build-inputs (string-append "lua-" lib))
1028 "/lib/lua/" lua-version "/?.so"))
1029 '("filesystem" "lpeg"))))
1030 (wrap-program (string-append out "/bin/corsix-th")
1031 `("LUA_CPATH" ";" = ,lua-cpath)
1032 `("SDL_SOUNDFONTS" ":" suffix
1033 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
1035 #:tests? #f)) ; TODO need busted package to run tests
1036 ;; Omit Lua-Socket dependency to disable automatic updates.
1038 `(("ffmpeg" ,ffmpeg)
1039 ("fluid-3" ,fluid-3)
1040 ("freetype" ,freetype)
1042 ("lua-filesystem" ,lua-filesystem)
1043 ("lua-lpeg" ,lua-lpeg)
1045 ("sdl2-mixer" ,sdl2-mixer)))
1046 (home-page "https://corsixth.com")
1047 (synopsis "Implementation of the @i{Theme Hospital} game engine")
1049 "This package provides a reimplementation of the 1997 Bullfrog business
1050 simulation game @i{Theme Hospital}. As well as faithfully recreating the
1051 original engine, CorsixTH adds support for high resolutions, custom levels and
1052 more. This package does @emph{not} provide the game assets.")
1054 license:expat ; main license
1055 license:bsd-3)))) ; CorsixTH/Src/random.c
1057 (define-public cowsay
1064 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
1065 (commit (string-append name "-" version))))
1066 (file-name (git-file-name name version))
1069 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
1070 (build-system gnu-build-system)
1073 (modify-phases %standard-phases
1074 (delete 'configure) ; no configure script
1075 (delete 'build) ; nothing to be built
1077 (lambda* (#:key outputs #:allow-other-keys)
1078 (invoke "sh" "install.sh"
1079 (assoc-ref outputs "out"))))
1081 (add-after 'install 'check
1082 (lambda* (#:key outputs #:allow-other-keys)
1083 (invoke (string-append (assoc-ref outputs "out")
1088 (home-page (string-append "https://web.archive.org/web/20071026043648/"
1089 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
1090 (synopsis "Speaking cow text filter")
1091 (description "Cowsay is basically a text filter. Send some text into it,
1092 and you get a cow saying your text. If you think a talking cow isn't enough,
1093 cows can think too: all you have to do is run @command{cowthink}. If you're
1094 tired of cows, a variety of other ASCII-art messengers are available.")
1095 (license license:gpl3+)))
1097 (define-public lolcat
1098 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
1102 (version (git-version "1.0" revision commit))
1107 (url "https://github.com/jaseg/lolcat")
1111 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
1112 (file-name (git-file-name name version))))
1113 (build-system gnu-build-system)
1115 `(#:tests? #f ; no check target
1117 (list ,(string-append "CC=" (cc-for-target)))
1119 (modify-phases %standard-phases
1123 (lambda* (#:key outputs #:allow-other-keys)
1124 (let* ((out (assoc-ref outputs "out"))
1125 (dest (string-append out "/bin")))
1127 (install-file "lolcat" dest)
1128 (install-file "censor" dest)
1130 (home-page "https://github.com/jaseg/lolcat")
1131 (synopsis "Rainbow coloring effect for text console display")
1132 (description "@command{lolcat} concatenates files and streams like
1133 regular @command{cat}, but it also adds terminal escape codes between
1134 characters and lines resulting in a rainbow effect.")
1135 (license license:wtfpl2))))
1137 (define-public falltergeist
1139 (name "falltergeist")
1144 (url "https://github.com/falltergeist/falltergeist")
1146 (file-name (git-file-name name version))
1149 "05cg58i2g32wbmrvmdsicic8xs83gld3qr1p7r4lnlckcl1l7dy4"))))
1150 (build-system cmake-build-system)
1152 `(#:tests? #f)) ; no tests provided
1153 (native-inputs `(("pkg-config" ,pkg-config)))
1154 (inputs `(("sdl" ,(sdl-union (list sdl2
1159 (home-page "https://falltergeist.org/")
1160 (synopsis "Fallout 2 game engine")
1161 (description "This package provides the Fallout 2 game engine. Game data
1162 should be placed in @file{~/.local/share/falltergeist}.")
1163 (license license:gpl3+)))
1165 (define-public foobillard++
1166 ;; Even though this latest revision is old already, stable release is
1167 ;; lagging way behind it, and has issues with textures rendering.
1168 (let ((svn-revision 170))
1170 (name "foobillard++")
1171 (version (string-append "3.43-r" (number->string svn-revision)))
1176 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1177 (revision svn-revision)))
1178 (file-name (git-file-name name version))
1180 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1182 (search-patches "foobillard++-pkg-config.patch"))
1183 (modules '((guix build utils)))
1186 ;; Unfortunately, the game includes background music with
1187 ;; a non-commercial clause. Delete it.
1188 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1190 (build-system gnu-build-system)
1194 ;; Install data in a less exotic location.
1195 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1196 ;; Prevent a build error about undefined trigonometric functions.
1197 "--enable-fastmath=no")
1199 (modify-phases %standard-phases
1200 (add-after 'unpack 'fix-makefile
1201 ;; Remove hard-coded directories. Also fix installation
1202 ;; rule: it tries to move around non-existent files or
1203 ;; files already moved.
1204 (lambda* (#:key outputs #:allow-other-keys)
1205 (substitute* "Makefile.am"
1206 (("/usr") (assoc-ref outputs "out"))
1207 (("cp .*?/foobillardplus\\.desktop.*") "")
1208 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1211 (add-after 'unpack 'unbundle-font
1212 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1213 ;; LinBiolinum_aS.ttf, which are not provided by
1214 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1216 (lambda* (#:key inputs #:allow-other-keys)
1217 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1218 "/share/fonts/truetype/")))
1219 (with-directory-excursion "data"
1220 (for-each (lambda (f)
1222 (symlink (string-append dejavu f) f))
1223 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1227 (invoke "aclocal" "--force")
1228 (invoke "autoconf" "-f")
1229 (invoke "autoheader" "-f")
1230 (invoke "automake" "-a" "-c" "-f")))
1231 (add-before 'build 'prepare-build
1232 ;; Set correct environment for SDL.
1233 (lambda* (#:key inputs #:allow-other-keys)
1236 (search-input-directory inputs "include/SDL")
1237 ":" (or (getenv "CPATH") "")))))
1238 (add-before 'build 'fix-settings-directory
1239 ;; Hide foobillardplus settings directory in $HOME.
1241 (substitute* "src/history.c"
1242 (("/foobillardplus-data") "/.foobillardplus"))
1244 (add-before 'install 'create-directories
1245 ;; Install process does not create directories before
1246 ;; trying to move file in it.
1247 (lambda* (#:key outputs #:allow-other-keys)
1248 (let ((out (assoc-ref outputs "out")))
1249 (mkdir-p (string-append out "/share/icons"))
1250 (mkdir-p (string-append out "/share/applications")))
1252 (add-after 'install 'symlink-executable
1253 ;; Symlink executable to $out/bin.
1254 (lambda* (#:key outputs #:allow-other-keys)
1255 (let* ((out (assoc-ref outputs "out"))
1256 (bin (string-append out "/bin")))
1258 (with-directory-excursion bin
1259 (symlink "../share/foobillardplus/bin/foobillardplus"
1263 `(("autoconf" ,autoconf)
1264 ("automake" ,automake)
1265 ("pkg-config" ,pkg-config)))
1267 `(("font-dejavu" ,font-dejavu)
1268 ("freetype" ,freetype)
1271 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1272 (home-page "http://foobillardplus.sourceforge.net/")
1273 (synopsis "3D billiard game")
1274 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1275 based on the original foobillard 3.0a sources from Florian Berger.
1276 You can play it with one or two players or against the computer.
1281 @item Wood paneled table with gold covers and gold diamonds.
1282 @item Reflections on balls.
1283 @item Zoom in and out, rotation, different angles and bird's eye view.
1284 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1285 @item Tournaments. Compete against other players.
1286 @item Animated cue with strength and eccentric hit adjustment.
1287 @item Jump shots and snipping.
1288 @item Realistic gameplay and billiard sounds.
1289 @item Red-Green stereo.
1290 @item And much more.
1292 (license (list license:gpl2 license:silofl1.1)))))
1294 (define-public freedoom
1302 (url "https://github.com/freedoom/freedoom")
1303 (commit (string-append "v" version))))
1304 (file-name (git-file-name name version))
1306 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1307 (build-system gnu-build-system)
1310 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1311 #:tests? #f ; no check target
1313 (modify-phases %standard-phases
1316 (lambda* (#:key inputs outputs #:allow-other-keys)
1317 (let* ((freedoom (assoc-ref outputs "out"))
1318 (wad-dir (string-append freedoom "/share/games/doom")))
1319 ;; Make sure that the install scripts know where to find
1320 ;; the appropriate WAD files.
1321 (substitute* "dist/freedoom"
1322 (("IWAD=freedm.wad")
1323 (string-append "IWAD=" wad-dir "/freedm.wad"))
1324 (("IWAD=freedoom1.wad")
1325 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1326 (("IWAD=freedoom2.wad")
1327 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1330 `(("asciidoc" ,asciidoc)
1333 ("python-pillow" ,python-pillow)))
1334 (home-page "https://freedoom.github.io/")
1335 (synopsis "Free content game based on the Doom engine")
1336 (native-search-paths
1337 (list (search-path-specification
1338 (variable "DOOMWADDIR")
1339 (files '("share/games/doom")))
1340 (search-path-specification
1341 (variable "DOOMWADPATH")
1342 (files '("share/games/doom")))))
1344 "The Freedoom project aims to create a complete free content first person
1345 shooter game. Freedoom by itself is just the raw material for a game: it must
1346 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1347 played. Freedoom complements the Doom engine with free levels, artwork, sound
1348 effects and music to make a completely free game.")
1349 (license license:bsd-3)))
1351 (define-public freedroidrpg
1353 (name "freedroidrpg")
1358 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1359 "freedroidRPG-" (version-major+minor version) "/"
1360 "freedroidRPG-" version ".tar.gz"))
1362 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1363 (build-system gnu-build-system)
1367 (string-append "CFLAGS="
1368 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1369 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1370 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1372 ;; FIXME: the test suite fails with the following error output:
1373 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1374 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1377 `(("pkg-config" ,pkg-config)))
1380 ("libjpeg" ,libjpeg-turbo)
1383 ("libvorbis" ,libvorbis)
1385 ("python" ,python-wrapper)
1387 ("sdl-gfx" ,sdl-gfx)
1388 ("sdl-image" ,sdl-image)
1389 ("sdl-mixer" ,sdl-mixer)
1391 (home-page "https://www.freedroid.org/")
1392 (synopsis "Isometric role-playing game against killer robots")
1394 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1395 The game tells the story of a world destroyed by a conflict between robots and
1396 their human masters. To restore peace to humankind, the player must complete
1397 numerous quests while fighting off rebelling robots---either by taking control
1398 of them, or by simply blasting them to pieces with melee and ranged weapons in
1400 (license (list license:expat ; lua/
1401 license:gpl3 ; src/gen_savestruct.py
1402 license:gpl2+)))) ; the rest
1404 (define-public golly
1410 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1411 version "/golly-" version
1415 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1416 (build-system gnu-build-system)
1418 '(#:make-flags (list "CC=gcc"
1419 (string-append "GOLLYDIR="
1420 (assoc-ref %outputs "out")
1422 #:tests? #f ; no check target
1424 (modify-phases %standard-phases
1426 (lambda* (#:key inputs #:allow-other-keys)
1427 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1428 ;; properly set the path to the Python shared library. This
1429 ;; substitution acheives the same end by different means.
1430 (substitute* "gui-wx/wxprefs.cpp"
1431 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1432 (string-append "pythonlib = \""
1433 (assoc-ref inputs "python")
1434 "/lib/libpython-2.7.so\"")))
1437 (lambda* (#:key make-flags outputs #:allow-other-keys)
1438 (with-directory-excursion "gui-wx"
1439 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1441 (lambda* (#:key outputs #:allow-other-keys)
1442 (let* ((out (assoc-ref outputs "out"))
1443 (bin (string-append out "/bin"))
1444 (doc (string-append out "/share/doc/golly"))
1445 (pixmaps (string-append out "/share/pixmaps"))
1446 (share (string-append out "/share/golly")))
1447 (for-each (lambda (binary)
1448 (install-file binary bin))
1449 '("bgolly" "golly"))
1450 (for-each (lambda (document)
1452 (string-append "docs/" document ".html")
1454 '("License" "ReadMe" "ToDo"))
1455 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1456 (for-each (lambda (folder)
1459 (string-append share "/" folder)))
1460 '("Help" "Patterns" "Rules" "Scripts")))
1467 ("python" ,python-2)
1468 ("wxwidgets" ,wxwidgets-gtk2)
1470 (home-page "http://golly.sourceforge.net/")
1471 (synopsis "Software for exploring cellular automata")
1473 "Golly simulates Conway's Game of Life and many other types of cellular
1474 automata. The following features are available:
1476 @item Support for bounded and unbounded universes, with cells of up to 256
1478 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1480 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1481 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1482 @item Scriptable via Lua or Python.
1483 @item Extracting patterns, rules and scripts from zip files.
1484 @item Downloading patterns, rules and scripts from online archives.
1485 @item Pasting patterns from the clipboard.
1486 @item Unlimited undo/redo.
1487 @item Configurable keyboard shortcuts.
1488 @item Auto fit option to keep patterns within the view.
1490 (license license:gpl2+)))
1492 (define-public joycond
1493 (let ((commit "f9a66914622514c13997c2bf7ec20fa98e9dfc1d")
1497 (version (git-version "0.1.0" revision commit))
1502 (url "https://github.com/DanielOgorchock/joycond")
1504 (file-name (git-file-name name version))
1506 (base32 "07z86yp27vxc0b44jgvf1vpa69rh3wdvd1xbzcsrj3f32743pv5a"))))
1507 (build-system cmake-build-system)
1509 `(#:tests? #f ;no test suite
1511 (modify-phases %standard-phases
1512 (add-after 'unpack 'fix-bin-location
1513 (lambda* (#:key outputs #:allow-other-keys)
1514 (let ((out (assoc-ref outputs "out")))
1515 (substitute* "CMakeLists.txt"
1516 (("/lib/udev/rules.d")
1517 (string-append out "/lib/udev/rules.d"))
1518 (("/etc/systemd/system")
1519 (string-append out "/etc/systemd/system"))
1520 (("/etc/modules-load.d")
1521 (string-append out "/etc/modules-load.d"))
1523 (string-append out "/bin")))))))))
1524 (native-inputs `(("pkg-config" ,pkg-config)))
1527 ("libevdev" ,libevdev)))
1528 (home-page "https://github.com/DanielOgorchock/joycond")
1529 (synopsis "Joy-Con controller daemon")
1530 (description "This package provides a userspace daemon for the Nintendo
1531 Joy-Con controllers.")
1532 (license license:gpl3))))
1534 (define-public julius
1542 (url "https://github.com/bvschaik/julius")
1543 (commit (string-append "v" version))))
1544 (file-name (git-file-name name version))
1546 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1547 ;; Remove unused bundled libraries.
1548 (modules '((guix build utils)))
1551 (with-directory-excursion "ext"
1552 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1554 (build-system cmake-build-system)
1556 `(("libpng" ,libpng)
1558 ("sdl2-mixer" ,sdl2-mixer)))
1559 (home-page "https://github.com/bvschaik/julius")
1560 (synopsis "Re-implementation of Caesar III game engine")
1562 "Engine for Caesar III, a city-building real-time strategy game.
1563 Julius includes some UI enhancements while preserving the logic (including
1564 bugs) of the original game, so that saved games are compatible. This package
1565 does not include game data.")
1566 (license (list license:agpl3
1567 license:zlib)))) ; ext/tinyfiledialogs
1569 (define-public augustus
1578 (url "https://github.com/Keriew/augustus")
1579 (commit (string-append "v" version))))
1580 (file-name (git-file-name name version))
1582 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1583 ;; Remove unused bundled libraries.
1584 (modules '((guix build utils)))
1587 (with-directory-excursion "ext"
1588 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1591 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1593 (home-page "https://github.com/Keriew/augustus")
1594 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1596 "Fork of Julius, an engine for the a city-building real-time strategy
1597 game Caesar III. Gameplay enhancements include:
1601 @item market special orders;
1602 @item global labour pool;
1603 @item partial warehouse storage;
1604 @item increased game limits;
1605 @item zoom controls.
1608 (define-public meandmyshadow
1610 (name "meandmyshadow")
1614 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1615 version "/meandmyshadow-" version
1619 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1620 (build-system cmake-build-system)
1622 `(#:tests? #f)) ; there are no tests
1624 `(("pkg-config" ,pkg-config)))
1627 ("libarchive" ,libarchive)
1629 ("sdl" ,(sdl-union (list sdl2
1633 (home-page "https://acmepjz.github.io/meandmyshadow/")
1634 (synopsis "Puzzle/platform game")
1635 (description "Me and My Shadow is a puzzle/platform game in which you try
1636 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1637 and much more stand between you and the exit. Record your moves and let your
1638 shadow mimic them to reach blocks you couldn't reach alone.")
1639 (license license:gpl3+)))
1641 (define-public opensurge
1649 (url "https://github.com/alemart/opensurge")
1650 (commit (string-append "v" version))))
1651 (file-name (git-file-name name version))
1653 (base32 "13g5izss7dmgigc8iif8hid3z6i066b0z29rbql2b9qjmdj1dp41"))))
1654 (build-system cmake-build-system)
1656 `(#:tests? #f ;there are no tests
1658 (let* ((out (assoc-ref %outputs "out"))
1659 (share (string-append out "/share")))
1660 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1661 (string-append "-DGAME_BINDIR=" out "/bin") ; not /bin/games
1662 (string-append "-DGAME_DATADIR=" share "/" ,name)
1663 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1664 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1665 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1667 (modify-phases %standard-phases
1668 (add-after 'unpack 'fix-xdg-open-path
1669 (lambda* (#:key inputs #:allow-other-keys)
1670 ;; Look for xdg-open in the store.
1671 (substitute* "src/core/web.c"
1672 (("/usr(/bin/xdg-open)" _ bin)
1673 (search-input-file inputs bin)))))
1674 (add-after 'unpack 'unbundle-fonts
1675 (lambda* (#:key inputs #:allow-other-keys)
1676 ;; Replace bundled Roboto fonts with links to the store.
1677 (with-directory-excursion "fonts"
1678 (let ((roboto-dir (string-append
1679 (assoc-ref inputs "font-google-roboto")
1680 "/share/fonts/truetype/")))
1684 (symlink (string-append roboto-dir font) font))
1685 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1688 `(("allegro" ,allegro)
1689 ("font-google-roboto" ,font-google-roboto)
1690 ("surgescript" ,surgescript)
1691 ("xdg-utils" ,xdg-utils)))
1692 (home-page "https://opensurge2d.org")
1693 (synopsis "2D retro side-scrolling game")
1694 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1695 inspired by the Sonic games. The player runs at high speeds through each
1696 level while collecting items and avoiding obstacles. The game includes a
1697 built-in level editor.")
1699 ;; Code is under GPL 3+, assets are under various licenses.
1700 ;; See src/misc/credits.c for details.
1706 license:public-domain
1707 license:silofl1.1))))
1709 (define-public knights
1715 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1716 version "_src.tar.gz"))
1719 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1720 (build-system gnu-build-system)
1723 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1724 "CXXFLAGS=-lpthread")
1726 (modify-phases %standard-phases
1727 ;; No configure script.
1728 (delete 'configure))
1729 #:tests? #f)) ;; No check target.
1732 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1733 ("freetype" ,freetype)
1734 ("fontconfig" ,fontconfig)
1737 `(("pkg-config" ,pkg-config)))
1738 (home-page "http://www.knightsgame.org.uk/")
1739 (synopsis "Multiplayer dungeon game involving knights and quests")
1740 (description "Knights is a multiplayer game involving several knights who
1741 must run around a dungeon and complete various quests. Each game revolves
1742 around a quest – for example, you might have to find some items and carry them
1743 back to your starting point. This may sound easy, but as there are only
1744 enough items in the dungeon for one player to win, you may end up having to
1745 kill your opponents to get their stuff! Other quests involve escaping from
1746 the dungeon, fighting a duel to the death against the enemy knights, or
1747 destroying an ancient book using a special wand.")
1748 ;; This package includes modified sources of lua (X11), enet (Expat), and
1749 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1750 ;; license. The whole package is released under GPLv3+.
1751 (license license:gpl3+)))
1753 (define-public gnome-2048
1759 (uri (string-append "mirror://gnome/sources/gnome-2048/"
1760 (version-major+minor version) "/"
1761 "gnome-2048-" version ".tar.xz"))
1764 "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"))))
1765 (build-system meson-build-system)
1769 (modify-phases %standard-phases
1770 (add-after 'unpack 'skip-gtk-update-icon-cache
1771 ;; Don't create 'icon-theme.cache'.
1773 (substitute* "meson_post_install.py"
1774 (("gtk-update-icon-cache") "true"))
1778 ("clutter" ,clutter)
1779 ("clutter-gtk" ,clutter-gtk)
1781 ("libgnome-games-support" ,libgnome-games-support)))
1783 `(("gettext" ,gettext-minimal)
1784 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1785 ("itstool" ,itstool)
1786 ("libxml2" ,libxml2)
1787 ("pkg-config" ,pkg-config)
1789 (home-page "https://wiki.gnome.org/Apps/2048")
1790 (synopsis "Move the tiles until you obtain the 2048 tile")
1791 (description "GNOME 2048 provides a 2D grid for playing 2048, a
1792 single-player sliding tile puzzle game. The objective of the game is to merge
1793 together adjacent tiles of the same number until the sum of 2048 is achieved
1795 (license license:gpl3+)))
1797 (define-public gnome-chess
1799 (name "gnome-chess")
1803 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1804 (version-major+minor version) "/"
1805 "gnome-chess-" version ".tar.xz"))
1808 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1809 (build-system meson-build-system)
1813 (modify-phases %standard-phases
1814 (add-after 'unpack 'skip-gtk-update-icon-cache
1815 ;; Don't create 'icon-theme.cache'.
1817 (substitute* "meson_post_install.py"
1818 (("gtk-update-icon-cache") "true"))
1822 ("librsvg" ,librsvg)))
1824 `(("gettext" ,gettext-minimal)
1825 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1826 ("itstool" ,itstool)
1827 ("pkg-config" ,pkg-config)
1829 (home-page "https://wiki.gnome.org/Apps/Chess")
1830 (synopsis "Chess board for GNOME")
1831 (description "GNOME Chess provides a 2D board for playing chess games
1832 against human or computer players. It supports loading and saving games in
1833 Portable Game Notation. To play against a computer, install a chess engine
1834 such as chess or stockfish.")
1835 (license license:gpl3+)))
1837 (define-public gnubg
1840 (version "1.06.002")
1844 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1845 version "-sources.tar.gz"))
1848 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1849 (build-system gnu-build-system)
1850 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1851 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1852 ("pango" ,pango-1.42)
1855 ("readline" ,readline)
1859 ("gtkglext" ,gtkglext)
1861 ("libcanberra" ,libcanberra)))
1862 (native-inputs `(("python-2" ,python-2)
1863 ("pkg-config" ,pkg-config)))
1866 ;; SSE instructions are available on Intel systems only.
1867 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1870 '("--enable-simd=sse2") ; prevent avx instructions
1873 (modify-phases %standard-phases
1874 (add-after 'install 'install-desktop-file
1875 (lambda* (#:key outputs #:allow-other-keys)
1876 (let* ((out (assoc-ref outputs "out"))
1877 (apps (string-append out "/share/applications")))
1879 (with-output-to-file (string-append apps "/gnubg.desktop")
1883 Name=GNU Backgammon~@
1884 Exec=~a/bin/gnubg -w~@
1891 (home-page "https://www.gnu.org/software/gnubg/")
1892 (synopsis "Backgammon game")
1893 (description "The GNU backgammon application (also known as \"gnubg\") can
1894 be used for playing, analyzing and teaching the game. It has an advanced
1895 evaluation engine based on artificial neural networks suitable for both
1896 beginners and advanced players. In addition to a command-line interface, it
1897 also features an attractive, 3D representation of the playing board.")
1898 (license license:gpl3+)))
1900 (define-public gnubik
1907 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1911 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1912 (build-system gnu-build-system)
1914 '(#:phases (modify-phases %standard-phases
1915 (add-after 'unpack 'skip-gtk-update-icon-cache
1917 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1918 ;; unnecessary and causes a needless dependency on glib.
1919 (substitute* "Makefile.in"
1920 (("gtk-update-icon-cache")
1923 (inputs `(("gtk+" ,gtk+-2)
1927 ("guile" ,guile-2.0)
1928 ("gtkglext" ,gtkglext)))
1929 (native-inputs `(("gettext" ,gettext-minimal)
1930 ("pkg-config" ,pkg-config)))
1931 (home-page "https://www.gnu.org/software/gnubik/")
1932 (synopsis "3d Rubik's cube game")
1934 "GNUbik is a puzzle game in which you must manipulate a cube to make
1935 each of its faces have a uniform color. The game is customizable, allowing
1936 you to set the size of the cube (the default is 3x3) or to change the colors.
1937 You may even apply photos to the faces instead of colors. The game is
1938 scriptable with Guile.")
1939 (license license:gpl3+)))
1941 (define-public gnushogi
1948 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1952 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1953 (arguments `(#:tests? #f)) ;; No check target.
1954 (build-system gnu-build-system)
1955 (home-page "https://www.gnu.org/software/gnushogi/")
1956 (synopsis "The game of Shogi (Japanese chess)")
1957 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1958 Chess). It is similar to standard chess but this variant is far more complicated.")
1959 (license license:gpl3+)))
1961 (define-public ltris
1968 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1969 "ltris-" version ".tar.gz"))
1971 (base32 "1a2m17jwkyar8gj07bn5jk01j2ps4vvc48z955jjjsh67q2svi0f"))))
1972 (build-system gnu-build-system)
1975 (modify-phases %standard-phases
1976 (add-after 'set-paths 'set-sdl-paths
1977 (lambda* (#:key inputs #:allow-other-keys)
1980 (search-input-directory inputs "include/SDL")
1981 ":" (or (getenv "CPATH") ""))))))))
1983 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1984 (home-page "http://lgames.sourceforge.net/LTris/")
1985 (synopsis "Tetris clone based on the SDL library")
1987 "LTris is a tetris clone: differently shaped blocks are falling down the
1988 rectangular playing field and can be moved sideways or rotated by 90 degree
1989 units with the aim of building lines without gaps which then disappear (causing
1990 any block above the deleted line to fall down). LTris has three game modes: In
1991 Classic you play until the stack of blocks reaches the top of the playing field
1992 and no new blocks can enter. In Figures the playing field is reset to a new
1993 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1994 up to three players (either human or CPU) compete with each other sending
1995 removed lines to all opponents. There is also a Demo mode in which you can
1996 watch your CPU playing while enjoying a cup of tea!")
1997 (license license:gpl2+)))
1999 (define-public nethack
2007 (string-append "https://www.nethack.org/download/" version "/nethack-"
2008 (string-join (string-split version #\.) "") "-src.tgz"))
2010 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
2015 `(("ncurses" ,ncurses)
2017 (build-system gnu-build-system)
2020 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
2022 (modify-phases %standard-phases
2023 (add-before 'configure 'patch-paths
2025 (substitute* "sys/unix/nethack.sh"
2027 (substitute* "sys/unix/Makefile.utl"
2028 (("^YACC *=.*$") "YACC = bison -y\n")
2029 (("^LEX *=.*$") "LEX = flex\n")
2030 (("^# CC = gcc") "CC = gcc"))
2031 (substitute* "sys/unix/hints/linux"
2032 (("/bin/gzip") (string-append
2033 (assoc-ref %build-inputs "gzip")
2035 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
2036 (substitute* "include/config.h"
2037 (("^.*define CHDIR.*$") "")
2038 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
2039 ;; Honor SOURCE_DATE_EPOCH.
2040 "#define REPRODUCIBLE_BUILD"))
2042 ;; Note: 'makedefs' rejects and ignores dates that are too old
2043 ;; or too new, so we must choose something reasonable here.
2044 (setenv "SOURCE_DATE_EPOCH" "1531865062")
2046 (substitute* "sys/unix/Makefile.src"
2047 (("^# CC = gcc") "CC = gcc"))
2051 (let ((bash (string-append
2052 (assoc-ref %build-inputs "bash")
2054 (with-directory-excursion "sys/unix"
2055 (substitute* "setup.sh" (("/bin/sh") bash))
2056 (invoke bash "setup.sh" "hints/linux"))
2058 (add-after 'install 'fixup-paths
2060 (let* ((output (assoc-ref %outputs "out"))
2061 (nethack-script (string-append output "/bin/nethack")))
2062 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
2066 (string-append output "/games/lib/nethackdir/" file)
2067 (string-append output "/games/lib/nethackuserdir/"
2069 '("xlogfile" "logfile" "perm" "record" "save"))
2070 (mkdir-p (string-append output "/bin"))
2071 (call-with-output-file nethack-script
2073 (format port "#!~a/bin/sh
2075 if [ ! -d ~~/.config/nethack ]; then
2076 mkdir -p ~~/.config/nethack
2077 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
2078 chmod -R +w ~~/.config/nethack
2089 for i in ~~/.config/nethack/*; do
2090 ln -s $i $(basename $i)
2092 for i in ~a/games/lib/nethackdir/*; do
2093 ln -s $i $(basename $i)
2096 (assoc-ref %build-inputs "bash")
2097 (list->search-path-as-string
2100 (assoc-ref %build-inputs "coreutils") "/bin")
2102 (assoc-ref %build-inputs "less") "/bin"))
2107 (chmod nethack-script #o555)
2110 (home-page "https://nethack.org")
2111 (synopsis "Classic dungeon crawl game")
2112 (description "NetHack is a single player dungeon exploration game that runs
2113 on a wide variety of computer systems, with a variety of graphical and text
2114 interfaces all using the same game engine. Unlike many other Dungeons &
2115 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
2116 the dungeon and not simply killing everything in sight - in fact, killing
2117 everything in sight is a good way to die quickly. Each game presents a
2118 different landscape - the random number generator provides an essentially
2119 unlimited number of variations of the dungeon and its denizens to be discovered
2120 by the player in one of a number of characters: you can pick your race, your
2121 role, and your gender.")
2123 (license:fsdg-compatible
2124 "https://nethack.org/common/license.html"))))
2126 (define-public pipewalker
2133 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
2134 version "/pipewalker-" version ".tar.gz"))
2136 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
2137 (build-system gnu-build-system)
2140 (list (string-append "--docdir=" (assoc-ref %outputs "out")
2141 "/share/doc/" ,name "-" ,version))
2143 (modify-phases %standard-phases
2144 (add-after 'configure 'patch-docdir
2145 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
2147 (substitute* "Makefile"
2148 (("(pkgdocdatadir = ).*" _ assignment)
2149 (string-append assignment "$(docdir)\n")))
2152 `(("libpng" ,libpng)
2155 (home-page "http://pipewalker.sourceforge.net/")
2156 (synopsis "Logical tile puzzle")
2158 "PipeWalker is a simple puzzle game with many diffent themes: connect all
2159 computers to one network server, bring water from a source to the taps, etc.
2160 The underlying mechanism is always the same: you must turn each tile in the
2161 grid in the right direction to combine all components into a single circuit.
2162 Every puzzle has a complete solution, although there may be more than one.")
2163 (license license:gpl3+)))
2165 (define-public prboom-plus
2167 (name "prboom-plus")
2171 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2172 version "/prboom-plus-" version ".tar.gz"))
2174 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2175 (modules '((guix build utils)))
2178 (substitute* "src/version.c"
2182 (build-system gnu-build-system)
2184 '(#:configure-flags '("--disable-cpu-opt")
2185 #:make-flags `(,(string-append "gamesdir="
2186 (assoc-ref %outputs "out") "/bin"))
2188 (modify-phases %standard-phases
2189 (add-after 'set-paths 'set-sdl'paths
2190 (lambda* (#:key inputs #:allow-other-keys)
2193 (search-input-file inputs "/include/SDL")
2194 ":" (or (getenv "CPATH") ""))))))))
2196 `(("fluidsynth" ,fluidsynth)
2200 ("libvorbis" ,libvorbis)
2202 ("portmidi" ,portmidi)
2203 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2204 (home-page "http://prboom-plus.sourceforge.net/")
2205 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2207 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2208 (license license:gpl2+)))
2210 (define-public retux
2211 (let ((release "1.5")
2215 (version (if (zero? revision)
2217 (string-append release "-"
2218 (number->string revision))))
2221 (uri (string-append "https://github.com/retux-game/retux/"
2222 "releases/download/v"
2224 release "-src.zip"))
2227 "1yima7s36hn2kh5h08lczc5iid8jbdxk7x1g5ms6knaznzj7rll3"))))
2228 (build-system python-build-system)
2230 `(#:tests? #f ; no check target
2232 (modify-phases %standard-phases
2233 ;; no setup.py script
2236 (lambda* (#:key outputs #:allow-other-keys)
2237 (let* ((out (assoc-ref outputs "out"))
2238 (bin (string-append out "/bin"))
2239 (data (string-append out "/share/retux")))
2242 (substitute* "retux.py"
2243 ;; Use the correct data directory.
2244 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2245 (string-append "\"" data "\",")))
2247 (copy-file "retux.py" (string-append bin "/retux"))
2248 (copy-recursively "data" data)
2251 `(("unzip" ,unzip)))
2253 `(("python-sge-pygame" ,python-sge-pygame)
2254 ("python-six" ,python-six)
2255 ("python-xsge" ,python-xsge)))
2256 (home-page "https://retux-game.github.io/")
2257 (synopsis "Action platformer game")
2259 "ReTux is an action platformer loosely inspired by the Mario games,
2260 utilizing the art assets from the @code{SuperTux} project.")
2261 ;; GPL version 3 or later is the license for the code and some art.
2262 ;; The rest of the licenses are for the art exclusively, as listed in
2264 (license (list license:cc0
2271 (define-public roguebox-adventures
2273 (name "roguebox-adventures")
2279 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2280 (string-join (string-split version #\.) "_") "_Source.zip"))
2281 (file-name (string-append name "-" version ".zip"))
2284 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2285 (build-system python-build-system)
2287 `(#:tests? #f ; no check target
2289 (modify-phases %standard-phases
2291 (lambda* (#:key source #:allow-other-keys)
2292 (and (invoke "unzip" source)
2293 ;; The actual source is buried a few directories deep.
2294 (chdir (string-append "RogueBoxAdventures_v"
2296 (string-split ,version #\.) "_")
2298 ;; no setup.py script
2300 (lambda* (#:key outputs #:allow-other-keys)
2301 (let* ((out (assoc-ref outputs "out"))
2302 (data (string-append
2303 out "/share/games/roguebox-adventures")))
2304 ;; Use the correct data directory.
2305 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2306 (("basic_path + os\\.sep + 'DATA'")
2307 (string-append "'" data "'"))
2309 (string-append "basic_path ='" data "'\n")))
2310 (substitute* "LIB/dialog.py"
2311 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2312 (string-append "d_path = '" data "'")))
2313 (substitute* "LIB/gra_files.py"
2314 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2315 (string-append "basic_path ='" data "'\n")))
2317 ;; The game must save in the user's home directory because
2318 ;; the store is read-only.
2319 (substitute* "main.py"
2320 (("home_save = False") "home_save = True")
2321 (("'icon_small.png'")
2322 (string-append "'" data "/icon_small.png'"))))
2325 (lambda* (#:key outputs #:allow-other-keys)
2326 (let* ((out (assoc-ref outputs "out"))
2327 (bin (string-append out "/bin"))
2328 (roguebox-adventures
2329 (string-append bin "/roguebox-adventures"))
2330 (data (string-append
2331 out "/share/games/roguebox-adventures"))
2332 (lib (string-append data "/LIB"))
2334 out "/share/doc/roguebox-adventures")))
2338 (for-each (lambda (file)
2339 (copy-recursively file
2340 (string-append data "/" file)))
2341 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2342 "icon_big.png" "icon_small.png"))
2343 (for-each (lambda (file)
2345 (install-file file lib))
2346 '("main.py" "run.py"))
2348 (copy-recursively "DOC" doc)
2350 (call-with-output-file
2355 export GUIX_PYTHONPATH=~a/LIB:~a
2356 exec -a \"~a\" ~a \"$@\"\n"
2357 (which "bash") data (getenv "GUIX_PYTHONPATH")
2359 (string-append lib "/main.py"))))
2360 (chmod roguebox-adventures #o555))
2363 `(("unzip" ,unzip)))
2365 `(("python-pygame" ,python-pygame)
2366 ("python-tmx" ,python-tmx)))
2367 (home-page "https://rogueboxadventures.tuxfamily.org")
2368 (synopsis "A classical roguelike/sandbox game")
2370 "RogueBox Adventures is a graphical roguelike with strong influences
2371 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2372 Adventures is to offer the player a kind of roguelike toy-world. This world
2373 can be explored and changed freely.")
2374 ;; The GPL3+ is for code, the rest are for art.
2375 (license (list license:cc0
2378 license:silofl1.1))))
2380 (define-public seahorse-adventures
2382 (name "seahorse-adventures")
2388 (url "https://github.com/dulsi/seahorse-adventures")
2389 (commit (string-append "release-" version))))
2390 (file-name (git-file-name name version))
2392 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2393 (modules '((guix build utils)
2396 ;; Remove non-free (non-commercial) font.
2399 (for-each delete-file (find-files "data/fonts" "."))
2401 (build-system python-build-system)
2403 `(#:tests? #f ;no test
2405 (modify-phases %standard-phases
2406 (delete 'build) ;pure Python
2407 (replace 'install ;no install script
2408 (lambda* (#:key outputs #:allow-other-keys)
2409 (let* ((out (assoc-ref outputs "out"))
2410 (bin (string-append out "/bin"))
2411 (share (string-append out "/share"))
2412 (applications (string-append share "/applications"))
2413 (data (string-append share "/seahorse-adventures")))
2415 (for-each (lambda (f)
2417 (install-file f data))
2418 '("leveledit.py" "run_game.py" "tileedit.py"))
2419 (for-each (lambda (dir)
2420 (let ((target (string-append data "/" dir)))
2422 (copy-recursively dir target)))
2424 ;; Create executable.
2426 (let ((executable (string-append bin "/seahorse-adventures")))
2427 (call-with-output-file executable
2431 export GUIX_PYTHONPATH=~a:~a~@
2432 exec -a \"~a\" ~a \"$@\"~%"
2433 (which "bash") data (getenv "GUIX_PYTHONPATH")
2435 (string-append data "/run_game.py"))))
2436 (chmod executable #o555))
2437 ;; Add desktop file.
2438 (mkdir-p applications)
2439 (make-desktop-entry-file
2440 (string-append applications "/seahorse-adventures.desktop")
2441 #:name "Seahorse Adventures"
2443 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2446 #:categories '("Game" "ActionGame")
2447 #:keywords '("game" "retro" "platform"))
2451 (let ((dir (string-append share "/icons/hicolor/"
2452 size "x" size "/apps")))
2455 (string-append "icon" size ".png")
2456 (string-append dir "/searhorse-adventures.png"))))
2457 '("32" "64" "128")))
2459 (add-after 'install 'unbundle-fonts
2460 ;; Unbundle Bitstream Vera font and replace deleted one.
2461 (lambda* (#:key outputs inputs #:allow-other-keys)
2462 (let* ((out (assoc-ref outputs "out"))
2463 (data (string-append out "/share/seahorse-adventures"))
2464 (vera (search-input-file
2465 inputs "/share/fonts/truetype/Vera.ttf")))
2466 (let ((themes-dir (string-append data "/data/themes/")))
2469 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2470 (delete-file target)
2471 (symlink vera target)))
2472 '("default" "gray")))
2473 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2474 (substitute* (string-append data "/lib/main.py")
2475 (("f_scale = 0.35") "f_scale = 0.47")))
2478 `(("font-bitstream-vera" ,font-bitstream-vera)
2479 ("python-pygame" ,python-pygame)))
2480 (home-page "http://www.imitationpickles.org/barbie/")
2481 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2483 "Barbie Seahorse Adventures is a retro style platform arcade game.
2484 You are Barbie the seahorse who travels through the jungle, up to the
2485 volcano until you float on bubbles to the moon. On the way to your
2486 final destination you will encounter various enemies, servants of the
2487 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2488 and defeat them with your bubbles!")
2489 ;; GPL2+ is for code, CC0 is for art.
2490 (license (list license:gpl2+ license:cc0))))
2492 (define-public solarus
2495 ;; XXX: When updating this package, please also update hash in
2496 ;; `solarus-quest-editor' below.
2502 (url "https://gitlab.com/solarus-games/solarus")
2503 (commit (string-append "v" version))))
2504 (file-name (git-file-name name version))
2506 (base32 "0ny9dgqphjv2l39rff2621hnrzpf8qin8vmnv7jdz20azjk4m8id"))))
2507 (build-system cmake-build-system)
2510 (modify-phases %standard-phases
2511 (add-after 'unpack 'disable-failing-tests
2512 ;; The following tests fail reporting a missing "/dev/dri"
2515 (substitute* "tests/cmake/AddTestMaps.cmake"
2516 ((".*1200_create_shader_from_source.*" all)
2517 (string-append "#" all))
2518 ((".*1210_shader_scaling_factor.*" all)
2519 (string-append "#" all)))
2521 (add-before 'check 'set-home
2522 ;; Tests fail without setting the following environment
2525 (setenv "HOME" (getcwd))
2526 (setenv "XDG_RUNTIME_DIR" (getcwd))
2529 `(("pkg-config" ,pkg-config)
2530 ("qttools" ,qttools)))
2533 ("libmodplug" ,libmodplug)
2535 ("libvorbis" ,libvorbis)
2539 ("qtbase" ,qtbase-5)
2540 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2541 (home-page "https://www.solarus-games.org/")
2542 (synopsis "Lightweight game engine for Action-RPGs")
2544 "Solarus is a 2D game engine written in C++, that can run games
2545 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2547 ;; The source code is licensed under the terms of GPL-3.0.
2548 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2550 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2552 (define-public solarus-quest-editor
2555 (name "solarus-quest-editor")
2556 (version (package-version solarus))
2561 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2562 (commit (string-append "v" version))))
2563 (file-name (git-file-name name version))
2565 (base32 "1pvjgd4faxii5sskw1h55lw90hlbazhwni8nxyywzrmkjbq7irm0"))))
2567 `(#:tests? #false)) ; no test suite
2569 `(("solarus" ,solarus)
2570 ,@(package-inputs solarus)))
2571 (synopsis "Create and modify quests for the Solarus engine")
2573 "Solarus Quest Editor is a graphical user interface to create and
2574 modify quests for the Solarus engine.")))
2576 (define-public superstarfighter
2578 (name "superstarfighter")
2584 (url "https://github.com/notapixelstudio/superstarfighter")
2585 (commit (string-append "v" version))))
2586 (file-name (git-file-name name version))
2588 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2589 (build-system gnu-build-system)
2591 `(#:tests? #f ;there are no tests
2593 (modify-phases %standard-phases
2597 (setenv "HOME" (getcwd))
2598 (with-output-to-file "export_presets.cfg"
2603 platform=\"Linux/X11\"
2605 [preset.0.options]")))
2609 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2610 (invoke (string-append godot "/bin/godot_server")
2611 "--export-pack" "Guix"
2612 "superstarfighter.pck" "project.godot"))
2615 (lambda* (#:key inputs outputs #:allow-other-keys)
2616 (let* ((out (assoc-ref outputs "out"))
2617 (bin (string-append out "/bin"))
2618 (share (string-append out "/share"))
2619 (data (string-append share "/superstarfighter"))
2620 (icons (string-append share "/icons/hicolor/256x256/apps")))
2621 (install-file "superstarfighter.pck" data)
2623 (call-with-output-file (string-append bin "/superstarfighter")
2627 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2628 (assoc-ref inputs "godot")
2630 (chmod port #o755)))
2632 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2633 (make-desktop-entry-file
2634 (string-append share "/applications/" ,name ".desktop")
2635 #:name "SuperStarfighter"
2636 #:comment "Fast-paced arcade combat game"
2639 #:categories '("Game" "ArcadeGame")))
2642 `(("godot-headless" ,godot "headless")))
2644 `(("godot" ,godot)))
2645 (home-page "https://notapixel.itch.io/superstarfighter")
2646 (synopsis "Fast-paced local multiplayer arcade game")
2647 (description "In SuperStarfighter, up to four local players compete in a
2648 2D arena with fast-moving ships and missiles. Different game types are
2649 available, as well as a single-player mode with AI-controlled ships.")
2650 (license (list license:expat ; game
2651 license:silofl1.1)))) ; fonts
2653 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2654 (define %ufoai-revision "0")
2655 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2656 (define ufoai-source
2660 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2661 (commit %ufoai-commit)))
2662 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2665 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2666 (modules '((guix build utils)
2671 ;; Delete ~32MiB of bundled dependencies.
2672 (with-directory-excursion "src/libs"
2673 (for-each delete-file-recursively
2674 (lset-difference equal? (scandir ".")
2675 '("." ".." "gtest" "mumble"))))
2677 ;; Use relative path to Lua headers.
2678 (substitute* "src/common/scripts_lua.h"
2679 (("\\.\\./libs/lua/") ""))
2681 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2682 ;; it as a separate package. This way we don't need to make the same
2683 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2684 (substitute* "build/maps.mk"
2685 (("\\./ufo2map") "ufo2map")
2686 (("maps: ufo2map") "maps:"))
2687 (substitute* "build/modules/testall.mk"
2688 (("testall: ufo2map") "testall:"))
2690 ;; If no cURL headers are found, the build system will try to include
2691 ;; the bundled version, even when not required. Prevent that.
2692 (substitute* "build/default.mk"
2693 (("^include src/libs/curl/lib/Makefile\\.inc")
2696 ;; While here, improve reproducibility by adding the '-X' flag to the
2697 ;; zip command used to create the map files, in order to prevent time
2698 ;; stamps from making it into the generated archives.
2699 (substitute* "build/data.mk"
2700 (("\\$\\(call ZIP\\)")
2704 (define-public trigger-rally
2706 (name "trigger-rally")
2711 (uri (string-append "mirror://sourceforge/trigger-rally/"
2712 "trigger-" version "/"
2713 "trigger-rally-" version ".tar.gz"))
2716 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2717 (build-system gnu-build-system)
2719 `(("freealut" ,freealut)
2725 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2726 ("tinyxml2" ,tinyxml2)))
2728 `(#:make-flags (list (string-append "prefix=" %output)
2729 "bindir=$(prefix)/bin"
2730 "datadir=$(datarootdir)"
2732 #:tests? #f ; No tests present
2734 (modify-phases %standard-phases
2736 (add-before 'build 'cd-src
2737 (lambda _ (chdir "src")))
2738 (add-before 'build 'remove-timestamps
2740 (substitute* (list "Trigger/menu.cpp"
2742 ((".*__DATE__.*") ""))))
2743 (add-before 'build 'make-verbose
2745 (substitute* "GNUmakefile"
2746 (("@\\$\\(CXX\\)") "$(CXX)"))))
2747 (add-after 'build 'set-data-path
2748 (lambda* (#:key outputs #:allow-other-keys)
2749 (let ((out (assoc-ref outputs "out")))
2750 (substitute* "../bin/trigger-rally.config.defs"
2751 (("<data path=\"C:[^\"]*\"")
2752 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2753 (add-after 'install 'create-desktop-entry
2754 (lambda* (#:key outputs #:allow-other-keys)
2755 (let* ((out (assoc-ref outputs "out"))
2756 (apps (string-append out "/share/applications")))
2758 (with-output-to-file
2759 (string-append apps "/trigger-rally.desktop")
2761 (format #t ; Borrowed from Debian package
2763 Name=Trigger Rally~@
2764 Icon=trigger-rally~@
2765 Comment=3D rally racing car game~@
2766 Comment[de]=3D Rally-Autorennen~@
2767 Comment[fr_FR]=un jeu de rally en 3D~@
2768 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2769 Exec=~a/bin/trigger-rally~@
2771 StartupNotify=false~@
2773 TryExec=~:*~a/bin/trigger-rally~@
2774 Categories=Game;ArcadeGame;~@
2775 Keywords=racing;tracks;~@
2776 Keywords[de]=Rennstrecke;~%"
2778 (home-page "http://trigger-rally.sourceforge.net")
2779 (synopsis "Fast-paced single-player racing game")
2780 (description "Trigger-rally is a 3D rally simulation with great physics
2781 for drifting on over 200 maps. Different terrain materials like dirt,
2782 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2783 this rally simulation the edge over many other games. You need to make it
2784 through the maps in often tight time limits and can further improve by beating
2785 the recorded high scores. All attached single races must be finished in time
2786 in order to win an event, unlocking additional events and cars. Most maps are
2787 equipped with spoken co-driver notes and co-driver icons.")
2788 (license (list license:cc0 ;textures and audio in data.zip
2791 (define-public ufo2map
2794 (version %ufoai-version)
2795 (home-page "https://ufoai.org/")
2796 (source ufoai-source)
2797 (build-system gnu-build-system)
2799 '(#:configure-flags '("CC=gcc" "CXX=g++"
2802 "--disable-uforadiant"
2803 "--disable-cgame-campaign"
2804 "--disable-cgame-multiplayer"
2805 "--disable-cgame-skirmish"
2811 "--disable-ufomodel"
2812 "--disable-ufoslicer")
2813 #:tests? #f ;no tests
2814 #:phases (modify-phases %standard-phases
2816 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2817 ;; The home-made configure script does not understand
2818 ;; some of the default flags of gnu-build-system.
2819 (apply invoke "./configure" configure-flags)))
2821 (lambda* (#:key outputs #:allow-other-keys)
2822 (let ((out (assoc-ref outputs "out")))
2823 (install-file "ufo2map" (string-append out "/bin"))
2824 (install-file "debian/ufo2map.6"
2825 (string-append out "/share/man/man6"))
2828 `(("pkg-config" ,pkg-config)))
2830 `(("libjpeg" ,libjpeg-turbo)
2833 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2834 (synopsis "UFO: AI map generator")
2836 "This package provides @command{ufo2map}, a program used to generate
2837 maps for the UFO: Alien Invasion strategy game.")
2838 (license license:gpl2+)))
2843 (version %ufoai-version)
2844 (home-page "https://ufoai.org/")
2845 (source ufoai-source)
2846 (build-system gnu-build-system)
2849 #:configure-flags '("CC=gcc" "CXX=g++")
2850 #:phases (modify-phases %standard-phases
2852 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2853 (apply invoke "./configure" configure-flags)))
2855 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2857 "-j" (if parallel-build?
2858 (number->string (parallel-job-count))
2861 (add-after 'build 'pack
2863 (invoke "make" "pk3")))
2865 (lambda* (#:key outputs #:allow-other-keys)
2866 (let ((out (assoc-ref outputs "out")))
2867 (for-each (lambda (file)
2868 (install-file file out))
2869 (find-files "base" "\\.pk3$"))
2872 `(("python" ,python-2)
2873 ("ufo2map" ,ufo2map)
2876 (synopsis "UFO: AI data files")
2878 "This package contains maps and other assets for UFO: Alien Invasion.")
2879 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2880 ;; licenses, see LICENSES for details.
2881 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2882 license:cc-by-sa3.0 license:public-domain))))
2884 (define-public ufoai
2887 (version %ufoai-version)
2888 (home-page "https://ufoai.org/")
2889 (source ufoai-source)
2890 (build-system gnu-build-system)
2893 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2894 (string-append "--datadir=" (assoc-ref %outputs "out")
2900 "--disable-dependency-tracking"
2902 ;; Disable hard links to prevent huge NARs.
2903 "--disable-hardlinkedgame"
2904 "--disable-hardlinkedcgame")
2905 #:phases (modify-phases %standard-phases
2906 (add-after 'unpack 'symlink-data-files
2907 (lambda* (#:key inputs #:allow-other-keys)
2908 (let ((data (assoc-ref inputs "ufoai-data")))
2909 ;; Symlink the data files to where the build system
2910 ;; expects to find them. Ultimately these files are
2911 ;; copied to $out/share/games/ufoai/base, losing the
2912 ;; symlinks; we could fix that after install, but it
2913 ;; does not make a big difference in practice due to
2915 (with-directory-excursion "base"
2916 (for-each (lambda (file)
2917 (symlink file (basename file)))
2918 (find-files data "\\.pk3$")))
2920 (add-before 'configure 'create-language-files
2922 (invoke "make" "lang")))
2924 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2925 (apply invoke "./configure" configure-flags)))
2927 (lambda* (#:key tests? #:allow-other-keys)
2929 (invoke "./testall")
2930 (format #t "test suite not run~%"))
2932 (add-after 'install 'install-man-pages
2933 (lambda* (#:key outputs #:allow-other-keys)
2934 (let* ((out (assoc-ref outputs "out"))
2935 (man6 (string-append out "/share/man/man6")))
2936 (install-file "debian/ufo.6" man6)
2937 (install-file "debian/ufoded.6" man6)
2940 ;; TODO: Some map tests occasionally fail because of randomness issues,
2941 ;; e.g. not enough generated aliens. The test runner also fails early
2942 ;; in the build container with 'failed to shutdown server'?
2945 `(("gettext" ,gettext-minimal)
2946 ("pkg-config" ,pkg-config)
2947 ("python" ,python-2)
2948 ("ufo2map" ,ufo2map)
2949 ("ufoai-data" ,ufoai-data)))
2952 ("libjpeg" ,libjpeg-turbo)
2955 ("libtheora" ,libtheora)
2956 ("libvorbis" ,libvorbis)
2957 ("libxml2" ,libxml2)
2960 ("minixml" ,minixml)
2961 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2963 (synopsis "Turn-based tactical strategy game")
2965 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2966 You control a secret organisation charged with defending Earth from a brutal
2967 alien enemy. Build up your bases, prepare your team, and dive head-first into
2968 the fast and flowing turn-based combat.
2970 Over the long term you will need to conduct research into the alien threat to
2971 figure out their mysterious goals and use their powerful weapons for your own
2972 ends. You will produce unique items and use them in combat against your
2975 You can also use them against your friends with the multiplayer functionality.
2977 Warning: This is a pre-release version of UFO: AI! Some things may not work
2980 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2981 ;; because some assets do not use the "or later" clause. Many individual
2982 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2983 (license (delete license:gpl2+ (package-license ufoai-data)))))
2985 (define-public xshogi
2992 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2996 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2997 (build-system gnu-build-system)
2999 `(("libxaw" ,libxaw)
3001 (home-page "https://www.gnu.org/software/gnushogi/")
3002 (synopsis "User interface for gnushogi")
3003 (description "A graphical user interface for the package @code{gnushogi}.")
3004 ;; Contains a copy of GPLv3 but the licence notices simply
3005 ;; state "GNU General Public Licence" without specifying a version.
3006 (license license:gpl1+)))
3008 (define-public abbaye
3016 (url "https://github.com/nevat/abbayedesmorts-gpl")
3017 (commit (string-append "v" version))))
3018 (file-name (git-file-name name version))
3020 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
3021 (modules '((guix build utils)))
3025 (delete-file-recursively "fonts")
3027 (build-system gnu-build-system)
3029 '(#:make-flags '("CC=gcc")
3030 #:phases (modify-phases %standard-phases
3031 (add-after 'set-paths 'set-sdl-paths
3032 (lambda* (#:key inputs #:allow-other-keys)
3035 (search-input-file inputs "include/SDL")
3036 ":" (or (getenv "CPATH") "")))))
3037 (add-after 'patch-source-shebangs 'patch-makefile
3038 (lambda* (#:key outputs #:allow-other-keys)
3039 ;; Replace /usr with package output directory.
3040 (substitute* "Makefile"
3041 (("/usr") (assoc-ref outputs "out")))))
3042 (add-before 'install 'make-install-dirs
3043 (lambda* (#:key outputs #:allow-other-keys)
3044 (let ((prefix (assoc-ref outputs "out")))
3045 ;; Create directories that the makefile assumes exist.
3046 (mkdir-p (string-append prefix "/bin"))
3047 (mkdir-p (string-append prefix "/share/applications"))
3048 (mkdir-p (string-append prefix "/share/pixmaps")))))
3049 ;; No configure script.
3050 (delete 'configure))
3051 #:tests? #f)) ;; No check target.
3052 (native-inputs `(("pkg-config" ,pkg-config)))
3053 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
3054 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
3055 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
3056 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
3057 France. The Cathars, who preach about good Christian beliefs, were being
3058 expelled by the Catholic Church out of the Languedoc region in France. One of
3059 them, called Jean Raymond, found an old church in which to hide, not knowing
3060 that beneath its ruins lay buried an ancient evil.")
3061 (license license:gpl3)))
3063 (define-public angband
3071 (url "https://github.com/angband/angband")
3073 (file-name (git-file-name name version))
3075 (base32 "1psrdbf90mb6dhq0b9z18pz1csnshz1kvwg82dvwa99apqdw0la8"))
3076 (modules '((guix build utils)))
3078 ;; So, some of the sounds/graphics/tilesets are under different
3079 ;; licenses... some of them even nonfree! This is a console-only
3080 ;; version of this package so we just remove them.
3081 ;; In the future, if someone tries to make a graphical variant of
3082 ;; this package, they can deal with that mess themselves. :)
3084 (for-each (lambda (subdir)
3085 (let ((lib-subdir (string-append "lib/" subdir)))
3086 (delete-file-recursively lib-subdir)))
3087 '("fonts" "icons" "sounds" "tiles"))
3088 (substitute* "lib/Makefile"
3089 ;; And don't try to invoke makefiles in the directories we removed.
3090 (("gamedata customize help screens fonts tiles sounds icons user")
3091 "gamedata customize help screens user"))
3093 (build-system gnu-build-system)
3095 `(#:tests? #f ; no check target
3096 #:configure-flags (list (string-append "--bindir=" %output "/bin"))))
3098 `(("autoconf" ,autoconf)
3099 ("automake" ,automake)))
3100 (inputs `(("ncurses" ,ncurses)))
3101 (home-page "https://rephial.org/")
3102 (synopsis "Dungeon exploration roguelike")
3103 (description "Angband is a Classic dungeon exploration roguelike. Explore
3104 the depths below Angband, seeking riches, fighting monsters, and preparing to
3105 fight Morgoth, the Lord of Darkness.")
3106 (license license:gpl2)))
3108 (define-public pingus
3116 (url "https://gitlab.com/pingus/pingus.git")
3117 (commit (string-append "v" version))))
3118 (file-name (git-file-name name version))
3121 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
3122 (patches (search-patches "pingus-boost-headers.patch"
3123 "pingus-sdl-libs-config.patch"))
3124 (modules '((guix build utils)))
3127 (substitute* "src/pingus/screens/demo_session.cpp"
3128 (("#include <iostream>")
3129 ;; std::function moved to <functional> with C++ 11.
3130 ;; Remove this for versions newer than 0.7.6.
3131 "#include <iostream>\n#include <functional>"))
3133 (build-system gnu-build-system)
3134 (native-inputs `(("pkg-config" ,pkg-config)
3135 ("scons-python2" ,scons-python2)))
3136 (inputs `(("sdl" ,sdl)
3137 ("sdl-image" ,sdl-image)
3138 ("sdl-mixer" ,sdl-mixer)
3144 '(#:make-flags (list (string-append "PREFIX=" %output))
3145 #:tests? #f ; no check target
3147 (modify-phases %standard-phases
3148 (delete 'configure)))) ; no configure script
3149 (home-page "https://pingus.seul.org/")
3150 (synopsis "Lemmings clone")
3152 "Pingus is a free Lemmings-like puzzle game in which the player takes
3153 command of a bunch of small animals and has to guide them through levels.
3154 Since the animals walk on their own, the player can only influence them by
3155 giving them commands, like build a bridge, dig a hole, or redirect all animals
3156 in the other direction. Multiple such commands are necessary to reach the
3157 level's exit. The game is presented in a 2D side view.")
3158 ;; Some source files are under bsd-3 and gpl2+ licenses.
3159 (license license:gpl3+)))
3161 (define-public talkfilters
3163 (name "talkfilters")
3168 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3169 "talkfilters-" version ".tar.gz"))
3171 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3172 (build-system gnu-build-system)
3173 (home-page "https://www.gnu.org/software/talkfilters/")
3174 (synopsis "Convert English text to humorous dialects")
3175 (description "The GNU Talk Filters are programs that convert English text
3176 into stereotyped or otherwise humorous dialects. The filters are provided as
3177 a C library, so they can easily be integrated into other programs.")
3178 (license license:gpl2+)))
3180 (define-public taisei
3187 (uri (string-append "https://github.com/taisei-project/"
3188 "taisei/releases/download/v" version
3189 "/taisei-v" version ".tar.xz"))
3191 (base32 "1g53fcyrlzmvlsb40pw90gaglysv6n1w42hk263iv61ibhdmzh6v"))))
3192 (build-system meson-build-system)
3194 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3196 (list "-Dr_default=gles30"
3199 "-Dshader_transpiler=true")))
3201 `(("pkg-config" ,pkg-config)
3203 ("python-docutils" ,python-docutils)
3204 ("python-pygments" ,python-pygments)))
3207 ("freetype" ,freetype)
3209 ("libwebp" ,libwebp)
3212 ("openssl" ,openssl)
3213 ("opusfile" ,opusfile)
3215 ("sdl2-mixer" ,sdl2-mixer)
3216 ("shaderc" ,shaderc)
3217 ("spirv-cross" ,spirv-cross)
3219 (home-page "https://taisei-project.org/")
3220 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3222 "The player controls a character (one of three: Good, Bad, and Dead),
3223 dodges the missiles (lots of it cover the screen, but the character's hitbox
3224 is very small), and shoot at the adversaries that keep appear on the screen.")
3225 (license (list ;;game
3227 ;;resources/00-taisei.pkgdir/bgm/
3232 license:public-domain))))
3234 (define-public cmatrix
3242 (url "https://github.com/abishekvashok/cmatrix")
3243 (commit (string-append "v" version))))
3244 (file-name (git-file-name name version))
3247 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3248 (build-system gnu-build-system)
3250 `(("autoconf" ,autoconf)
3251 ("automake" ,automake)))
3254 (modify-phases %standard-phases
3256 (lambda* (#:key outputs #:allow-other-keys)
3257 ;; This old ‘configure’ script doesn't support
3258 ;; variables passed as arguments.
3259 (let ((out (assoc-ref outputs "out")))
3260 (setenv "CONFIG_SHELL" (which "bash"))
3261 (invoke "./configure"
3262 (string-append "--prefix=" out))))))))
3263 (inputs `(("ncurses" ,ncurses)))
3264 (home-page "http://www.asty.org/cmatrix")
3265 (synopsis "Simulate the display from \"The Matrix\"")
3266 (description "CMatrix simulates the display from \"The Matrix\" and is
3267 based on the screensaver from the movie's website. It works with terminal
3268 settings up to 132x300 and can scroll lines all at the same rate or
3269 asynchronously and at a user-defined speed.")
3270 (license license:gpl2+)))
3272 (define-public chess
3279 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3283 "140qqkmvldnf41s39khrgyzr6a0az7dcfhkcmflh0sbmvl5w5z6x"))))
3284 (build-system gnu-build-system)
3287 (modify-phases %standard-phases
3288 (add-after 'install 'fix-shell-scripts
3289 (lambda* (#:key outputs #:allow-other-keys)
3290 (let* ((out (assoc-ref outputs "out"))
3291 (bin (string-append out "/bin")))
3293 (substitute* '("gnuchessx" "gnuchessu")
3294 (("^gnuchess") (string-append bin "/gnuchess")))))))))
3295 (home-page "https://www.gnu.org/software/chess/")
3296 (synopsis "Full chess implementation")
3297 (description "GNU Chess is a chess engine. It allows you to compete
3298 against the computer in a game of chess, either through the default terminal
3299 interface or via an external visual interface such as GNU XBoard.")
3300 (properties '((upstream-name . "gnuchess")
3301 (ftp-directory . "/chess")))
3302 (license license:gpl3+)))
3304 (define-public freedink-engine
3306 (name "freedink-engine")
3310 (uri (string-append "mirror://gnu/freedink/freedink-" version
3312 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3315 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3316 (build-system gnu-build-system)
3318 `(#:configure-flags '("--disable-embedded-resources")
3320 (modify-phases %standard-phases
3321 (add-after 'unpack 'disable-graphical-tests
3323 ;; These tests require a graphical interface.
3324 (substitute* "src/Makefile.am"
3325 (("test_gfx_fonts TestIOGfxDisplay") ""))
3327 (add-before 'bootstrap 'autoreconf
3329 ;; automake is out of date in the source
3330 ;; autoreconf updates the automake scripts
3331 (invoke "autoreconf")
3332 ;; Build fails when autom4te.cache exists.
3333 (delete-file-recursively "autom4te.cache")
3335 (add-after 'install 'delete-freedinkedit-desktop
3336 (lambda* (#:key outputs #:allow-other-keys)
3337 (let ((out (assoc-ref outputs "out")))
3338 ;; freedinkedit does not know where to find freedink data
3339 ;; freedink data is read-only, so it cannot be edited anyway.
3340 ;; TODO: fix freedink.desktop
3341 (delete-file-recursively (string-append
3342 out "/share/applications"))
3344 (native-inputs `(("autoconf" ,autoconf)
3345 ("automake" ,automake)
3346 ("cxxtest" ,cxxtest)
3347 ("gettext" ,gettext-minimal)
3348 ("help2man" ,help2man)
3349 ("pkg-config" ,pkg-config)))
3350 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3351 sdl2-ttf sdl2-gfx)))
3352 ("fontconfig" ,fontconfig)
3354 (properties '((ftp-directory . "/freedink")
3355 (upstream-name . "freedink")))
3356 (home-page "https://www.gnu.org/software/freedink/")
3357 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3359 "GNU FreeDink is a free and portable re-implementation of the engine
3360 for the role-playing game Dink Smallwood. It supports not only the original
3361 game data files but it also supports user-produced game mods or \"D-Mods\".
3362 To that extent, it also includes a front-end for managing all of your D-Mods.")
3363 (license license:gpl3+)))
3365 (define-public freedink-data
3367 (name "freedink-data")
3368 (version "1.08.20190120")
3371 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3375 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3376 (build-system gnu-build-system)
3379 (modify-phases %standard-phases
3380 (delete 'configure) ; no configure script
3381 (delete 'check)) ; no tests
3382 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3383 (properties '((ftp-directory . "/freedink")))
3384 (home-page "https://www.gnu.org/software/freedink/")
3385 (synopsis "Game data for GNU Freedink")
3387 "This package contains the game data of GNU Freedink.")
3388 (license license:gpl3+)))
3390 (define-public freedink-dfarc
3392 (name "freedink-dfarc")
3396 (uri (string-append "mirror://gnu/freedink/dfarc-"
3400 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3401 (build-system gnu-build-system)
3403 `(("intltool" ,intltool)))
3406 ("wxwidgets" ,wxwidgets)))
3407 (properties '((ftp-directory . "/freedink")
3408 (upstream-name . "dfarc")))
3409 (home-page "https://www.gnu.org/software/freedink/")
3410 (synopsis "Front-end for managing and playing Dink Modules")
3411 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3412 and its numerous D-Mods.")
3413 (license license:gpl3+)))
3415 (define-public freedink
3416 ;; This is a wrapper that tells the engine where to find the data.
3417 (package (inherit freedink-engine)
3419 (build-system trivial-build-system)
3422 (use-modules (guix build utils))
3424 (let* ((output (assoc-ref %outputs "out"))
3425 (bin (string-append output "/bin"))
3426 (executable (string-append bin "/freedink")))
3428 (call-with-output-file executable
3430 (format port "#!~a/bin/sh
3431 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3432 (assoc-ref %build-inputs "bash")
3433 (assoc-ref %build-inputs "engine")
3434 (assoc-ref %build-inputs "data"))
3435 (chmod port #o777)))
3437 #:modules ((guix build utils))))
3438 (inputs `(("engine" ,freedink-engine)
3439 ("data" ,freedink-data)
3441 (native-inputs '())))
3443 (define-public xboard
3450 (uri (string-append "mirror://gnu/xboard/xboard-" version
3454 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3455 (build-system gnu-build-system)
3457 `(#:configure-flags '("CFLAGS=-fcommon")
3459 (modify-phases %standard-phases
3460 ;; Fixes https://issues.guix.gnu.org/47195.
3461 (add-after 'unpack 'patch-aplay-path
3462 (lambda* (#:key inputs #:allow-other-keys)
3463 (substitute* "xboard.conf"
3465 (string-append (search-input-file inputs "/bin/aplay")
3467 ;; Fixes https://issues.guix.gnu.org/45236.
3468 (add-after 'unpack 'patch-default-engine
3469 (lambda* (#:key inputs #:allow-other-keys)
3470 (substitute* "xboard.conf"
3471 (("-firstChessProgram fairymax")
3472 (string-append "-firstChessProgram "
3473 (assoc-ref inputs "chess")
3474 "/bin/gnuchessx"))))))))
3476 `(("alsa-utils" ,alsa-utils)
3479 ("librsvg" ,librsvg)))
3481 `(("texinfo" ,texinfo)
3482 ("pkg-config" ,pkg-config)))
3483 (home-page "https://www.gnu.org/software/xboard/")
3484 (synopsis "Graphical user interface for chess programs")
3485 (description "GNU XBoard is a graphical board for all varieties of chess,
3486 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3487 and Makruk. Several lesser-known variants are also supported. It presents a
3488 fully interactive graphical interface and it can load and save games in the
3489 Portable Game Notation.")
3490 (license license:gpl3+)))
3492 (define-public gtypist
3498 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3502 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3503 (modules '((guix build utils)))
3505 ;; We do not provide `ncurses.h' within an `ncursesw'
3506 ;; sub-directory, so patch the source accordingly. See
3507 ;; <http://bugs.gnu.org/19018>.
3509 (for-each (lambda (file)
3511 (("ncursesw/ncurses.h")
3513 (find-files "." "configure$|\\.c$"))
3515 (build-system gnu-build-system)
3516 (inputs `(("ncurses" ,ncurses)
3518 (home-page "https://www.gnu.org/software/gtypist/")
3519 (synopsis "Typing tutor")
3521 "GNU Typist is a universal typing tutor. It can be used to learn and
3522 practice touch-typing. Several tutorials are included; in addition to
3523 tutorials for the standard QWERTY layout, there are also tutorials for the
3524 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3525 are primarily in English, however some in other languages are provided.")
3526 (license license:gpl3+)))
3528 (define-public irrlicht
3535 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3536 (version-major+minor version)
3537 "/" version "/irrlicht-" version ".zip"))
3540 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3541 (patches (search-patches "irrlicht-use-system-libs.patch"))
3542 (modules '((guix build utils)))
3545 (for-each delete-file-recursively
3546 '("bin" ; bundled compiled Windows binaries"
3547 "source/Irrlicht/MacOSX"
3548 "source/Irrlicht/bzip2"
3549 "source/Irrlicht/jpeglib"
3550 "source/Irrlicht/libpng"
3551 "source/Irrlicht/lzma"
3552 "source/Irrlicht/zlib"))
3553 (delete-file "source/Irrlicht/glext.h")
3554 (delete-file "source/Irrlicht/glxext.h")
3555 (delete-file "source/Irrlicht/wglext.h")
3557 (build-system gnu-build-system)
3560 (modify-phases %standard-phases
3561 (add-after 'unpack 'chdir-to-source
3563 ;; The actual source is buried a few directories deep.
3564 (chdir "source/Irrlicht/")
3566 (add-after 'chdir-to-source 'fix-build-env
3567 (lambda* (#:key outputs #:allow-other-keys)
3568 (let ((out (assoc-ref outputs "out")))
3569 (substitute* "Makefile"
3570 (("INSTALL_DIR = /usr/local/lib")
3571 (string-append "INSTALL_DIR = " out "/lib"))
3572 ;; Add '-fpermissive' to the CXXFLAGS
3573 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3574 ;; The Makefile assumes these directories exist.
3575 (mkdir-p (string-append out "/lib"))
3576 (mkdir-p (string-append out "/include")))))
3577 (delete 'configure)) ; no configure script
3578 #:tests? #f ; no check target
3579 #:make-flags '("CC=gcc" "sharedlib")))
3582 ("libjpeg" ,libjpeg-turbo)
3585 ("libxxf86vm" ,libxxf86vm)
3587 (synopsis "3D game engine written in C++")
3589 "The Irrlicht Engine is a high performance realtime 3D engine written in
3590 C++. Features include an OpenGL renderer, extensible materials, scene graph
3591 management, character animation, particle and other special effects, support
3592 for common mesh file formats, and collision detection.")
3593 (home-page "http://irrlicht.sourceforge.net/")
3594 (license license:zlib)))
3597 ;; The latest release on SourceForge relies on an unreleased version of SFML
3598 ;; with a different API, so we take the latest version from the official
3599 ;; repository on Github.
3600 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3604 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3608 (url "https://github.com/thelaui/M.A.R.S.")
3610 (file-name (git-file-name name version))
3613 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3614 (patches (search-patches "mars-sfml-2.3.patch"
3615 "mars-install.patch"))))
3616 (build-system cmake-build-system)
3618 `(#:tests? #f ; There are no tests
3620 (modify-phases %standard-phases
3621 (add-after 'unpack 'fix-install-path
3623 (substitute* "src/CMakeLists.txt"
3624 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3625 "${CMAKE_INSTALL_PREFIX}/bin"))
3627 (add-after 'unpack 'fix-data-path
3628 (lambda* (#:key outputs #:allow-other-keys)
3629 (substitute* "src/System/settings.cpp"
3630 (("C_dataPath = \"./data/\";")
3631 (string-append "C_dataPath = \""
3632 (assoc-ref outputs "out")
3633 "/share/games/marsshooter/\";")))
3637 ("fribidi" ,fribidi)
3640 (home-page "http://mars-game.sourceforge.net/")
3641 (synopsis "2D space shooter")
3643 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3644 attractive physics. Players can battle each other or computer controlled
3645 enemies in different game modes such as space ball, death match, team death
3646 match, cannon keep, and grave-itation pit.")
3647 (license license:gpl3+))))
3656 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3657 "glk/implementations/glkterm-104.tar.gz"))
3660 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3661 (build-system gnu-build-system)
3662 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3664 '(#:tests? #f ; no check target
3666 (modify-phases %standard-phases
3668 (lambda* (#:key outputs #:allow-other-keys)
3669 (let* ((out (assoc-ref outputs "out"))
3670 (inc (string-append out "/include"))
3671 (lib (string-append out "/lib")))
3674 (install-file file inc))
3675 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3676 (install-file "libglkterm.a" lib))
3678 (delete 'configure)))) ; no configure script
3679 (home-page "http://www.eblong.com/zarf/glk/")
3680 (synopsis "Curses Implementation of the Glk API")
3682 "Glk defines a portable API for applications with text UIs. It was
3683 primarily designed for interactive fiction, but it should be suitable for many
3684 interactive text utilities, particularly those based on a command line.
3685 This is an implementation of the Glk library which runs in a terminal window,
3686 using the @code{curses.h} library for screen control.")
3687 (license (license:fsf-free "file://README"))))
3689 (define-public glulxe
3696 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3697 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3700 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3701 (build-system gnu-build-system)
3702 (inputs `(("glk" ,glkterm)))
3704 '(#:tests? #f ; no check target
3706 (let* ((glk (assoc-ref %build-inputs "glk")))
3707 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3708 (string-append "GLKLIBDIR=" glk "/lib")
3709 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3711 (modify-phases %standard-phases
3713 (lambda* (#:key outputs #:allow-other-keys)
3714 (let* ((out (assoc-ref outputs "out"))
3715 (bin (string-append out "/bin")))
3716 (install-file "glulxe" bin))
3718 (delete 'configure)))) ; no configure script
3719 (home-page "https://www.eblong.com/zarf/glulx/")
3720 (synopsis "Interpreter for Glulx VM")
3722 "Glulx is a 32-bit portable virtual machine intended for writing and
3723 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3724 some of the restrictions in the venerable Z-machine format. This is the
3725 reference interpreter, using the Glk API.")
3726 (license license:expat)))
3728 (define-public fifechan
3734 (uri (string-append "https://codeload.github.com/fifengine/"
3735 "fifechan/tar.gz/" version))
3736 (file-name (string-append name "-" version ".tar.gz"))
3739 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3740 (build-system cmake-build-system)
3743 ("sdl2-image" ,sdl2-image)
3746 '(#:tests? #f)) ; No included tests
3747 (home-page "https://fifengine.github.io/fifechan/")
3748 (synopsis "Cross platform GUI library specifically for games")
3750 "Fifechan is a lightweight cross platform GUI library written in C++
3751 specifically designed for games. It has a built in set of extendable GUI
3752 Widgets, and allows users to create more.")
3753 (license license:lgpl2.1+)))
3755 (define-public fifengine
3761 (uri (string-append "https://codeload.github.com/fifengine/"
3762 "fifengine/tar.gz/" version))
3763 (file-name (string-append name "-" version ".tar.gz"))
3764 (patches (search-patches "fifengine-swig-compat.patch"))
3767 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3768 (build-system cmake-build-system)
3770 `(#:tests? #f ; TODO The test running fails to run some tests.
3771 #:imported-modules ,(cons '(guix build python-build-system)
3772 %cmake-build-system-modules)
3773 #:modules ((guix build cmake-build-system)
3774 ((guix build python-build-system) #:select (guix-pythonpath))
3779 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3780 (assoc-ref %build-inputs "openal")
3782 (string-append "-DPYTHON_SITE_PACKAGES="
3783 (assoc-ref %outputs "out")
3785 ,(version-major+minor (package-version python))
3788 (modify-phases %standard-phases
3789 (add-after 'unpack 'patch-run_tests.py
3791 ;; Patch the test runner to exit with a status of 1 if any test
3792 ;; fails, to allow detecting failures.
3793 (substitute* "run_tests.py"
3794 (("ERROR\\. One or more tests failed!'\\)")
3795 "ERROR. One or more tests failed!')
3798 ;; Run tests after installation so that we can make use of the built
3801 (add-after 'install 'check
3802 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3804 (add-installed-pythonpath inputs outputs)
3805 ;; The tests require an X server.
3806 (system "Xvfb :1 &")
3807 (setenv "DISPLAY" ":1")
3808 (setenv "XDG_RUNTIME_DIR" "/tmp")
3810 (chdir ,(string-append "../" name "-" version))
3811 (invoke "python3" "run_tests.py" "-a")))))))
3814 ("sdl2-image" ,sdl2-image)
3815 ("sdl2-ttf" ,sdl2-ttf)
3816 ("tinyxml" ,tinyxml)
3820 ("libvorbis" ,libvorbis)
3822 ("fifechan" ,fifechan)
3824 ("python" ,python)))
3826 `(("python" ,python)
3828 ("xvfb" ,xorg-server)))
3830 `(("python-future" ,python-future)))
3831 (home-page "https://www.fifengine.net/")
3832 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3834 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3835 isometric game engine. Python bindings are included allowing users to create
3836 games using Python as well as C++.")
3837 (license license:lgpl2.1+)))
3839 (define-public fizmo
3845 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3846 "fizmo-" version ".tar.gz"))
3849 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3850 (build-system gnu-build-system)
3853 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3854 (ncurses (assoc-ref %build-inputs "ncurses")))
3855 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3857 `(("pkg-config" ,pkg-config)))
3859 `(("freetype" ,freetype)
3860 ("libjpeg" ,libjpeg-turbo)
3862 ("libsndfile" ,libsndfile)
3863 ("libxml2" ,libxml2)
3864 ("ncurses" ,ncurses)
3866 (home-page "https://fizmo.spellbreaker.org/")
3867 (synopsis "Z-machine interpreter")
3869 "Fizmo is a console-based Z-machine interpreter. It is used to play
3870 interactive fiction, also known as text adventures, which were implemented
3871 either by Infocom or created using the Inform compiler.")
3872 (license license:bsd-3)))
3874 (define-public gnugo
3880 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3884 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3885 (build-system gnu-build-system)
3887 `(("readline" ,readline)))
3889 `(#:configure-flags '("CFLAGS=-fcommon")))
3890 (synopsis "Play the game of Go")
3892 "GNU Go is a program that plays the game of Go, in which players
3893 place stones on a grid to form territory or capture other stones. While
3894 it can be played directly from the terminal, rendered in ASCII characters,
3895 it is also possible to play GNU Go with 3rd party graphical interfaces or
3896 even in Emacs. It supports the standard game storage format (SGF, Smart
3897 Game Format) and inter-process communication format (GMP, Go Modem
3899 (home-page "https://www.gnu.org/software/gnugo/")
3900 (license license:gpl3+)))
3902 (define-public extremetuxracer
3904 (name "extremetuxracer")
3909 "mirror://sourceforge/extremetuxracer/releases/"
3910 version "/etr-" version ".tar.xz"))
3913 "0hc3qd9hv3h9qm53yxgc7iy1v1wyajwxyvil4vqvzf9ascz9dnlj"))))
3914 (build-system gnu-build-system)
3916 `(("pkg-config" ,pkg-config)))
3920 (synopsis "High-speed arctic racing game based on Tux Racer")
3921 ;; Snarfed straight from Debian.
3922 (description "Extreme Tux Racer, or etracer as it is called for short, is
3923 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3924 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3925 avoiding the trees and rocks that will slow you down.
3927 Collect herrings and other goodies while sliding down the hill, but avoid fish
3930 This game is based on the GPL version of the famous game TuxRacer.")
3931 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3932 (license license:gpl2+)))
3934 (define-public supertuxkart
3936 (name "supertuxkart")
3941 (uri (string-append "https://github.com/supertuxkart/stk-code/"
3942 "releases/download/"
3943 version "/SuperTuxKart-" version "-src.tar.xz"))
3946 "1z9z13zarv28h4jrmjna5hr6m9266pm7c2kgiwhqls01k06ypazf"))
3947 (modules '((guix build utils)))
3949 ;; Delete bundled library sources
3951 ;; Supertuxkart uses modified versions of the Irrlicht engine
3952 ;; and the bullet library. The developers gave an explanation
3953 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3954 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3955 (for-each delete-file-recursively
3961 (build-system cmake-build-system)
3963 `(#:tests? #f ; no check target
3965 (list "-DUSE_WIIUSE=0"
3966 "-DUSE_SYSTEM_ENET=TRUE"
3967 "-DUSE_CRYPTO_OPENSSL=TRUE"
3968 ;; In order to use the system ENet library, IPv6 support (added in
3969 ;; SuperTuxKart version 1.1) must be disabled.
3971 ;; FIXME: needs libopenglrecorder
3972 "-DBUILD_RECORDER=0")))
3975 ("freetype" ,freetype)
3976 ("fribidi" ,fribidi)
3978 ("harfbuzz" ,harfbuzz)
3979 ("libvorbis" ,libvorbis)
3981 ("libxrandr" ,libxrandr)
3987 ;; The following input is needed to build the bundled and modified
3988 ;; version of irrlicht.
3990 ("libjpeg" ,libjpeg-turbo)
3991 ("openssl" ,openssl)))
3993 `(("pkg-config" ,pkg-config)))
3994 (home-page "https://supertuxkart.net/Main_Page")
3995 (synopsis "3D kart racing game")
3996 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3997 having fun over realism. You can play with up to 4 friends on one PC, racing
3998 against each other or just trying to beat the computer; single-player mode is
4000 (license license:gpl3+)))
4002 (define-public unknown-horizons
4004 (name "unknown-horizons")
4008 (uri (string-append "https://codeload.github.com/unknown-horizons/"
4009 "unknown-horizons/tar.gz/" version))
4010 (file-name (string-append name "-" version ".tar.gz"))
4013 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
4014 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
4015 (build-system python-build-system)
4018 (modify-phases %standard-phases
4019 (add-before 'build 'set-HOME
4021 (setenv "HOME" "/tmp")
4023 (add-after 'build 'build-extra
4025 (invoke "python3" "./setup.py" "build_i18n")
4026 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
4028 (add-after 'install 'patch
4029 (lambda* (#:key outputs #:allow-other-keys)
4030 (let ((out (assoc-ref outputs "out")))
4031 (substitute* (string-append out "/bin/unknown-horizons")
4032 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
4033 (string-append "os.chdir(\""
4034 (assoc-ref outputs "out")
4035 "/share/unknown-horizons\")"))))
4037 (add-before 'check 'fix-tests-with-pytest>=4
4039 (substitute* "tests/conftest.py"
4040 (("pytest_namespace")
4043 "get_closest_marker"))
4045 ;; TODO: Run GUI tests as well
4048 (substitute* "horizons/constants.py"
4049 (("IS_DEV_VERSION = False")
4050 "IS_DEV_VERSION = True"))
4051 (invoke "pytest" "tests")
4052 (substitute* "horizons/constants.py"
4053 (("IS_DEV_VERSION = True")
4054 "IS_DEV_VERSION = False"))
4057 `(("fifengine" ,fifengine)
4058 ("python:tk" ,python "tk")
4059 ("python-pillow" ,python-pillow)
4060 ("python-pyyaml" ,python-pyyaml)))
4062 `(("intltool" ,intltool)
4063 ("python-distro" ,python-distro)
4065 ;; Required for tests
4066 ("python-greenlet" ,python-greenlet)
4067 ("python-polib" ,python-polib)
4068 ("python-pytest" ,python-pytest)
4069 ("python-pytest-mock" ,python-pytest-mock)))
4070 (home-page "https://unknown-horizons.org/")
4071 (synopsis "Isometric realtime strategy, economy and city building simulation")
4073 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4074 on economy and city building. Expand your small settlement to a strong and
4075 wealthy colony, collect taxes and supply your inhabitants with valuable
4076 goods. Increase your power with a well balanced economy and with strategic
4077 trade and diplomacy.")
4079 license:gpl2+ ; Covers code
4080 license:expat ; tests/dummy.py, ext/polib.py
4081 license:cc-by-sa3.0 ; Covers some media content
4082 license:cc-by3.0 ; Covers some media content
4083 license:bsd-3)))) ; horizons/ext/speaklater.py
4085 (define-public gnujump
4091 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4095 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4096 (build-system gnu-build-system)
4099 (modify-phases %standard-phases
4101 'configure 'link-libm
4102 (lambda _ (setenv "LIBS" "-lm")))
4103 (add-after 'install 'create-desktop-entry
4104 (lambda* (#:key outputs #:allow-other-keys)
4105 (let* ((out (assoc-ref outputs "out"))
4106 (apps (string-append out "/share/applications")))
4108 (with-output-to-file
4109 (string-append apps "/gnujump.desktop")
4114 Comment=Jump up the tower to survive~@
4115 Exec=~a/bin/gnujump~@
4118 Categories=Game;ArcadeGame~%"
4124 ("sdl-image" ,sdl-image)
4125 ("sdl-mixer" ,sdl-mixer)))
4126 (home-page "http://gnujump.es.gnu.org/")
4128 "Game of jumping to the next floor, trying not to fall")
4130 "GNUjump is a simple, yet addictive game in which you must jump from
4131 platform to platform to avoid falling, while the platforms drop at faster rates
4132 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4133 falling, themeable graphics and sounds, and replays.")
4134 (license license:gpl3+)))
4136 (define-public wesnoth
4142 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4143 (version-major+minor version)
4144 "/wesnoth-" version "/"
4145 "wesnoth-" version ".tar.bz2"))
4148 "1qc4ylhc4ab51milclzhflpmzw6bg35knwqaj3b157700jkcniin"))))
4149 (build-system cmake-build-system)
4151 `(#:tests? #f)) ;no check target
4153 `(("gettext" ,gettext-minimal)
4154 ("pkg-config" ,pkg-config)))
4158 ("fribidi" ,fribidi)
4159 ("libvorbis" ,libvorbis)
4160 ("openssl" ,openssl)
4162 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4163 (home-page "https://www.wesnoth.org/")
4164 (synopsis "Turn-based strategy game")
4166 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4167 with several single player campaigns, and multiplayer games (both networked and
4170 Battle for control on a range of maps, using variety of units which have
4171 advantages and disadvantages against different types of attacks. Units gain
4172 experience and advance levels, and are carried over from one scenario to the
4174 (license license:gpl2+)))
4176 (define-public wesnoth-server
4179 (name "wesnoth-server")
4183 ("openssl" ,openssl)
4186 `(#:configure-flags '("-DENABLE_GAME=OFF")
4187 ,@(package-arguments wesnoth)))
4188 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4189 (description "This package contains a dedicated server for @emph{The
4190 Battle for Wesnoth}.")))
4192 (define-public gamine
4198 (uri (string-append "mirror://sourceforge/gamine-game/"
4199 "gamine-" version ".tar.gz"))
4202 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4203 (build-system gnu-build-system)
4205 `(("pkg-config" ,pkg-config)
4206 ("intltool" ,intltool)))
4208 `(("gstreamer" ,gstreamer)
4209 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4210 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4215 (let ((out (assoc-ref %outputs "out")))
4216 (list (string-append "PREFIX=" out)
4217 (string-append "SYSCONFDIR=" out "/etc")))
4219 (modify-phases %standard-phases
4222 'install 'wrap-gamine
4223 (lambda* (#:key outputs #:allow-other-keys)
4224 (let ((out (assoc-ref outputs "out"))
4225 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4226 (wrap-program (string-append out "/bin/gamine")
4227 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4229 (home-page "http://gamine-game.sourceforge.net/")
4230 (synopsis "Mouse and keyboard discovery for children")
4232 "Gamine is a game designed for young children who are learning to use the
4233 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4234 on the screen and keyboard to display letters.")
4235 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4236 (license license:gpl3)))
4238 (define-public manaplus
4241 (version "1.9.3.23")
4245 "https://repo.manaplus.org/manaplus/download/"
4246 version "/manaplus-" version ".tar.xz"))
4249 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4250 (build-system gnu-build-system)
4253 (list (string-append "CPPFLAGS=-I"
4254 (assoc-ref %build-inputs "sdl-union")
4257 `(("pkg-config" ,pkg-config)))
4261 ("libxml2" ,libxml2)
4263 ("sdl-union" ,(sdl-union))))
4264 (home-page "https://manaplus.org")
4265 (synopsis "Client for 'The Mana World' and similar games")
4267 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4268 fully supported client for @uref{http://www.themanaworld.org, The mana
4269 world}, @uref{http://evolonline.org, Evol Online} and
4270 @uref{http://landoffire.org, Land of fire}.")
4271 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4272 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4273 ;; The rest is under GPL2+.
4274 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4276 (define openttd-engine
4278 (name "openttd-engine")
4281 (origin (method url-fetch)
4282 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4283 version "/openttd-" version "-source.tar.xz"))
4286 "0v9f93lsdcv3ia28y8iihx9nj9zp6fpf5hkdrpl4ypw159d97fhg"))))
4287 (build-system cmake-build-system)
4289 `(("allegro" ,allegro)
4290 ("fontconfig" ,fontconfig)
4291 ("freetype" ,freetype)
4298 (synopsis "Transportation economics simulator game")
4299 (description "OpenTTD is a game in which you transport goods and
4300 passengers by land, water and air. It is a re-implementation of Transport
4301 Tycoon Deluxe with many enhancements including multiplayer mode,
4302 internationalization support, conditional orders and the ability to clone,
4303 autoreplace and autoupdate vehicles. This package only includes the game
4304 engine. When you start it you will be prompted to download a graphics set.")
4305 (home-page "https://www.openttd.org/")
4306 ;; This package is GPLv2, except for a few files located in
4307 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4308 ;; licenses. In addition, this software contains an in-game downloader
4309 ;; from which the user may find non-functional data licensed under
4311 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4313 (define openttd-opengfx
4315 (name "openttd-opengfx")
4320 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4321 version "/opengfx-" version "-source.tar.xz"))
4324 "0jgy8xv7r72m127qn09vr3rxhnbakl2990f7lldsk0d5d8n993vd"))))
4325 (build-system gnu-build-system)
4327 '(#:make-flags (list "CC=gcc"
4328 (string-append "INSTALL_DIR="
4329 (assoc-ref %outputs "out")
4330 "/share/games/openttd/baseset/opengfx"))
4332 (modify-phases %standard-phases
4335 ;; Make sure HOME is writable for GIMP.
4336 (setenv "HOME" (getcwd))
4338 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4339 ;; dos2unix from receiving its version information as a flag.
4340 (substitute* "Makefile"
4341 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4342 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4343 ;; The check phase for this package only checks the md5sums of the built
4344 ;; GRF files against the md5sums of the release versions. Because we use
4345 ;; different software versions than upstream does, some of the md5sums
4346 ;; are different. However, the package is still reproducible, it's safe
4347 ;; to disable this test.
4349 #:parallel-build? #f))
4350 (native-inputs `(("dos2unix" ,dos2unix)
4352 ("grfcodec" ,grfcodec)
4355 ("python" ,python-2)))
4356 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4357 (synopsis "Base graphics set for OpenTTD")
4359 "The OpenGFX project is an implementation of the OpenTTD base graphics
4360 set that aims to ensure the best possible out-of-the-box experience.
4362 OpenGFX provides you with...
4364 @item All graphics you need to enjoy OpenTTD.
4365 @item Uniquely drawn rail vehicles for every climate.
4366 @item Completely snow-aware rivers.
4367 @item Different river and sea water.
4368 @item Snow-aware buoys.
4370 (license license:gpl2)))
4372 (define openttd-opensfx
4374 (name "openttd-opensfx")
4380 "https://cdn.openttd.org/opensfx-releases/"
4381 version "/opensfx-" version "-source.tar.xz"))
4384 "06vycppqcxbfdqlxzna5xr303zgcmpcvj6ylw5b2ws0ssph2f1s0"))))
4385 (build-system gnu-build-system)
4387 `(("catcodec" ,catcodec)
4388 ("python" ,python-2)
4392 (list (string-append "DIR_NAME=opensfx")
4393 (string-append "TAR="
4394 (search-input-file %build-inputs "/bin/tar")))
4395 ;; The check phase only verifies md5sums, see openttd-opengfx.
4398 (modify-phases %standard-phases
4399 (add-after 'unpack 'make-reproducible
4401 ;; Remove the time dependency of the installed tarball by setting
4402 ;; the modification times if its members to 0.
4403 (substitute* "scripts/Makefile.def"
4404 (("-cf") " --mtime=@0 -cf"))
4407 (add-before 'build 'prebuild
4408 (lambda _ (invoke "make" "opensfx.cat")))
4410 (lambda* (#:key outputs #:allow-other-keys)
4411 (copy-recursively "opensfx"
4412 (string-append (assoc-ref outputs "out")
4413 "/share/games/openttd/baseset"
4415 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4416 (synopsis "Base sounds for OpenTTD")
4417 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4418 it possible to play OpenTTD without requiring the proprietary sound files from
4419 the original Transport Tycoon Deluxe.")
4420 (license license:cc-by-sa3.0)))
4422 (define openttd-openmsx
4424 (name "openttd-openmsx")
4430 "https://cdn.openttd.org/openmsx-releases/"
4431 version "/openmsx-" version "-source.tar.xz"))
4434 "0prjljsdgdxqdhhcriqskqha004ybs575xcjq80zha3pqnmrdk0k"))))
4435 (build-system gnu-build-system)
4437 `(("grfcodec" ,grfcodec)
4438 ("python" ,python-2)
4442 (list (string-append "DIR_NAME=openmsx")
4443 (string-append "TAR="
4444 (search-input-file %build-inputs "/bin/tar")))
4445 ;; The check phase only verifies md5sums, see openttd-opengfx.
4448 (modify-phases %standard-phases
4451 (lambda* (#:key outputs #:allow-other-keys)
4452 (copy-recursively "openmsx"
4453 (string-append (assoc-ref outputs "out")
4454 "/share/games/openttd/baseset"
4456 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4457 (synopsis "Music set for OpenTTD")
4458 (description "OpenMSX is a music set for OpenTTD which makes it possible
4459 to play OpenTTD without requiring the proprietary music from the original
4460 Transport Tycoon Deluxe.")
4461 (license license:gpl2)))
4463 (define-public openttd
4465 (inherit openttd-engine)
4469 (let* ((out (assoc-ref %outputs "out")))
4470 (list (string-append "-DCMAKE_INSTALL_BINDIR=" out "/bin")))
4472 (modify-phases %standard-phases
4473 (add-before 'check 'install-data
4474 (lambda* (#:key inputs outputs #:allow-other-keys)
4477 (copy-recursively (assoc-ref inputs input)
4478 (assoc-ref outputs "out")))
4479 (list "opengfx" "openmsx" "opensfx")))))))
4481 `(("timidity++" ,timidity++)
4482 ,@(package-inputs openttd-engine)))
4484 `(("opengfx" ,openttd-opengfx)
4485 ("openmsx" ,openttd-openmsx)
4486 ("opensfx" ,openttd-opensfx)
4487 ,@(package-native-inputs openttd-engine)))))
4489 (define openrct2-title-sequences
4491 (name "openrct2-title-sequences")
4496 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4497 version "/title-sequence-v" version ".zip"))
4498 (file-name (string-append name "-" version ".zip"))
4501 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4502 (build-system trivial-build-system)
4505 ("coreutils" ,coreutils)
4508 `(#:modules ((guix build utils))
4511 (use-modules (guix build utils))
4512 (let* ((out (assoc-ref %outputs "out"))
4513 (openrct2-title-sequences (string-append out
4514 "/share/openrct2/title-sequences"))
4515 (source (assoc-ref %build-inputs "source"))
4516 (unzip (search-input-file %build-inputs "/bin/unzip")))
4517 (copy-file source (string-append ,name "-" ,version ".zip"))
4518 (invoke unzip (string-append ,name "-" ,version ".zip"))
4519 (delete-file (string-append ,name "-" ,version ".zip"))
4520 (mkdir-p openrct2-title-sequences)
4521 (copy-recursively "."
4522 openrct2-title-sequences)
4524 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4525 (synopsis "Title sequences for OpenRCT2")
4527 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4528 (license license:gpl3+)))
4530 (define openrct2-objects
4532 (name "openrct2-objects")
4537 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4538 version "/objects.zip"))
4539 (file-name (string-append name "-" version ".zip"))
4541 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4542 (build-system trivial-build-system)
4545 ("coreutils" ,coreutils)
4548 `(#:modules ((guix build utils))
4551 (use-modules (guix build utils))
4552 (let* ((out (assoc-ref %outputs "out"))
4553 (openrct2-objects (string-append out
4554 "/share/openrct2/objects"))
4555 (source (assoc-ref %build-inputs "source"))
4556 (unzip (search-input-file %build-inputs "/bin/unzip")))
4557 (copy-file source (string-append ,name "-" ,version ".zip"))
4558 (invoke unzip (string-append ,name "-" ,version ".zip"))
4559 (delete-file (string-append ,name "-" ,version ".zip"))
4560 (mkdir-p openrct2-objects)
4561 (copy-recursively "."
4564 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4565 (synopsis "Objects for OpenRCT2")
4567 "openrct2-objects is a set of objects for OpenRCT2.")
4568 (license license:gpl3+)))
4570 (define-public openrct2
4578 (url "https://github.com/OpenRCT2/OpenRCT2")
4579 (commit (string-append "v" version))))
4580 (file-name (git-file-name name version))
4582 (base32 "01nanpbz5ycdhkyd46fjfvj18sw729l4vk7xg12600f9rjngjk76"))))
4583 (build-system cmake-build-system)
4585 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4586 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4587 #:tests? #f ; tests require network access
4589 (modify-phases %standard-phases
4590 (add-after 'unpack 'fix-usr-share-paths&add-data
4591 (lambda* (#:key inputs outputs #:allow-other-keys)
4592 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4593 (objects (assoc-ref inputs "openrct2-objects")))
4594 ;; Fix some references to /usr/share.
4595 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4597 (string-append (assoc-ref %outputs "out") "/share")))
4599 (string-append titles "/share/openrct2/title-sequences")
4602 (string-append objects "/share/openrct2/objects")
4604 (add-before 'configure 'get-rid-of-errors
4606 ;; Don't treat warnings as errors.
4607 (substitute* "CMakeLists.txt"
4610 (inputs `(("curl" ,curl)
4611 ("duktape" ,duktape)
4612 ("fontconfig" ,fontconfig)
4613 ("freetype" ,freetype)
4615 ("jansson" ,jansson)
4619 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4620 ("openrct2-objects" ,openrct2-objects)
4621 ("openrct2-title-sequences" ,openrct2-title-sequences)
4622 ("openssl" ,openssl)
4624 ("speexdsp" ,speexdsp)
4627 `(("pkg-config" ,pkg-config)))
4628 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4629 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4630 (description "OpenRCT2 is a free software re-implementation of
4631 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4632 maintaining an amusement park containing attractions, shops and facilities.
4634 Note that this package does @emph{not} provide the game assets (sounds,
4636 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4637 ;; regarding assets.
4638 (license license:gpl3+)))
4640 (define-public pinball
4643 (version "0.3.20201218")
4645 (origin (method git-fetch)
4647 (url "https://github.com/adoptware/pinball")
4649 (file-name (git-file-name name version))
4652 "056jk98v6zlkrj9vjm06p0pmpnav1x658n6qw10v5klg5gr6ldf7"))
4653 (patches (search-patches "pinball-system-ltdl.patch"))))
4654 (build-system gnu-build-system)
4656 `(("autoconf" ,autoconf)
4657 ("automake" ,automake)
4658 ("pkg-config" ,pkg-config)
4659 ("libtool" ,libtool)))
4662 ("libltdl" ,libltdl)
4665 ("sdl-image" ,sdl-image)
4666 ("sdl-mixer" ,sdl-mixer)))
4669 ;; Configure tries to use pkg-config, but falls short, so:
4670 (list (string-append "CPPFLAGS=-I"
4671 (assoc-ref %build-inputs "sdl-image")
4673 (assoc-ref %build-inputs "sdl-mixer")
4676 (modify-phases %standard-phases
4678 ;; The `bootstrap` script tries to call a script with
4679 ;; `/usr/bin/make` in the shebang, but ultimately does the same as
4680 ;; autoreconf would do, so just use that.
4682 (symlink "README.md" "README")
4683 (display (which "autoreconf")) (newline)
4684 (invoke "autoreconf" "-vif"))))))
4685 (home-page "http://pinball.sourceforge.net")
4686 (synopsis "Pinball simulator")
4687 (description "The Emilia Pinball Project is a pinball simulator. There
4688 are only two levels to play with, but they are very addictive.")
4689 (license license:gpl2)))
4691 (define-public pioneers
4697 (uri (string-append "https://downloads.sourceforge.net/pio/"
4698 "pioneers-" version ".tar.gz"))
4701 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4702 (build-system gnu-build-system)
4705 (modify-phases %standard-phases
4706 ;; Fixes https://issues.guix.gnu.org/47131.
4707 (add-after 'unpack 'patch-beep-path
4708 (lambda* (#:key inputs #:allow-other-keys)
4709 (substitute* "client/gtk/audio.c"
4711 (string-append "\"" (assoc-ref inputs "beep") "/bin/beep\"")))
4713 (inputs `(("avahi" ,avahi)
4716 ("librsvg" ,librsvg)))
4717 (native-inputs `(("intltool" ,intltool)
4718 ("itstool" ,itstool)
4719 ("libxml2" ,libxml2)
4720 ("pkg-config" ,pkg-config)))
4721 (synopsis "Board game inspired by The Settlers of Catan")
4722 (description "Pioneers is an emulation of the board game The Settlers of
4723 Catan. It can be played on a local network, on the internet, and with AI
4725 (home-page "http://pio.sourceforge.net/")
4726 (license license:gpl2+)))
4728 (define-public einstein
4734 (uri (string-append "mirror://debian/pool/main/e/"
4735 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4738 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4739 (patches (search-patches "einstein-build.patch"))))
4740 (build-system gnu-build-system)
4742 `(("freetype" ,freetype)
4743 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4746 `(("font-dejavu" ,font-dejavu)))
4748 `(#:tests? #f ; no check target
4750 (modify-phases %standard-phases
4752 (lambda* (#:key outputs inputs #:allow-other-keys)
4753 (let ((out (assoc-ref outputs "out"))
4754 (dejavu (search-input-file
4755 inputs "/share/fonts/truetype/DejaVuSans.ttf")))
4756 (substitute* "Makefile"
4757 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4758 ;; The patch above registers a free font for use by the binary,
4759 ;; but the font is copied during the compile phase into a
4760 ;; resources file, so we need to make the ttf file available.
4761 (symlink dejavu "res/DejaVuSans.ttf")
4763 (synopsis "Logic puzzle game")
4764 (description "The goal of this logic game is to open all cards in a 6x6
4765 grid, using a number of hints as to their relative position. The game idea
4766 is attributed to Albert Einstein.")
4767 ;; The original home page has disappeared.
4768 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4769 "http://games.flowix.com/en/index.html"))
4770 ;; License according to
4771 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4772 ;; The source code is a DFSG-sanitized tarball and does not contain any
4773 ;; license information.
4774 (license license:gpl3+)))
4776 (define-public powwow
4783 "https://www.hoopajoo.net/static/projects/powwow-"
4787 "1wkl6j91pp40aps2hhnsv0bndgq49smfffws4hqcn7847bpnwwm6"))))
4789 `(("ncurses" ,ncurses)))
4790 (build-system gnu-build-system)
4791 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4792 (synopsis "MUD and telnet client")
4794 "POWWOW is a client software which can be used for telnet as well as for
4795 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4796 the chat server psyced with the specific config located at
4797 http://lavachat.symlynx.com/unix/")
4798 (license license:gpl2+)))
4800 (define-public red-eclipse
4801 (let ((release "2.0.0")
4804 (name "red-eclipse")
4805 (version (if (zero? revision)
4807 (string-append release "-"
4808 (number->string revision))))
4813 (url "https://github.com/redeclipse/base")
4814 (commit (string-append "v" release))
4815 (recursive? #t))) ; for game data
4816 (file-name (git-file-name name version))
4818 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4819 (modules '((guix build utils)))
4821 ;; Remove proprietary libraries and other pre-compiled binaries.
4823 (delete-file-recursively "bin")
4825 (build-system gnu-build-system)
4827 `(#:tests? #f ; no check target
4828 #:make-flags (list "CC=gcc" "-Csrc"
4829 (string-append "INSTDIR="
4830 (assoc-ref %outputs "out") "/bin")
4831 (string-append "prefix="
4832 (assoc-ref %outputs "out")))
4834 (modify-phases %standard-phases
4835 (add-after 'unpack 'add-store-data-package-path-as-default
4836 (lambda* (#:key outputs #:allow-other-keys)
4837 (substitute* "src/engine/server.cpp"
4838 (("data = \"data\"")
4839 (string-append "data = \""
4840 (assoc-ref outputs "out")
4841 "/share/redeclipse/data\"")))
4843 (delete 'configure) ; no configure script
4844 (add-after 'set-paths 'set-sdl-paths
4845 (lambda* (#:key inputs #:allow-other-keys)
4848 (search-input-file inputs "/include/SDL2")
4849 ":" (or (getenv "CPATH") "")))))
4850 (add-after 'install 'copy-data
4851 (lambda* (#:key outputs #:allow-other-keys)
4852 (let ((out (assoc-ref outputs "out")))
4853 (copy-recursively "config"
4854 (string-append out "/config"))
4855 (copy-file "doc/examples/servinit.cfg"
4856 (string-append out "/config/servinit.cfg"))
4857 (copy-recursively "data"
4858 (string-append out "/share/redeclipse/data"))
4859 (mkdir-p (string-append out "/lib/redeclipse"))
4860 (symlink (string-append out "/share/redeclipse/data")
4861 (string-append out "/lib/redeclipse/data")))
4863 (add-after 'copy-data 'wrap-program
4864 (lambda* (#:key inputs outputs #:allow-other-keys)
4865 (let* ((out (assoc-ref outputs "out"))
4866 (bin (string-append out "/bin")))
4867 (with-directory-excursion bin
4868 (rename-file "redeclipse_linux"
4869 ".redeclipse_linux-real")
4870 (rename-file "redeclipse_server_linux"
4871 ".redeclipse_server_linux-real")
4872 (call-with-output-file "redeclipse_linux"
4874 (format port "#!~a/bin/sh
4875 # Run the thing from its home, otherwise it just bails out.
4877 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4878 (assoc-ref inputs "bash") ;implicit input
4880 (string-append bin))))
4881 (call-with-output-file "redeclipse_server_linux"
4883 (format port "#!~a/bin/sh
4884 # Run the thing from its home, otherwise it just bails out.
4886 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4887 (assoc-ref inputs "bash") ;implicit input
4889 (string-append bin))))
4890 (chmod "redeclipse_linux" #o555)
4891 (chmod "redeclipse_server_linux" #o555)))
4894 `(("pkg-config" ,pkg-config)))
4897 ("freetype" ,freetype)
4899 ("sdl-union" ,(sdl-union (list sdl2
4902 (home-page "https://redeclipse.net/")
4903 (synopsis "Arena shooter derived from the Cube 2 engine")
4905 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4906 Offering an innovative parkour system and distinct but all potent weapons,
4907 Red Eclipse provides fast paced and accessible gameplay.")
4908 ;; The engine is under Zlib; data files are covered by the other
4909 ;; licenses. More details at file:///doc/all-licenses.txt.
4910 (license (list license:expat
4916 license:public-domain
4917 license:silofl1.1)))))
4919 (define-public grue-hunter
4921 (name "grue-hunter")
4925 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4928 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4929 (build-system trivial-build-system) ; no Makefile.PL
4930 (arguments `(#:modules ((guix build utils))
4933 (use-modules (guix build utils))
4934 (use-modules (srfi srfi-1))
4936 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4937 (perl (string-append (assoc-ref %build-inputs
4940 (gzip (string-append (assoc-ref %build-inputs
4943 (tar (string-append (assoc-ref %build-inputs
4946 (out (assoc-ref %outputs "out"))
4947 (bin (string-append out "/bin"))
4948 (doc (string-append out
4949 "/share/doc/grue-hunter")))
4950 (copy-file tarball "grue-hunter.tar.gz")
4951 (invoke gzip "-d" "grue-hunter.tar.gz")
4952 (invoke tar "xvf" "grue-hunter.tar")
4955 (copy-file "grue-hunter/gh.pl"
4956 (string-append bin "/grue-hunter"))
4957 (patch-shebang (string-append bin "/grue-hunter")
4960 (install-file "grue-hunter/AGPLv3.txt" doc)
4963 (inputs `(("perl" ,perl)
4966 ("tarball" ,source)))
4967 (home-page "https://jxself.org/grue-hunter.shtml")
4968 (synopsis "Text adventure game")
4970 "Grue Hunter is a text adventure game written in Perl. You must make
4971 your way through an underground cave system in search of the Grue. Can you
4972 capture it and get out alive?")
4973 (license license:agpl3+)))
4975 (define-public lierolibre
4981 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4982 version "/+download/lierolibre-"
4986 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4988 (search-patches "lierolibre-check-unaligned-access.patch"
4989 "lierolibre-try-building-other-arch.patch"
4990 "lierolibre-remove-arch-warning.patch"
4991 "lierolibre-newer-libconfig.patch"
4992 "lierolibre-is-free-software.patch"))
4993 (modules '((guix build utils)))
4996 ;; Delete pre-compiled files.
4997 (delete-file "data/LIERO.CHR")
4998 (delete-file "data/LIERO.SND")
5000 (build-system gnu-build-system)
5002 `(("imagemagick" ,imagemagick)
5003 ("pkg-config" ,pkg-config)
5004 ("util-linux" ,util-linux)
5008 ("libconfig" ,libconfig)
5009 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
5011 (home-page "https://gitlab.com/lierolibre/lierolibre")
5012 (synopsis "Old-school earthworm action game")
5014 "lierolibre is an earthworm action game where you fight another player
5015 (or the computer) underground using a wide array of weapons.
5019 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
5020 and Game of Tag, plus AI-players without true intelligence!
5021 @item Dat nostalgia.
5022 @item Extensions via a hidden F1 menu:
5025 @item Game controller support
5026 @item Powerlevel palettes
5028 @item Ability to write game variables to plain text files.
5029 @item Ability to load game variables from both EXE and plain text files.
5030 @item Scripts to extract and repack graphics, sounds and levels.
5033 To switch between different window sizes, use F6, F7 and F8, to switch to
5034 fullscreen, use F5 or Alt+Enter.")
5035 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
5036 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
5038 (define-public tennix
5046 (url "https://repo.or.cz/tennix.git")
5047 (commit (string-append "tennix-" version))))
5048 (file-name (git-file-name name version))
5050 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
5051 ;; Remove non-free images.
5052 (modules '((guix build utils)))
5055 (for-each delete-file
5056 '("data/loc_training_camp.png"
5057 "data/loc_austrian_open.png"
5058 "data/loc_olympic_green_tennis.png"))
5060 (build-system gnu-build-system)
5062 `(#:tests? #f ;no test
5064 (modify-phases %standard-phases
5065 (add-after 'unpack 'fix-include
5067 (substitute* '("src/graphics.h" "src/sound.h")
5068 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
5069 (string-append "#include \"SDL/" header "\"")))
5070 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5071 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5072 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5074 (add-after 'unpack 'locate-install
5075 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5077 (substitute* "makefile"
5078 (("^CONFIGURE_OUTPUT :=.*" all)
5079 (string-append "INSTALL := install -c\n" all)))
5082 ;; The "configure" script is picky about the arguments it
5083 ;; gets. Call it ourselves.
5085 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5087 `(("which" ,which)))
5089 `(("python" ,python-wrapper)
5090 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5091 (home-page "http://icculus.org/tennix/")
5092 (synopsis "Play tennis against the computer or a friend")
5093 (description "Tennix is a 2D tennis game. You can play against the
5094 computer or against another player using the keyboard. The game runs
5095 in-window at 640x480 resolution or fullscreen.")
5096 ;; Project is licensed under GPL2+ terms. It includes images
5097 ;; released under Public Domain terms, and SDL_rotozoom, released
5098 ;; under LGPL2.1 terms.
5099 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5101 (define-public warzone2100
5103 (name "warzone2100")
5108 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5110 "/warzone2100_src.tar.xz"))
5112 (base32 "1f8a4kflslsjl8jrryhwg034h1yc9y3y1zmllgww3fqkz3aj4xik"))
5113 (modules '((guix build utils)))
5116 (with-directory-excursion "3rdparty"
5118 delete-file-recursively
5123 (build-system cmake-build-system)
5125 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5126 "-DWZ_ENABLE_BACKEND_VULKAN=off"
5127 "-DENABLE_DISCORD=off")
5128 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5130 (modify-phases %standard-phases
5131 (add-after 'unpack 'fix-utfcpp-include
5133 (substitute* "lib/framework/wzstring.cpp"
5134 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5136 (add-after 'unpack 'link-tests-with-qt
5138 (substitute* "tests/Makefile.am"
5139 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5140 (string-append prefix "$(QT5_LIBS) ")))
5142 (add-after 'unpack 'fix-ivis-linktest
5144 (substitute* "tests/ivis_linktest.cpp"
5145 (("iV_DrawTextRotated.*;")
5146 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5147 "100, 100, 0.0f, font_regular);")))
5149 (native-inputs `(("asciidoc" ,asciidoc)
5150 ("asciidoctor" ,ruby-asciidoctor)
5151 ("gettext" ,gettext-minimal)
5152 ("pkg-config" ,pkg-config)
5154 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5156 (inputs `(("curl" ,curl)
5157 ("fontconfig" ,fontconfig)
5158 ("freetype" ,freetype)
5160 ("harfbuzz" ,harfbuzz)
5161 ("libtheora" ,libtheora)
5162 ("libvorbis" ,libvorbis)
5163 ("libxrandr" ,libxrandr)
5164 ("libsodium" ,libsodium)
5165 ("miniupnpc" ,miniupnpc)
5168 ("qtbase" ,qtbase-5)
5169 ("qtscript" ,qtscript)
5170 ("openssl" ,openssl)
5173 ("utfcpp" ,utfcpp)))
5174 (home-page "https://wz2100.net")
5175 (synopsis "3D Real-time strategy and real-time tactics game")
5177 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5178 modes. An extensive tech tree with over 400 different technologies, combined
5179 with the unit design system, allows for a wide variety of possible units and
5181 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5182 (license (list license:bsd-3
5187 license:lgpl2.1+))))
5189 (define-public widelands
5197 (url "https://github.com/widelands/widelands")
5198 (commit (string-append "v" version))))
5199 (file-name (git-file-name name version))
5201 (base32 "1hw51binnbia15mj1gzx1cbk3cw9r91sisqci2qzcy4ahxiadnw0"))
5202 (modules '((guix build utils)))
5205 (delete-file-recursively "src/third_party/minizip")
5208 ;; Use system Minizip. Patch is provided by Debian, and discussed
5209 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5210 (search-patches "widelands-system-wide_minizip.patch"))))
5211 (build-system cmake-build-system)
5214 (let* ((out (assoc-ref %outputs "out"))
5215 (share (string-append out "/share")))
5216 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5217 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5218 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5219 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5220 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5221 ;; type. When used, no game data is installed!
5222 "-DCMAKE_BUILD_TYPE=Release"))
5224 (modify-phases %standard-phases
5225 (add-after 'unpack 'unbundle-fonts
5226 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5227 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5228 (lambda* (#:key inputs #:allow-other-keys)
5229 (with-directory-excursion "data/i18n/fonts"
5230 (for-each (lambda (font)
5231 (delete-file-recursively font)
5232 (symlink (string-append (assoc-ref inputs font)
5233 "/share/fonts/truetype")
5235 '("DejaVu" "MicroHei")))
5238 `(("gettext" ,gettext-minimal)
5239 ("python" ,python-wrapper)))
5246 ("minizip" ,minizip)
5247 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5249 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5250 ("DejaVu" ,font-dejavu)
5251 ("MicroHei" ,font-wqy-microhei)))
5252 (home-page "https://www.widelands.org/")
5253 (synopsis "Fantasy real-time strategy game")
5255 "In Widelands, you are the regent of a small clan. You start out with
5256 nothing but your headquarters, where all your resources are stored.
5258 In the course of the game, you will build an ever growing settlement. Every
5259 member of your clan will do his or her part to produce more resources---wood,
5260 food, iron, gold and more---to further this growth. The economic network is
5261 complex and different in the five tribes (Barbarians, Empire, Atlanteans,
5262 Frisians and Amazons).
5264 As you are not alone in the world, you will meet other clans sooner or later.
5265 Some of them may be friendly and you may eventually trade with them. However,
5266 if you want to rule the world, you will have to train soldiers and fight.
5268 Widelands offers single-player mode with different campaigns; the campaigns
5269 all tell stories of tribes and their struggle in the Widelands universe!
5270 However, settling really starts when you unite with friends over the Internet
5271 or LAN to build up new empires together---or to crush each other in the dusts
5272 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5273 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5274 ;; different licenses.
5275 (license (list license:gpl2+
5276 license:expat ;src/third_party/eris
5277 license:silofl1.1 ;Widelands.ttf
5278 license:cc-by-sa3.0)))) ;some music files
5280 (define-public widelands-21
5284 (properties `((superseded . ,widelands)))))
5286 (define-public starfighter
5288 (name "starfighter")
5293 "https://github.com/pr-starfighter/starfighter/releases"
5294 "/download/v" version "/starfighter-"
5295 version "-src.tar.gz"))
5298 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5299 (build-system gnu-build-system)
5301 `(("pkg-config" ,pkg-config)))
5305 ("sdl2-image" ,sdl2-image)
5306 ("sdl2-mixer" ,sdl2-mixer)
5307 ("sdl2-ttf" ,sdl2-ttf)))
5308 (home-page "https://pr-starfighter.github.io/")
5309 (synopsis "2D scrolling shooter game")
5311 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5312 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5313 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5314 way, you will encounter new foes, make new allies, and assist local rebels
5315 in strikes against the evil corporation.")
5316 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5317 (license (list license:gpl3+
5321 license:public-domain))))
5323 (define-public chromium-bsu
5325 (name "chromium-bsu")
5326 (version "0.9.16.1")
5329 (uri (string-append "mirror://sourceforge/chromium-bsu"
5330 "/Chromium B.S.U. source code/"
5331 "chromium-bsu-" version ".tar.gz"))
5334 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5335 (build-system gnu-build-system)
5336 (native-inputs `(("pkg-config" ,pkg-config)))
5337 (inputs `(("gettext" ,gettext-minimal)
5339 ("quesoglc" ,quesoglc)
5340 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5341 (home-page "http://chromium-bsu.sourceforge.net/")
5342 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5344 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5345 are responsible for delivering supplies to the troops on the front line. Your
5346 ship has a small fleet of robotic fighters which you control from the relative
5347 safety of the Chromium vessel.")
5348 ;; Clarified Artistic License for everything but sound, which is covered
5349 ;; by the Expat License.
5350 (license (list license:clarified-artistic license:expat))))
5352 (define-public tuxpaint
5355 (version "0.9.23") ;keep VER_DATE below in sync
5359 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5360 version "/tuxpaint-" version ".tar.gz"))
5363 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5364 (modules '((guix build utils)))
5367 ;; Remove win32 directory which contains binary dll's and the
5368 ;; deprecated visualc directory.
5369 (for-each delete-file-recursively '("win32" "visualc"))
5370 (substitute* "Makefile"
5371 ;; Do not rely on $(GPERF) being an absolute file name
5372 (("\\[ -x \\$\\(GPERF\\) \\]")
5373 "$(GPERF) --version >/dev/null 2>&1"))
5375 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5376 (build-system gnu-build-system)
5379 ("pkg-config" ,pkg-config)))
5382 ("fribidi" ,fribidi)
5383 ("gettext" ,gettext-minimal)
5385 ("librsvg" ,librsvg)
5386 ("libpaper" ,libpaper)
5388 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5389 ;; TODO: Use system fonts rather than those in data/fonts
5391 `(#:make-flags `("VER_DATE=2018-09-02"
5392 "GPERF=gperf" "CC=gcc"
5393 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5394 ,(string-append "PREFIX=" %output)
5395 "KDE_PREFIX=$(PREFIX)/share/applications"
5396 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5397 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5398 #:parallel-build? #f ;fails on some systems
5399 #:tests? #f ;No tests
5400 #:phases (modify-phases %standard-phases
5401 (delete 'configure) ;no configure phase
5402 (add-before 'install 'no-sys-cache
5403 (lambda _ ;do not rebuild system conf cache
5404 (substitute* "Makefile"
5405 (("kbuildsycoca4") ""))
5407 (add-after 'install 'fix-import
5408 (lambda* (#:key inputs outputs #:allow-other-keys)
5409 (let* ((out (assoc-ref outputs "out"))
5410 (net (assoc-ref inputs "netpbm"))
5411 (tpi (string-append out "/bin/tuxpaint-import")))
5413 ;; Point to installation prefix so that the default
5414 ;; configure file is found.
5415 (("/usr/local") out))
5416 ;; tuxpaint-import uses a bunch of programs from
5417 ;; netpbm, so make sure it knows where those are
5420 (,(string-append net "/bin"))))))))))
5421 (native-search-paths
5422 (list (search-path-specification
5423 (variable "TUXPAINT_STAMPS_PATH")
5424 (files '("share/tuxpaint/stamps")))))
5425 (home-page "http://www.tuxpaint.org")
5426 (synopsis "Drawing software for children")
5428 "Tux Paint is a free drawing program designed for young children (kids
5429 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5430 and an encouraging cartoon mascot who helps guide children as they use the
5431 program. It provides a blank canvas and a variety of drawing tools to help
5432 your child be creative.")
5433 (license license:gpl2+)))
5435 (define-public tuxpaint-stamps
5437 (name "tuxpaint-stamps")
5438 (version "2018.09.01")
5442 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5443 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5444 "/tuxpaint-stamps-" version ".tar.gz"))
5447 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5448 (build-system trivial-build-system)
5453 `(#:modules ((guix build utils))
5455 (use-modules (guix build utils))
5458 (assoc-ref %build-inputs "tar") "/bin" ":"
5459 (assoc-ref %build-inputs "gzip") "/bin"))
5460 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5461 (chdir (string-append ,name "-" ,version))
5462 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5464 (copy-recursively "stamps" dir))
5466 (home-page (package-home-page tuxpaint))
5467 (synopsis "Stamp images for Tux Paint")
5469 "This package contains a set of \"Rubber Stamp\" images which can be used
5470 with the \"Stamp\" tool within Tux Paint.")
5471 (license license:gpl2+)))
5473 (define-public tuxpaint-config
5475 (name "tuxpaint-config")
5476 (version "0.0.14") ;keep VER_DATE below in sync
5480 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5481 version "/tuxpaint-config-" version ".tar.gz"))
5484 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5485 (build-system gnu-build-system)
5487 `(("gettext" ,gettext-minimal)))
5490 ("libpaper" ,libpaper)
5491 ;; TODO: Should the following be propagated by fltk?
5496 `(#:make-flags `("VER_DATE=2018-09-01"
5497 "CONFDIR=/etc/tuxpaint" ;don't write to store
5498 ,(string-append "PREFIX=" %output)
5499 "GNOME_PREFIX=$(PREFIX)")
5500 #:parallel-build? #f ;race conditions
5501 #:tests? #f ;no tests
5502 #:phases (modify-phases %standard-phases
5503 (delete 'configure) ;no configure phase
5504 (add-before 'install 'gzip-no-name
5506 (substitute* "Makefile"
5507 ;; tuxpaint-config compresses its own documentation;
5508 ;; make sure it uses flags for reproducibility.
5509 (("gzip") "gzip --no-name"))))
5510 (add-before 'install 'make-install-dirs
5511 (lambda* (#:key outputs #:allow-other-keys)
5512 (let ((out (assoc-ref outputs "out")))
5513 (mkdir-p (string-append out "/bin"))
5515 (home-page (package-home-page tuxpaint))
5516 (synopsis "Configure Tux Paint")
5518 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5519 (license license:gpl2))) ;no "or later" present
5521 (define-public supertux
5527 (uri (string-append "https://github.com/SuperTux/supertux/"
5528 "releases/download/v" version "/SuperTux-v"
5529 version "-Source.tar.gz"))
5530 (file-name (string-append name "-" version ".tar.gz"))
5533 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5535 (search-patches "supertux-unbundle-squirrel.patch"))))
5538 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5539 "-DUSE_SYSTEM_PHYSFS=ON")
5541 (modify-phases %standard-phases
5542 (add-after 'unpack 'patch-squirrel-path
5543 (lambda* (#:key inputs #:allow-other-keys)
5544 (let ((squirrel (assoc-ref inputs "squirrel")))
5545 (substitute* "CMakeLists.txt"
5546 (("set\\(SQUIRREL_PREFIX.*")
5547 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5548 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5549 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5550 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5552 (build-system cmake-build-system)
5553 (inputs `(("sdl2" ,sdl2)
5554 ("sdl2-image" ,sdl2-image)
5555 ("sdl2-mixer" ,sdl2-mixer)
5559 ("libvorbis" ,libvorbis)
5564 ("freetype" ,freetype)
5565 ("squirrel" ,squirrel)))
5567 `(("pkg-config" ,pkg-config)))
5568 (synopsis "2D platformer game")
5569 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5570 a style similar to the original Super Mario games.")
5571 (home-page "https://supertux.org/")
5572 (license license:gpl3+)))
5574 (define-public tintin++
5581 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5582 (string-drop-right version 1)
5583 "/tintin-" version ".tar.gz"))
5585 (base32 "1xdim1ckq1kgjyxmghcnvnahq1llv2y70gz3yyvzbli63vpqk4mk"))))
5587 `(("gnutls" ,gnutls)
5589 ("readline" ,readline)
5592 '(#:tests? #f ; no test suite
5594 (modify-phases %standard-phases
5595 ;; The source is in tt/src.
5596 (add-before 'configure 'chdir
5600 (build-system gnu-build-system)
5601 (home-page "https://tintin.mudhalla.net/")
5602 (synopsis "MUD client")
5604 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5605 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5606 options used by MUDs, as well as those required to login via telnet on
5607 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5608 (license license:gpl3+)))
5615 (origin (method git-fetch)
5617 (url "https://github.com/sgimenez/laby")
5618 (commit (string-append name "-" version))))
5619 (file-name (git-file-name name version))
5622 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5623 (patches (search-patches "laby-make-install.patch"))))
5624 (build-system gnu-build-system)
5626 `(("lablgtk" ,lablgtk)
5628 ("ocaml-findlib" ,ocaml-findlib)
5629 ("ocamlbuild" ,ocamlbuild)))
5632 (modify-phases %standard-phases
5634 (add-before 'build 'allow-unsafe-strings
5635 ;; Fix a build failure with ocaml >=4.06.0.
5636 ;; See <https://github.com/sgimenez/laby/issues/53>.
5638 (setenv "OCAMLPARAM" "safe-string=0,_")
5640 (add-before 'build 'set-library-path
5641 (lambda* (#:key inputs #:allow-other-keys)
5642 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5643 (setenv "LD_LIBRARY_PATH"
5644 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5645 #:tests? #f ; no 'check' target
5647 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5648 (home-page "https://sgimenez.github.io/laby/")
5649 (synopsis "Programming game")
5650 (description "Learn programming, playing with ants and spider webs ;-)
5651 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5652 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5653 programmers may also add their own favorite language.")
5654 (license license:gpl3+)))
5656 (define-public bambam
5664 (url "https://github.com/porridge/bambam")
5665 (commit (string-append "v" version))))
5666 (file-name (git-file-name name version))
5668 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5669 (build-system python-build-system)
5671 `(#:tests? #f ; no tests
5673 (modify-phases %standard-phases
5674 (delete 'build) ; nothing to build
5676 (lambda* (#:key outputs #:allow-other-keys)
5677 (let* ((out (assoc-ref outputs "out"))
5678 (bin (string-append out "/bin"))
5679 (share (string-append out "/share")))
5681 (copy-file "bambam.py" (string-append bin "/bambam"))
5682 (install-file "bambam.6" (string-append share "/man/man6"))
5683 (copy-recursively "data" (string-append share "/bambam/data")))
5686 `(("python-pygame" ,python-pygame)))
5687 (home-page "https://github.com/porridge/bambam")
5688 (synopsis "Keyboard mashing and doodling game for babies")
5689 (description "Bambam is a simple baby keyboard (and gamepad) masher
5690 application that locks the keyboard and mouse and instead displays bright
5691 colors, pictures, and sounds.")
5692 (license license:gpl3+)))
5694 (define-public mrrescue
5701 "https://github.com/SimonLarsen/mrrescue/releases/"
5702 "download/" version "/mrrescue" version ".love"))
5703 (file-name (string-append name "-" version ".love"))
5706 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5707 (build-system trivial-build-system)
5709 `(#:modules ((guix build utils))
5712 (use-modules (guix build utils))
5713 (let* ((out (assoc-ref %outputs "out"))
5714 (script (string-append out "/bin/" ,name))
5715 (data (string-append out "/share/" ,name))
5716 (source (assoc-ref %build-inputs "source"))
5717 (unzip (search-input-file %build-inputs "/bin/unzip"))
5718 (patch (search-input-file %build-inputs "/bin/patch"))
5719 (bash (search-input-file %build-inputs "/bin/bash"))
5720 (love (search-input-file %build-inputs "/bin/love")))
5722 (mkdir-p (dirname script))
5723 (with-output-to-file script
5725 (format #t "#!~a~%" bash)
5726 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5727 (chmod script #o755)
5729 ;; The better way to package this game would be to install *only* the
5730 ;; script above, pointing to the unextracted .love file in the store.
5731 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5732 ;; Instead of extracting the .love file, patching it, and re-zipping
5733 ;; it to the store, simply point the script to the extracted patched
5734 ;; data directory directly.
5736 (with-directory-excursion data
5737 (invoke unzip source)
5738 (invoke patch "-p1" "-i"
5739 (assoc-ref %build-inputs "love-11.patch")))
5744 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5748 (home-page "https://tangramgames.dk/games/mrrescue")
5749 (synopsis "Arcade-style fire fighting game")
5751 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5752 civilians from burning buildings. The game features fast-paced fire
5753 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5754 throwing people around in pseudo-randomly generated buildings.")
5755 (license (list license:zlib ; for source code
5756 license:cc-by-sa3.0)))) ; for graphics and music assets
5758 (define-public hyperrogue
5762 ;; When updating this package, be sure to update the "hyperrogue-data"
5763 ;; origin in native-inputs.
5767 "https://www.roguetemple.com/z/hyper/hyperrogue"
5768 (string-join (string-split version #\.) "")
5772 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5773 (build-system gnu-build-system)
5775 `(#:tests? #f ; no check target
5776 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5777 "HYPERROGUE_USE_PNG=1")
5779 (modify-phases %standard-phases
5780 (add-after 'set-paths 'set-sdl-paths
5781 (lambda* (#:key inputs #:allow-other-keys)
5783 (string-append (or (getenv "CPATH") "") ":"
5784 (assoc-ref inputs "sdl-union")
5787 (lambda* (#:key inputs outputs #:allow-other-keys)
5788 (let* ((out (assoc-ref outputs "out"))
5789 (share-dir (string-append out "/share/hyperrogue"))
5790 (dejavu-dir (string-append
5791 (assoc-ref inputs "font-dejavu")
5792 "/share/fonts/truetype"))
5793 (dejavu-font "DejaVuSans-Bold.ttf")
5794 (music-file "hyperrogue-music.txt"))
5795 ;; Fix font and music paths.
5796 (substitute* "basegraph.cpp"
5798 (string-append dejavu-dir "/" dejavu-font)))
5799 (substitute* music-file
5801 (string-append share-dir "/sounds/")))
5802 (substitute* "sound.cpp"
5803 (("musicfile = \"\"")
5804 (string-append "musicfile = \""
5805 share-dir "/" music-file "\"")))
5806 ;; Disable build machine CPU optimizations and warnings treated
5808 (substitute* "Makefile"
5809 (("-march=native") "")
5813 (lambda* (#:key inputs outputs #:allow-other-keys)
5814 (let* ((out (assoc-ref outputs "out"))
5815 (bin (string-append out "/bin"))
5816 (share-dir (string-append out "/share/hyperrogue")))
5818 (install-file "hyperrogue" bin)
5819 (install-file "hyperrogue-music.txt" share-dir))
5821 (add-after 'install 'install-data
5822 (lambda* (#:key inputs outputs #:allow-other-keys)
5823 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5824 (out (assoc-ref outputs "out"))
5825 (sounds (string-append out "/share/hyperrogue/sounds"))
5826 (unzip (search-input-file inputs "/bin/unzip")))
5827 ;; Extract media license information into sounds directory.
5828 (invoke unzip "-j" data
5831 (string-join (string-split ,version #\.) "")
5832 "/sounds/credits.txt") "-d" sounds)
5833 ;; Extract sounds and music into sounds directory.
5834 (invoke "unzip" "-j" data
5837 (string-join (string-split ,version #\.) "")
5838 "/*.ogg") "-d" sounds)))))))
5840 `(("hyperrogue-data"
5845 "https://www.roguetemple.com/z/hyper/hyperrogue"
5846 (string-join (string-split version #\.) "")
5850 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5853 `(("font-dejavu" ,font-dejavu)
5856 ("sdl-union" ,(sdl-union (list sdl
5860 (home-page "https://www.roguetemple.com/z/hyper/")
5861 (synopsis "Non-euclidean graphical rogue-like game")
5863 "HyperRogue is a game in which the player collects treasures and fights
5864 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5865 plane and not in euclidean space.
5867 In HyperRogue, the player can move through different parts of the world, which
5868 are home to particular creatures and may be subject to their own rules of
5871 While the game can use ASCII characters to display the the classical rogue
5872 symbols, it still needs graphics to render the non-euclidean world.")
5873 (license (list license:bsd-3 ; glew.c, mtrand.*
5874 license:cc-by-sa3.0 ; music
5875 license:cc-by-sa4.0 ; sounds
5877 license:public-domain ; direntx.*, some sounds
5878 license:zlib ; savepng.*
5879 license:gpl2+)))) ; remaining files
5881 (define-public kobodeluxe
5887 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5888 version ".tar.bz2"))
5891 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5892 (patches (search-patches
5893 "kobodeluxe-const-charp-conversion.patch"
5894 "kobodeluxe-enemies-pipe-decl.patch"
5895 "kobodeluxe-graphics-window-signed-char.patch"
5896 "kobodeluxe-manpage-minus-not-hyphen.patch"
5897 "kobodeluxe-midicon-segmentation-fault.patch"
5898 "kobodeluxe-paths.patch"))))
5899 (build-system gnu-build-system)
5902 (list (string-append "CPPFLAGS=-I"
5903 (assoc-ref %build-inputs "sdl-union")
5907 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5908 (synopsis "Shooter with space station destruction")
5910 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5911 for Un*x systems with X11.")
5912 (home-page "http://olofson.net/kobodl/")
5913 (license license:gpl2+)))
5915 (define-public freeciv
5922 (uri (list (string-append
5923 "http://files.freeciv.org/stable/freeciv-"
5926 "mirror://sourceforge/freeciv/Freeciv%20"
5927 (version-major+minor version) "/" version
5928 "/freeciv-" version ".tar.bz2")))
5930 (base32 "0ngcj59ak71i6m8yvbr0g3aryzpw1scalpdzgfqsq4mf9p3y2r1f"))))
5931 (build-system gnu-build-system)
5934 ("cyrus-sasl" ,cyrus-sasl)
5936 ("sdl-mixer" ,sdl-mixer)
5939 `(("pkg-config" ,pkg-config)))
5940 (home-page "http://www.freeciv.org/")
5941 (synopsis "Turn-based empire building strategy game")
5942 (description "Freeciv is a turn-based empire building strategy game
5943 inspired by the history of human civilization. The game commences in
5944 prehistory and your mission is to lead your tribe from the Stone Age
5945 into the Space Age.")
5946 (license license:gpl2+)))
5948 (define-public no-more-secrets
5950 (name "no-more-secrets")
5956 (url "https://github.com/bartobri/no-more-secrets")
5957 (commit (string-append "v" version))))
5958 (file-name (git-file-name name version))
5960 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5961 (build-system gnu-build-system)
5964 #:make-flags (list "CC=gcc" "all-ncurses"
5965 (string-append "prefix="
5966 (assoc-ref %outputs "out")))
5968 (modify-phases %standard-phases
5969 (delete 'configure))))
5971 `(("ncurses" ,ncurses)))
5972 (home-page "https://github.com/bartobri/no-more-secrets")
5973 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5975 "@code{No More Secrets} provides a command line tool called \"nms\"
5976 that recreates the famous data decryption effect seen on screen in the 1992
5979 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5980 it will apply the hollywood effect, initially showing encrypted data, then
5981 starting a decryption sequence to reveal the original plaintext characters.")
5982 (license license:expat)))
5984 (define-public megaglest-data
5986 (name "megaglest-data")
5992 "https://github.com/MegaGlest/megaglest-data"
5993 "/releases/download/" version "/megaglest-data-"
5997 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5998 (build-system cmake-build-system)
6001 (home-page "https://megaglest.org/")
6002 (synopsis "Data files for MegaGlest")
6003 (description "This package contains the data files required for MegaGlest.")
6004 (license license:cc-by-sa3.0)))
6006 (define-public megaglest
6014 "https://github.com/MegaGlest/megaglest-source"
6015 "/releases/download/" version "/megaglest-source-"
6019 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
6020 (build-system cmake-build-system)
6023 ("fontconfig" ,fontconfig)
6026 ("libjpeg-turbo" ,libjpeg-turbo)
6027 ("megaglest-data" ,megaglest-data)
6029 ("miniupnpc" ,miniupnpc)
6031 ("libircclient" ,libircclient)
6033 ("libvorbis" ,libvorbis)
6036 ("wxwidgets" ,wxwidgets)))
6038 `(("cppunit" ,cppunit)
6039 ("pkg-config" ,pkg-config)))
6042 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
6043 (assoc-ref %build-inputs "megaglest-data")
6045 "-DBUILD_MEGAGLEST_TESTS=ON")
6047 (modify-phases %standard-phases
6048 (add-after 'unpack 'fix-ini-search-path
6049 (lambda* (#:key outputs #:allow-other-keys)
6050 (substitute* "source/glest_game/global/config.cpp"
6051 (("/usr/share/megaglest/")
6052 (string-append (assoc-ref outputs "out")
6053 "/share/megaglest/"))))))
6054 #:test-target "megaglest_tests"))
6055 (home-page "https://megaglest.org/")
6056 (synopsis "3D real-time strategy (RTS) game")
6057 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
6058 game, where you control the armies of one of seven different factions: Tech,
6059 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
6060 (license license:gpl2+)))
6062 (define-public freegish
6063 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
6067 (version (string-append "0-" revision "." (string-take commit 9)))
6071 (url "https://github.com/freegish/freegish")
6073 (file-name (git-file-name name version))
6076 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6077 (modules '((guix build utils)))
6078 ;; The audio files in the "music" directory are licensed under
6079 ;; CC-BY-NC, so we delete them.
6082 (delete-file-recursively "music")
6084 (build-system cmake-build-system)
6086 `(#:tests? #f ; no tests included
6088 (list "-DCMAKE_INSTALL_FHS=ON")
6090 (modify-phases %standard-phases
6091 (add-after 'unpack 'set-DATAPATH
6092 (lambda* (#:key outputs #:allow-other-keys)
6093 (substitute* "CMakeLists.txt"
6094 (("^option\\(INSTALL_FHS" line)
6095 (string-append "add_definitions(-DDATAPATH=\""
6096 (assoc-ref outputs "out") "/share/freegish\")\n"
6100 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6102 ("libvorbis" ,libvorbis)
6107 (home-page "https://github.com/freegish/freegish")
6108 (synopsis "Side-scrolling physics platformer with a ball of tar")
6109 (description "In FreeGish you control Gish, a ball of tar who lives
6110 happily with his girlfriend Brea, until one day a mysterious dark creature
6111 emerges from a sewer hole and pulls her below ground.")
6112 ;; The textures are available under the Expat license. All other assets
6113 ;; (including levels) are covered under CC-BY-SA or public domain. The
6114 ;; source code is under GPLv2+.
6115 (license (list license:gpl2+
6117 license:public-domain
6118 license:cc-by-sa3.0)))))
6120 (define-public cdogs-sdl
6128 (url "https://github.com/cxong/cdogs-sdl")
6130 (file-name (git-file-name name version))
6132 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6133 (build-system cmake-build-system)
6136 (list (string-append "-DCDOGS_DATA_DIR="
6137 (assoc-ref %outputs "out")
6138 "/share/cdogs-sdl/"))))
6140 `(("pkg-config" ,pkg-config)))
6145 ("sdl2-image" ,sdl2-image)
6146 ("sdl2-mixer" ,sdl2-mixer)))
6147 (home-page "https://cxong.github.io/cdogs-sdl/")
6148 (synopsis "Classic overhead run-and-gun game")
6149 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6150 supporting up to 4 players in co-op and deathmatch modes. Customize your
6151 player, choose from many weapons, and blast, slide and slash your way through
6152 over 100 user-created campaigns.")
6153 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6154 ;; CC0/CC-BY/CC-BY-SA for assets.
6155 (license (list license:gpl2+
6160 license:cc-by-sa3.0))))
6168 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6169 version "/kiki-" version "-src.tgz"))
6172 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6173 (modules '((guix build utils)))
6176 (for-each delete-file (find-files "." "\\.dll$"))
6179 (search-patches "kiki-level-selection-crash.patch"
6180 "kiki-makefile.patch"
6181 "kiki-missing-includes.patch"
6182 "kiki-portability-64bit.patch"))))
6183 (build-system gnu-build-system)
6185 `(#:tests? #f ; there are no tests
6186 #:make-flags '("CXX=g++")
6188 (modify-phases %standard-phases
6190 (lambda* (#:key inputs outputs #:allow-other-keys)
6191 (setenv "CPLUS_INCLUDE_PATH"
6193 (search-input-directory inputs "include/SDL") ":"
6194 (search-input-directory inputs "include/python2.7")
6195 ":" (or (getenv "CPLUS_INCLUDE_PATH") "")))
6196 (substitute* "src/main/main.cpp"
6197 (("#include <SDL.h>" line)
6198 (string-append line "
6199 #define K_INCLUDE_GLUT
6200 #include \"KIncludeTools.h\""))
6201 (("// initialize SDL" line)
6202 (string-append "glutInit(&argc,argv);\n" line)))
6203 (substitute* "src/main/KikiController.cpp"
6204 (("getenv\\(\"KIKI_HOME\"\\)")
6205 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6206 (substitute* "linux/Makefile"
6208 (string-append line " -fpermissive"))
6209 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6211 (string-append "PYTHONHOME = "
6212 (assoc-ref inputs "python")
6214 (("\\$\\(GLLIBS\\)" line)
6215 (string-append line " -lm -lpython2.7")))
6216 (substitute* "src/main/KikiPythonWidget.h"
6217 (("#define __KikiPythonWidget" line)
6218 (string-append line "\n#include \"KikiPython.h\"")))
6220 (add-before 'build 'build-kodilib
6221 (lambda* (#:key make-flags #:allow-other-keys)
6222 (with-directory-excursion "kodilib/linux"
6223 (apply invoke "make" make-flags))))
6224 (add-after 'build-kodilib 'chdir
6225 (lambda _ (chdir "linux") #t))
6227 (lambda* (#:key outputs #:allow-other-keys)
6228 (let* ((out (assoc-ref outputs "out"))
6229 (bin (string-append out "/bin"))
6230 (share (string-append out "/share/kiki")))
6233 (install-file "kiki" bin)
6234 (copy-recursively "../py" (string-append share "/py"))
6235 (copy-recursively "../sound" (string-append share "/sound"))
6239 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6240 ("freeglut" ,freeglut-2.8)
6241 ("sdl-union" ,(sdl-union (list sdl
6244 ("python" ,python-2)))
6247 (home-page "http://kiki.sourceforge.net/")
6248 (synopsis "3D puzzle game")
6249 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6250 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6251 small robot living in the nano world, repair its maker.")
6252 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6253 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6254 ;; for a statement from the author.
6255 (license license:public-domain)))
6257 (define-public teeworlds
6264 (url "https://github.com/teeworlds/teeworlds")
6266 ;; There are two submodules in datasrc/{languages,maps}
6268 (file-name (git-file-name name version))
6271 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6272 (modules '((guix build utils)
6277 (snippet ; remove bundled libraries except md5
6278 '(let ((base-dir "src/engine/external/"))
6279 (for-each (compose (cut delete-file-recursively <>)
6280 (cut string-append base-dir <>))
6281 (remove (cut string-match "(^.)|(^md5$)" <>)
6282 (scandir base-dir)))
6284 (build-system cmake-build-system)
6286 `(#:test-target "run_tests"
6288 (modify-phases %standard-phases
6289 (add-after 'unpack 'patch-paths
6290 (lambda* (#:key outputs #:allow-other-keys)
6291 ;; Embed path to assets.
6292 (substitute* "src/engine/shared/storage.cpp"
6293 (("#define DATA_DIR.*")
6294 (string-append "#define DATA_DIR \""
6295 (assoc-ref outputs "out")
6296 "/share/teeworlds/data"
6299 (add-after 'unpack 'replace-font
6300 (lambda* (#:key inputs #:allow-other-keys)
6301 (delete-file "datasrc/fonts/DejaVuSans.ttf")
6302 (symlink (string-append (assoc-ref inputs "font-dejavu")
6303 "/share/fonts/truetype/DejaVuSans.ttf")
6304 "datasrc/fonts/DejaVuSans.ttf")
6307 `(("freetype" ,freetype)
6308 ("font-dejavu" ,font-dejavu)
6310 ("json-parser" ,json-parser)
6312 ("pnglite" ,pnglite)
6314 ("sdl2-image" ,sdl2-image)
6315 ("sdl2-mixer" ,sdl2-mixer)
6316 ("wavpack" ,wavpack)
6317 ("openssl" ,openssl)
6320 `(("googletest" ,googletest)
6321 ("python" ,python-wrapper)
6322 ("pkg-config" ,pkg-config)))
6323 (home-page "https://www.teeworlds.com")
6324 (synopsis "2D retro multiplayer shooter game")
6325 (description "Teeworlds is an online multiplayer game. Battle with up to
6326 16 players in a variety of game modes, including Team Deathmatch and Capture
6327 The Flag. You can even design your own maps!")
6328 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6330 (define-public enigma
6336 (uri (string-append "mirror://sourceforge/enigma-game/"
6337 "Release%20" version "/enigma-"
6341 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6342 (build-system gnu-build-system)
6345 (list "--with-system-enet")
6347 (modify-phases %standard-phases
6348 (add-after 'unpack 'fix-build-with-new-gcc
6350 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6351 ;; to NULL. Can be removed for versions > 1.21.
6352 (substitute* "src/lev/Proxy.cc"
6356 (add-after 'unpack 'find-sdl
6358 (substitute* "configure"
6359 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6360 (substitute* '("tools/ttf2bmf.cc"
6361 "lib-src/enigma-core/ecl_font.cc"
6362 "lib-src/enigma-core/ecl_video.cc"
6363 "lib-src/enigma-core/ecl_buffer.hh"
6364 "src/SoundEngine.cc"
6365 "src/SoundEngine.hh"
6366 "src/MusicManager.cc"
6367 "src/MusicManager.hh"
6371 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6372 (string-append "#include \"SDL/SDL_" header ".h\"")))
6373 (substitute* "src/main.cc"
6374 (("#include <SDL_(image|ttf|mixer).h>" line header)
6375 (string-append "#include \"SDL/SDL_" header ".h\"")))
6378 `(("xerces-c" ,xerces-c)
6379 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6383 `(("pkg-config" ,pkg-config)
6384 ("imagemagick" ,imagemagick)))
6385 (home-page "https://www.nongnu.org/enigma")
6386 (synopsis "Puzzle game with a dexterity component")
6387 (description "Enigma is a puzzle game with 550 unique levels. The object
6388 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6389 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6390 and most of all, countless hairy puzzles usually block your direct way to the
6391 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6392 get bored) interact in many unexpected ways, and since many of them follow the
6393 laws of physics (Enigma’s special laws of physics, that is), controlling them
6394 with the mouse isn’t always trivial.")
6395 (license license:gpl2+)))
6397 (define-public chroma
6403 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6404 version ".tar.bz2"))
6407 "12bjisf5nlqinw8n4r223vld52p0p2mw3fca92vi175c46bycbzn"))))
6408 (build-system gnu-build-system)
6410 `(#:tests? #f ; no tests included
6411 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6413 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6414 ("freetype" ,freetype)
6415 ("ncurses" ,ncurses)
6416 ("fontconfig" ,fontconfig)
6417 ("libxft" ,libxft)))
6419 `(("pkg-config" ,pkg-config)))
6420 (home-page "http://level7.org.uk/chroma/")
6421 (synopsis "Abstract puzzle game")
6422 (description "Chroma is an abstract puzzle game. A variety of colourful
6423 shapes are arranged in a series of increasingly complex patterns, forming
6424 fiendish traps that must be disarmed and mysterious puzzles that must be
6425 manipulated in order to give up their subtle secrets. Initially so
6426 straightforward that anyone can pick it up and begin to play, yet gradually
6427 becoming difficult enough to tax even the brightest of minds.")
6428 (license license:gpl2+)))
6430 (define-public fillets-ng
6436 (uri (string-append "mirror://sourceforge/fillets/"
6437 "Fish%20Fillets%20-%20Next%20Generation/"
6438 version "/fillets-ng-" version ".tar.gz"))
6441 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6442 (build-system gnu-build-system)
6445 (list (string-append "--with-lua="
6446 (assoc-ref %build-inputs "lua")))
6448 (list (string-append "CFLAGS=-I"
6449 (assoc-ref %build-inputs "sdl-union")
6451 (string-append "CXXFLAGS=-I"
6452 (assoc-ref %build-inputs "sdl-union")
6455 (modify-phases %standard-phases
6456 ;; Lua 5.1 does not provide it.
6457 (add-after 'unpack 'do-not-link-with-lualib
6459 (substitute* "configure"
6462 (add-after 'install 'install-data
6463 (lambda* (#:key inputs outputs #:allow-other-keys)
6464 (let ((data (string-append (assoc-ref outputs "out")
6465 "/share/games/fillets-ng")))
6467 (invoke "tar" "-xvf"
6468 (assoc-ref inputs "fillets-ng-data")
6469 "--strip-components=1"
6472 `(("sdl-union" ,(sdl-union (list sdl
6476 ("fribidi" ,fribidi)
6480 `(("pkg-config" ,pkg-config)
6484 (uri (string-append "mirror://sourceforge/fillets/"
6485 "Fish%20Fillets%20-%20Next%20Generation/"
6486 version "/fillets-ng-data-" version ".tar.gz"))
6489 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6490 (home-page "http://fillets.sourceforge.net/")
6491 (synopsis "Puzzle game")
6492 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6493 every of the seventy levels is always the same: find a safe way out. The fish
6494 utter witty remarks about their surroundings, the various inhabitants of their
6495 underwater realm quarrel among themselves or comment on the efforts of your
6496 fish. The whole game is accompanied by quiet, comforting music.")
6497 (license license:gpl2+)))
6499 (define-public crawl
6506 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6507 version "/stone_soup-" version "-nodeps.tar.xz"))
6509 (base32 "0nkhyhrrma8gmwxp15j84cn1k2yvyq7ar9rd0j2qjjlv2kdis5z2"))
6510 (patches (search-patches "crawl-upgrade-saves.patch"))))
6511 (build-system gnu-build-system)
6513 `(("lua51" ,lua-5.1)
6514 ("ncurses" ,ncurses)
6521 ("python" ,python-wrapper)
6522 ("python-pyyaml" ,python-pyyaml)
6523 ("pkg-config" ,pkg-config)))
6526 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6527 (out (assoc-ref %outputs "out")))
6528 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6529 (string-append "prefix=" out)
6531 ;; Don't compile with SSE on systems which don't have it.
6532 ,@(match (%current-system)
6533 ((or "i686-linux" "x86_64-linux")
6535 (_ '("NOSSE=TRUE")))
6536 ;; don't build any bundled dependencies
6542 (modify-phases %standard-phases
6543 (add-after 'unpack 'find-SDL-image
6545 (substitute* "source/windowmanager-sdl.cc"
6546 (("SDL_image.h") "SDL2/SDL_image.h"))
6550 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6551 (setenv "HOME" (getcwd))
6552 ;; Fake a terminal for the test cases.
6553 (setenv "TERM" "xterm-256color")
6554 ;; Run the tests that don't require a debug build.
6555 (apply invoke "make" "nondebugtest"
6556 (format #f "-j~d" (parallel-job-count))
6557 ;; Force command line build for test cases.
6558 (append make-flags '("GAME=crawl" "TILES="))))))))
6559 (synopsis "Roguelike dungeon crawler game")
6560 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6561 for short) is a roguelike adventure through dungeons filled with dangerous
6562 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6563 (home-page "https://crawl.develz.org")
6564 (license (list license:gpl2+
6572 ;; The linter here claims that patch file names should start with the package
6573 ;; name. But, in this case, the patches are inherited from crawl with the
6574 ;; "crawl-" prefix instead of "crawl-tiles-".
6575 (define-public crawl-tiles
6578 (name "crawl-tiles")
6580 (substitute-keyword-arguments
6581 (package-arguments crawl)
6582 ((#:make-flags flags)
6583 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6585 (string-append "PROPORTIONAL_FONT=" dejavu
6586 "/share/fonts/truetype/DejaVuSans.ttf")
6587 (string-append "MONOSPACED_FONT=" dejavu
6588 "/share/fonts/truetype/DejaVuSansMono.ttf")
6590 ;; Rename the executable to allow parallel installation with crawl.
6594 `(,@(package-inputs crawl)
6595 ("font-dejavu" ,font-dejavu)
6596 ("freetype6" ,freetype)
6600 ("sdl2-image" ,sdl2-image)
6601 ("sdl2-mixer" ,sdl2-mixer)))
6603 `(,@(package-native-inputs crawl)
6604 ("pngcrush" ,pngcrush)
6606 (synopsis "Graphical roguelike dungeon crawler game")))
6608 (define-public lugaru
6614 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6615 "lugaru-" version ".tar.xz"))
6618 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6619 (build-system cmake-build-system)
6622 (list "-DSYSTEM_INSTALL=ON")
6626 `(("pkg-config" ,pkg-config)))
6630 ("libjpeg" ,libjpeg-turbo)
6633 ("vorbis" ,libvorbis)
6635 (home-page "https://osslugaru.gitlab.io")
6636 (synopsis "Cross-platform third-person action game")
6637 (description "Lugaru is a third-person action game. The main character,
6638 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6639 In his quest to find those responsible for slaughtering his village, he uncovers
6640 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6641 and the starving wolves from a nearby den. Turner takes it upon himself to
6642 fight against their plot and save his fellow rabbits from slavery.")
6643 (license (list license:gpl2+ ; code
6646 license:cc-by-sa4.0))))
6648 (define-public 0ad-data
6651 (version "0.0.23b-alpha")
6655 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6656 version "-unix-data.tar.xz"))
6657 (file-name (string-append name "-" version ".tar.xz"))
6660 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6661 (modules '((guix build utils)))
6664 (for-each (lambda (name)
6665 (let* ((dir (string-append "binaries/data/mods/" name))
6666 (file (string-append dir "/" name ".zip"))
6667 (unzip #$(file-append unzip "/bin/unzip")))
6668 (invoke unzip "-d" dir file)
6669 (delete-file file)))
6672 (build-system trivial-build-system)
6673 (native-inputs `(("tar" ,tar)
6676 `(#:modules ((guix build utils))
6679 (use-modules (guix build utils))
6680 (let ((out (assoc-ref %outputs "out"))
6681 (source (assoc-ref %build-inputs "source"))
6682 (tar (search-input-file %build-inputs "/bin/tar"))
6683 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6684 (setenv "PATH" xz-path)
6686 (invoke tar "xvf" source "-C" out "--strip=3")))))
6687 (synopsis "Data files for 0ad")
6688 (description "0ad-data provides the data files required by the game 0ad.")
6689 (home-page "https://play0ad.com")
6690 (license (list (license:fsdg-compatible
6691 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6692 "Similar to the license of the Bitstream Vera fonts.")
6693 (license:fsdg-compatible
6694 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6704 (version "0.0.23b-alpha")
6708 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6709 version "-unix-build.tar.xz"))
6710 (file-name (string-append name "-" version ".tar.xz"))
6713 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6714 ;; A snippet here would cause a build failure because of timestamps
6715 ;; reset. See https://bugs.gnu.org/26734.
6717 `(("0ad-data" ,0ad-data)
6723 ("libsodium" ,libsodium)
6724 ("libvorbis" ,libvorbis)
6725 ("libxcursor" ,libxcursor)
6726 ("libxml2" ,libxml2)
6727 ("miniupnpc" ,miniupnpc)
6728 ("mozjs-38" ,mozjs-38)
6731 ("wxwidgets" ,wxwidgets)
6735 ("cmake" ,cmake-minimal)
6737 ("pkg-config" ,pkg-config)
6738 ("python-2" ,python-2)))
6739 (build-system gnu-build-system)
6741 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6743 (modify-phases %standard-phases
6744 (add-after 'unpack 'delete-bundles
6746 (delete-file-recursively "libraries/source/spidermonkey")
6748 (add-after 'unpack 'fix-x11-includes
6750 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6751 (("<Xlib.h>") "<X11/Xlib.h>"))
6752 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6753 (("<Xatom.h>") "<X11/Xatom.h>"))
6754 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6755 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6758 (lambda* (#:key inputs outputs #:allow-other-keys)
6759 (let* ((jobs (number->string (parallel-job-count)))
6760 (out (assoc-ref outputs "out"))
6761 (lib (string-append out "/lib"))
6762 (data (string-append out "/share/0ad")))
6763 (setenv "JOBS" (string-append "-j" jobs))
6765 (with-directory-excursion "build/workspaces"
6766 (invoke "./update-workspaces.sh"
6767 (string-append "--libdir=" lib)
6768 (string-append "--datadir=" data)
6769 ;; TODO: "--with-system-nvtt"
6770 "--with-system-mozjs38")))))
6773 (lambda* (#:key inputs outputs #:allow-other-keys)
6775 (let* ((out (assoc-ref outputs "out"))
6776 (bin (string-append out "/bin"))
6777 (lib (string-append out "/lib"))
6778 (data (string-append out "/share/0ad"))
6779 (applications (string-append out "/share/applications"))
6780 (pixmaps (string-append out "/share/pixmaps"))
6781 (0ad-data (assoc-ref inputs "0ad-data")))
6783 (copy-recursively "data" data)
6784 (for-each (lambda (file)
6785 (symlink (string-append 0ad-data "/" file)
6786 (string-append data "/" file)))
6787 '("config" "mods/mod" "mods/public" "tools"))
6789 (for-each (lambda (file)
6790 (install-file file lib))
6791 (find-files "system" "\\.so$"))
6793 (install-file "system/pyrogenesis" bin)
6794 (with-directory-excursion bin
6795 (symlink "pyrogenesis" "0ad"))
6797 (with-directory-excursion "../build/resources"
6798 (install-file "0ad.desktop" applications)
6799 (install-file "0ad.png" pixmaps))
6801 (add-after 'install 'check
6803 (with-directory-excursion "system"
6804 (invoke "./test")))))))
6805 (home-page "https://play0ad.com")
6806 (synopsis "3D real-time strategy game of ancient warfare")
6807 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6808 warfare. It's a historically-based war/economy game that allows players to
6809 relive or rewrite the history of twelve ancient civilizations, each depicted
6810 at their peak of economic growth and military prowess.
6812 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6813 (license (list license:bsd-2
6824 (define-public open-adventure
6826 (name "open-adventure")
6832 (url "https://gitlab.com/esr/open-adventure")
6834 (file-name (git-file-name name version))
6836 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6837 (build-system gnu-build-system)
6839 `(#:make-flags (list "CC=gcc")
6841 (modify-phases %standard-phases
6842 (delete 'configure) ;no configure script
6843 (add-before 'build 'use-echo
6845 (substitute* "tests/Makefile"
6846 (("/bin/echo") (which "echo")))
6848 (add-after 'build 'build-manpage
6850 ;; This target is missing a dependency
6851 (substitute* "Makefile"
6853 (string-append line " advent.adoc")))
6854 (invoke "make" ".adoc.6")))
6855 ;; There is no install target.
6857 (lambda* (#:key outputs #:allow-other-keys)
6858 (let* ((out (assoc-ref outputs "out"))
6859 (bin (string-append out "/bin"))
6860 (man (string-append out "/share/man/man6")))
6861 (install-file "advent" bin)
6862 (install-file "advent.6" man))
6865 `(("asciidoc" ,asciidoc)
6866 ("libedit" ,libedit)
6867 ("pkg-config" ,pkg-config)
6868 ("python" ,python-wrapper)
6869 ("python-pyyaml" ,python-pyyaml)))
6870 (home-page "https://gitlab.com/esr/open-adventure")
6871 (synopsis "Colossal Cave Adventure")
6873 "The original Colossal Cave Adventure from 1976 was the origin of all
6874 text adventures, dungeon-crawl (computer) games, and computer-hosted
6875 roleplaying games. This is a forward port of the last version released by
6876 Crowther & Woods, its original authors, in 1995. It has been known as
6877 ``adventure 2.5'' and ``430-point adventure''.")
6878 (license license:bsd-2)))
6880 (define-public open-adventure-2.5
6882 (inherit open-adventure)
6884 (properties `((superseded . ,open-adventure)))))
6886 (define-public tome4
6890 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6894 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6895 version ".tar.bz2"))
6897 (base32 "197jmd99l3w3sig32pvdlq9fcgdjjx7g9csy08kz174cyhrlyly3"))
6898 (modules '((guix build utils)))
6901 (substitute* '("src/music.h" "src/tSDL.h")
6902 (("#elif defined(__FreeBSD__)" line)
6904 line " || defined(__GNUC__)")))
6905 (substitute* '("src/tgl.h")
6906 (("#include <GL/glext.h>") ""))))))
6907 (build-system gnu-build-system)
6909 `(("unzip" ,unzip)))
6911 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6913 ("premake4" ,premake4)
6915 ("vorbis" ,libvorbis)
6916 ("luajit" ,luajit)))
6919 (list (string-append "CC=" ,(cc-for-target))
6921 ;; XXX: Building in parallel occasionally causes this build failure:
6922 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6923 ;; No such file or directory
6924 #:parallel-build? #f
6925 #:phases (modify-phases %standard-phases
6929 (invoke "premake4" "gmake")))
6930 (add-after 'set-paths 'set-sdl-paths
6931 (lambda* (#:key inputs #:allow-other-keys)
6934 (search-input-directory inputs "/include/SDL2")
6935 ":" (or (getenv "CPATH") "")))))
6937 ;; premake doesn't provide install target
6939 (lambda* (#:key inputs outputs #:allow-other-keys)
6940 (let* ((out (assoc-ref outputs "out"))
6941 (usr (string-append out "/usr"))
6942 (bin (string-append out "/bin"))
6943 (licenses (string-append out "/share/licenses"))
6944 (documents (string-append out "/share/doc"))
6945 (pixmaps (string-append out "/share/pixmaps"))
6946 (icon "te4-icon.png")
6947 (data (string-append out "/share/" ,name))
6948 (applications (string-append
6949 out "/share/applications"))
6950 (unzip (string-append
6951 (assoc-ref inputs "unzip") "/bin/unzip"))
6952 (wrapper (string-append bin "/" ,name)))
6957 "game/engines/te4-" ,version ".teae")
6959 "data/gfx/" icon) "-d" pixmaps)
6961 (install-file "t-engine" data)
6963 (with-output-to-file wrapper
6968 ;; No bootstrap code found,
6969 ;; defaulting to working directory
6972 "exec -a tome4 ./t-engine \"$@\"\n"))))
6973 (chmod wrapper #o555)
6975 (for-each (lambda (file)
6976 (install-file file licenses))
6977 '("COPYING" "COPYING-MEDIA"))
6979 (for-each (lambda (file)
6980 (install-file file documents))
6981 '("CONTRIBUTING" "CREDITS"))
6983 (copy-recursively "bootstrap" (string-append
6985 (copy-recursively "game" (string-append data "/game"))
6987 (mkdir-p applications)
6988 (make-desktop-entry-file
6989 (string-append applications "/" ,name ".desktop")
6994 #:categories '("Game" "RolePlaying"))))))))
6995 (home-page "https://te4.org")
6996 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6997 combat and advanced character building. Play as one of many unique races and
6998 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6999 challenging battles, and developing characters with your own tailored mix of
7000 abilities and powers. With a modern graphical and customisable interface,
7001 intuitive mouse control, streamlined mechanics and deep, challenging combat,
7002 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
7003 (license license:gpl3+)))
7005 (define-public quakespasm
7012 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
7015 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
7018 #:make-flags '("CC=gcc"
7021 "USE_CODEC_MIKMOD=1"
7024 #:phases (modify-phases %standard-phases
7026 (add-after 'unpack 'fix-makefile-paths
7027 (lambda* (#:key outputs #:allow-other-keys)
7028 (let ((out (assoc-ref outputs "out")))
7029 (mkdir-p (string-append out "/bin"))
7030 (substitute* "Quake/Makefile"
7031 (("/usr/local/games")
7032 (string-append out "/bin")))
7034 (build-system gnu-build-system)
7035 (inputs `(("libmikmod" ,libmikmod)
7036 ("libvorbis" ,libvorbis)
7041 (synopsis "First person shooter engine for Quake 1")
7042 (description "Quakespasm is a modern engine for id software's Quake 1.
7043 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7044 some graphical niceities, and numerous bug-fixes and other improvements.")
7045 (home-page "http://quakespasm.sourceforge.net/")
7046 (license license:gpl2+)))
7048 (define-public vkquake
7050 (inherit quakespasm)
7057 (url "https://github.com/Novum/vkQuake")
7059 (file-name (git-file-name name version))
7061 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
7064 (let ((vulkanlib (string-append (assoc-ref %build-inputs
7065 "vulkan-loader") "/lib")))
7069 "USE_CODEC_MIKMOD=1"
7071 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
7073 #:phases (modify-phases %standard-phases
7074 (add-after 'unpack 'patch-for-new-vulkan
7076 ;; Mimic upstream commit a869a22d9b51c68e for
7077 ;; compatibility with newer vulkan-headers.
7078 (substitute* "Quake/gl_rmisc.c"
7079 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7083 (add-after 'unpack 'fix-makefile-paths
7084 (lambda* (#:key outputs #:allow-other-keys)
7085 (let ((vulkan (assoc-ref %build-inputs
7087 (out (assoc-ref outputs "out")))
7088 (mkdir-p (string-append out "/bin"))
7089 (substitute* "Quake/Makefile" ((" /usr")
7090 (string-append " " out)))
7091 (substitute* "Quake/Makefile" (("/games")
7092 (string-append "/bin")))
7093 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7095 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7096 (package-arguments quakespasm))))
7097 (inputs `(("vulkan-headers" ,vulkan-headers)
7098 ("vulkan-loader" ,vulkan-loader)
7099 ,@(package-inputs quakespasm)))
7100 (description "vkquake is a modern engine for id software's Quake 1.
7101 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7102 some graphical niceities, and numerous bug-fixes and other improvements.")
7103 (home-page "https://github.com/Novum/vkQuake")))
7105 (define-public yamagi-quake2
7107 (name "yamagi-quake2")
7112 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7115 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7116 (build-system gnu-build-system)
7121 ;; An optional directory where it will look for quake2 data files
7122 ;; in addition to the current working directory.
7123 "WITH_SYSTEMWIDE=yes"
7124 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7126 (modify-phases %standard-phases
7128 (add-before 'build 'patch-libraries
7129 (lambda* (#:key inputs #:allow-other-keys)
7130 ;; The game writes paths to openal.so and curl.so to ~/.yq2/...
7131 ;; Workaround: hard-code the compiled paths where it loads them;
7132 ;; this prevents loading old or garbage collected libraries.
7133 (substitute* "src/client/sound/qal.c"
7134 (("al_driver->string")
7135 (string-append "\"" (assoc-ref inputs "openal")
7136 "/lib/libopenal.so\"")))
7137 (substitute* "src/client/curl/qcurl.c"
7138 (("cl_libcurl->string")
7139 (string-append "\"" (assoc-ref inputs "curl")
7140 "/lib/libcurl.so\"")))))
7142 (lambda* (#:key outputs #:allow-other-keys)
7143 (let ((out (assoc-ref outputs "out")))
7144 (mkdir-p (string-append out "/lib"))
7145 (mkdir-p (string-append out "/bin"))
7146 ;; The yamagi-quake2 binary must be in the same directory
7147 ;; as its engine libraries, but symlinking it to /bin is okay.
7148 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7149 (copy-recursively "release"
7150 (string-append out "/lib/yamagi-quake2"))
7151 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7152 (string-append out "/bin/yamagi-quake2"))
7153 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7154 (string-append out "/bin/yamagi-q2ded"))))))))
7156 `(("pkg-config" ,pkg-config)))
7159 ("libvorbis" ,libvorbis)
7164 (synopsis "First person shooter engine based on quake2")
7165 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7166 The main focus is an unchanged single player experience like back in 1997,
7167 thus the gameplay and the graphics are unaltered. However the user may use one
7168 of the unofficial retexturing packs. In comparison with the official client,
7169 over 1000 bugs were fixed and an extensive code audit done,
7170 making Yamagi Quake II one of the most solid Quake II implementations available.")
7171 (home-page "https://www.yamagi.org/quake2/")
7172 (license (list license:gpl2+ ; game and server
7173 (license:non-copyleft ; info-zip
7175 "See Info-Zip section.")
7176 license:public-domain)))) ; stb
7178 (define-public nudoku
7186 (url "https://github.com/jubalh/nudoku")
7188 (file-name (git-file-name name version))
7190 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7191 (build-system gnu-build-system)
7193 `(("autoconf" ,autoconf)
7194 ("automake" ,automake)
7195 ("gettext" ,gettext-minimal)
7196 ("pkg-config" ,pkg-config)))
7198 `(("ncurses" ,ncurses)))
7199 (home-page "https://jubalh.github.io/nudoku/")
7200 (synopsis "Sudoku for your terminal")
7201 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7202 (license license:gpl3+)))
7204 (define-public the-butterfly-effect
7206 (name "the-butterfly-effect")
7212 (url "https://github.com/the-butterfly-effect/tbe")
7213 (commit (string-append "v" version))))
7214 (file-name (git-file-name name version))
7217 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7218 (build-system gnu-build-system)
7221 (modify-phases %standard-phases
7223 ;; There is no "install" phase. By default, tbe is installed
7224 ;; in the build directory. Provide our own installation.
7226 (lambda* (#:key outputs #:allow-other-keys)
7227 (let* ((out (assoc-ref outputs "out"))
7228 (bin (string-append out "/bin"))
7229 (share (string-append out "/share")))
7230 (install-file "usr/games/tbe" bin)
7232 (copy-recursively "usr/share" share)
7234 ;; Test suite requires a running Xorg server. Even when
7235 ;; provided, it fails with "D-Bus library appears to be
7236 ;; incorrectly set up; failed to read machine uuid: Failed to
7237 ;; open "/etc/machine-id": No such file or directory" along
7238 ;; with multiple "QPainter:: ... Painter not active" warnings.
7241 `(("qtbase" ,qtbase-5)
7244 `(("cmake" ,cmake-minimal)
7245 ("gettext-minimal" ,gettext-minimal)
7246 ("qttools" ,qttools)))
7247 (synopsis "Realistic physics puzzle game")
7248 (description "The Butterfly Effect (tbe) is a game that uses
7249 realistic physics simulations to combine lots of simple mechanical
7250 elements to achieve a simple goal in the most complex way possible.")
7251 (home-page "http://the-butterfly-effect.org/")
7252 ;; Main license is GPL2-only. However, artwork is distributed
7253 ;; under various licenses, listed here.
7254 (license (list license:gpl2 license:public-domain license:expat
7255 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7257 (define-public pioneer
7260 (version "20210723")
7264 (url "https://github.com/pioneerspacesim/pioneer")
7266 (file-name (git-file-name name version))
7269 "1hj99jxb9n3r0bkq87p1c24862xa1xyzjyfdyyx88ckszxb05qf3"))))
7270 (build-system cmake-build-system)
7272 `(("pkg-config" ,pkg-config)))
7274 `(("assimp" ,assimp)
7276 ("freetype" ,freetype)
7280 ("libsigc++" ,libsigc++)
7281 ("libvorbis" ,libvorbis)
7282 ("lua" ,lua-5.2) ;not compatible with 5.3
7284 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7286 `(#:tests? #f ;tests are broken
7287 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7288 (string-append "-DPIONEER_DATA_DIR="
7289 %output "/share/games/pioneer"))
7290 #:make-flags (list "all" "build-data")))
7291 (home-page "https://pioneerspacesim.net")
7292 (synopsis "Game of lonely space adventure")
7294 "Pioneer is a space adventure game set in our galaxy at the turn of the
7295 31st century. The game is open-ended, and you are free to eke out whatever
7296 kind of space-faring existence you can think of. Look for fame or fortune by
7297 exploring the millions of star systems. Turn to a life of crime as a pirate,
7298 smuggler or bounty hunter. Forge and break alliances with the various
7299 factions fighting for power, freedom or self-determination. The universe is
7300 whatever you make of it.")
7301 (license license:gpl3)))
7303 (define-public badass
7304 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7308 (version (git-version "0.0" revision commit))
7312 (url "https://github.com/umayr/badass")
7314 (file-name (git-file-name name version))
7317 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7318 (build-system go-build-system)
7320 '(#:import-path "github.com/umayr/badass"))
7321 (synopsis "Hacking contribution graphs in git")
7323 "Badass generates false commits for a range of dates, essentially
7324 hacking the gamification of contribution graphs on platforms such as
7326 (home-page "https://github.com/umayr/badass")
7327 (license license:expat))))
7329 (define-public colobot
7332 (version "0.2.0-alpha")
7337 (url "https://github.com/colobot/colobot")
7338 (commit (string-append "colobot-gold-" version))
7339 (recursive? #t))) ;for "data/" subdir
7340 (file-name (git-file-name name version))
7342 (base32 "02z21pw47j2afjsikn5b162gacwgiahdrlhmfxhq4xqlzsvz58z6"))))
7343 (build-system cmake-build-system)
7345 `(#:tests? #f ;no test
7347 (modify-phases %standard-phases
7348 (add-after 'unpack 'make-git-checkout-writable
7350 (for-each make-file-writable (find-files "."))
7352 (add-after 'unpack 'fix-directories
7354 (substitute* "CMakeLists.txt"
7355 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7356 (string-append prefix "/bin"))
7357 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7358 (string-append prefix "/colobot")))
7360 (add-after 'fix-directories 'install-music
7361 ;; Retrieve and install music files.
7362 (lambda* (#:key inputs #:allow-other-keys)
7363 ;; Installation process tries to download music files using
7364 ;; "wget" if not already present. Since we are going another
7365 ;; route, skip "wget" command check.
7366 (substitute* "data/music/CMakeLists.txt"
7367 (("find_program\\(WGET wget\\)") ""))
7368 ;; Populate "music/" directory.
7369 (let ((data (assoc-ref inputs "colobot-music")))
7370 (invoke "tar" "-xvf" data "-Cdata/music"))
7376 (uri (string-append "https://colobot.info/files/music/"
7377 "colobot-music_ogg_" version ".tar.gz"))
7380 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7381 ("gettext" ,gettext-minimal)
7382 ("librsvg" ,librsvg)
7384 ("python" ,python-wrapper)))
7390 ("libsndfile" ,libsndfile)
7391 ("libvorbis" ,libvorbis)
7394 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7395 (synopsis "Educational programming strategy game")
7396 (description "Colobot: Gold Edition is a real-time strategy game, where
7397 you can program your units (bots) in a language called CBOT, which is similar
7398 to C++ and Java. Your mission is to find a new planet to live and survive.
7399 You can save humanity and get programming skills!")
7400 (home-page "https://colobot.info")
7401 (license license:gpl3+)))
7403 (define-public gzdoom
7411 (url "https://github.com/coelckers/gzdoom")
7412 (commit (string-append "g" version))))
7413 (file-name (git-file-name name version))
7415 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7416 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7417 "gzdoom-find-system-libgme.patch"))
7418 (modules '((guix build utils)))
7421 ;; Remove some bundled libraries. XXX There are more, but removing
7422 ;; them would require, at least, patching the build system.
7423 (with-directory-excursion "libraries"
7424 (delete-file-recursively "bzip2")
7425 (delete-file-recursively "game-music-emu")
7426 (delete-file-recursively "jpeg")
7427 (delete-file-recursively "zlib"))
7432 (let ((out (assoc-ref %outputs "out")))
7435 "-DCMAKE_CXX_FLAGS:="
7436 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7437 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7439 ;; The build requires some extra convincing not to use the bundled
7440 ;; libgme previously deleted in the soure snippet.
7441 "-DFORCE_INTERNAL_GME=OFF"
7443 ;; Link libraries at build time instead of loading them at run time.
7445 "-DDYN_FLUIDSYNTH=OFF"
7448 "-DDYN_SNDFILE=OFF"))
7450 (modify-phases %standard-phases
7451 (add-before 'configure 'fix-referenced-paths
7452 (lambda* (#:key inputs outputs #:allow-other-keys)
7453 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7454 (timidity++ (assoc-ref inputs "timidity++"))
7455 (out (assoc-ref outputs "out")))
7458 "src/CMakeLists.txt"
7459 (("COMMAND /bin/sh")
7460 (string-append "COMMAND " (which "sh"))))
7463 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7464 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7465 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7468 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7469 (("exename = \"timidity\"")
7470 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7472 (build-system cmake-build-system)
7473 (inputs `(("bzip2" ,bzip2)
7474 ("fluid-3" ,fluid-3)
7475 ("fluidsynth" ,fluidsynth)
7478 ("libjpeg" ,libjpeg-turbo)
7479 ("libsndfile" ,libsndfile)
7484 ("timidity++" ,timidity++)
7486 (native-inputs `(("pkg-config" ,pkg-config)
7488 (synopsis "Modern Doom 2 source port")
7489 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7490 renderer. It improves modding support with ZDoom's advanced mapping features
7491 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7492 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7493 (home-page "https://zdoom.org/index")
7494 ;; The source uses x86 assembly
7495 (supported-systems '("x86_64-linux" "i686-linux"))
7496 (license (list license:gpl3+ ; gzdoom game
7497 license:lgpl3+ ; gzdoom renderer
7498 license:expat ; gdtoa
7499 (license:non-copyleft ; modified dumb
7500 "file://dumb/licence.txt"
7501 "Dumb license, explicitly GPL compatible.")))))
7503 (define-public odamex
7511 "mirror://sourceforge/odamex/Odamex/" version "/"
7512 "odamex-src-" version ".tar.bz2"))
7514 (base32 "0vmw9ijb6n4wrxjxixakn7l6a6carnvs9wbbzb4vcq1brbzyrb0p"))))
7515 (build-system cmake-build-system)
7516 (arguments `(#:tests? #f)) ; no tests
7518 `(("deutex" ,deutex)))
7521 ("sdl-mixer" ,sdl2-mixer)
7524 ("curl" ,curl-minimal)
7525 ("alsa-lib" ,alsa-lib)))
7526 (home-page "https://odamex.net/")
7527 (synopsis "Multiplayer Doom port")
7528 (description "Odamex is a modification of the Doom engine that
7529 allows players to easily join servers dedicated to playing Doom
7531 (license license:gpl2+)))
7533 (define-public chocolate-doom
7535 (name "chocolate-doom")
7539 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7546 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7547 (build-system gnu-build-system)
7549 `(#:configure-flags (list "CFLAGS=-fcommon")))
7550 (inputs `(("sdl2-net" ,sdl2-net)
7551 ("sdl2-mixer" , sdl2-mixer)
7554 `(("pkg-config" ,pkg-config)))
7555 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7558 "Chocolate Doom takes a different approach to other source ports. Its
7559 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7560 a conservative, historically accurate Doom source port, which is compatible
7561 with the thousands of mods and levels that were made before the Doom source
7562 code was released. Rather than flashy new graphics, Chocolate Doom's main
7563 features are its accurate reproduction of the game as it was played in the
7564 1990s. The project is developed around a carefully-considered philosophy that
7565 intentionally restricts which features may be added (and rejects any that
7567 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7568 (license license:gpl2)))
7570 (define-public crispy-doom
7572 (inherit chocolate-doom)
7573 (name "crispy-doom")
7578 (url "https://github.com/fabiangreffrath/crispy-doom")
7579 (commit (string-append "crispy-doom-" version))))
7580 (file-name (git-file-name name version))
7582 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7585 (package-native-inputs chocolate-doom)
7586 `(("automake" ,automake)
7587 ("autoreconf" ,autoconf))))
7589 `(#:configure-flags '("CFLAGS=-fcommon")
7591 (modify-phases %standard-phases
7593 ;; The bundled autogen.sh script unconditionally runs ./configure.
7594 (lambda _ (invoke "autoreconf" "-vif"))))))
7595 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7598 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7599 display resolution, removes the static limits of the Doom engine and offers
7600 further optional visual, tactical and physical enhancements while remaining
7601 entirely config file, savegame, netplay and demo compatible with the
7603 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7605 (define shlomif-cmake-modules
7608 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7609 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7610 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7612 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7614 (define-public rinutils
7621 (url "https://github.com/shlomif/rinutils")
7623 (file-name (git-file-name name version))
7626 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7629 ;; The following is only needed for tests.
7630 ("perl-file-find-object" ,perl-file-find-object)
7631 ("perl-test-differences" ,perl-test-differences)
7632 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7633 ("perl-io-all" ,perl-io-all)
7634 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7635 ("cmake-rules" ,shlomif-cmake-modules)
7636 ("pkg-config" ,pkg-config)))
7638 `(("cmocka" ,cmocka)
7639 ("perl-env-path" ,perl-env-path)
7640 ("perl-inline" ,perl-inline)
7641 ("perl-inline-c" ,perl-inline-c)
7642 ("perl-string-shellquote" ,perl-string-shellquote)
7643 ("perl-test-trailingspace" ,perl-test-trailingspace)
7644 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7645 ("perl-text-glob" ,perl-text-glob)
7646 ("perl-number-compare" ,perl-number-compare)
7647 ("perl-moo" ,perl-moo)))
7650 (modify-phases %standard-phases
7651 (add-after 'unpack 'fix-build-env
7652 (lambda* (#:key inputs #:allow-other-keys)
7653 (use-modules (guix build utils))
7654 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7655 (copy-file cmake-rules
7656 (string-append "cmake/"
7657 (strip-store-file-name cmake-rules)))
7661 (with-directory-excursion "../source"
7662 (setenv "FCS_TEST_BUILD" "1")
7663 (setenv "RINUTILS_TEST_BUILD" "1")
7664 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7665 ;; which requires tidy-all.
7666 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7667 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7668 (build-system cmake-build-system)
7669 (home-page "https://www.shlomifish.org/open-source/projects/")
7670 (synopsis "C11 / gnu11 utilities C library")
7671 (description "This package provides C11 / gnu11 utilities C library")
7672 (license license:expat)))
7674 (define-public fortune-mod
7676 (name "fortune-mod")
7682 (url "https://github.com/shlomif/fortune-mod")
7683 (commit (string-append "fortune-mod-" version))))
7684 (file-name (git-file-name name version))
7686 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7687 (build-system cmake-build-system)
7689 `(#:test-target "check"
7691 (modify-phases %standard-phases
7692 (add-after 'unpack 'fix-build-env
7693 (lambda* (#:key inputs #:allow-other-keys)
7694 (use-modules (guix build utils))
7695 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7696 (copy-file cmake-rules
7697 (string-append "fortune-mod/cmake/"
7698 (strip-store-file-name cmake-rules)))
7699 (chdir "fortune-mod")
7700 ;; TODO: Valgrind tests fail for some reason.
7701 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7702 (delete-file "tests/t/valgrind.t")
7704 (add-after 'install 'fix-install-directory
7705 (lambda* (#:key outputs #:allow-other-keys)
7706 ;; Move binary from "games/" to "bin/" and remove the latter. This
7707 ;; is easier than patching CMakeLists.txt since the tests hard-code
7708 ;; the location as well.
7709 (let* ((out (assoc-ref outputs "out"))
7710 (bin (string-append out "/bin"))
7711 (games (string-append out "/games")))
7712 (rename-file (string-append games "/fortune")
7713 (string-append bin "/fortune"))
7716 (inputs `(("recode" ,recode)))
7719 ;; The following is only needed for tests.
7720 ("perl-file-find-object" ,perl-file-find-object)
7721 ("perl-test-differences" ,perl-test-differences)
7722 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7723 ("perl-io-all" ,perl-io-all)
7724 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7725 ("cmake-rules" ,shlomif-cmake-modules)
7726 ("rinutils" ,rinutils)))
7727 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7728 (synopsis "The Fortune Cookie program from BSD games")
7729 (description "Fortune is a command-line utility which displays a random
7730 quotation from a collection of quotes.")
7731 (license license:bsd-4)))
7733 (define xonotic-data
7735 (name "xonotic-data")
7740 (uri (string-append "http://dl.xonotic.org/xonotic-"
7742 (file-name (string-append name "-" version ".zip"))
7745 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7746 (build-system trivial-build-system)
7748 `(("unzip" ,unzip)))
7750 `(#:modules ((guix build utils))
7753 (use-modules (guix build utils))
7754 (let* ((out (assoc-ref %outputs "out"))
7755 (xonotic (string-append out "/share/xonotic"))
7756 (source (assoc-ref %build-inputs "source"))
7757 (unzip (search-input-file %build-inputs "/bin/unzip")))
7758 (copy-file source (string-append ,name "-" ,version ".zip"))
7759 (invoke unzip (string-append ,name "-" ,version ".zip"))
7763 (copy-recursively "data"
7764 (string-append xonotic "/data"))
7765 (copy-recursively "server"
7766 (string-append xonotic "/server"))
7767 (install-file "key_0.d0pk" xonotic)))))
7768 (home-page "http://xonotic.org")
7769 (synopsis "Data files for Xonotic")
7771 "Xonotic-data provides the data files required by the game Xonotic.")
7772 (license (list license:gpl2+
7773 (license:x11-style "file://server/rcon.pl")))))
7775 (define-public xonotic
7782 (uri (string-append "http://dl.xonotic.org/xonotic-"
7783 version "-source.zip"))
7784 (file-name (string-append name "-" version ".zip"))
7787 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7788 (build-system gnu-build-system)
7790 `(#:configure-flags (list (string-append "--prefix="
7791 (assoc-ref %outputs "out"))
7792 "--disable-rijndael")
7794 (modify-phases %standard-phases
7795 (add-before 'configure 'make-darkplaces
7796 (lambda* (#:key outputs #:allow-other-keys)
7797 (let* ((out (assoc-ref outputs "out"))
7798 (sharedir (string-append out "/share/xonotic/")))
7799 (invoke "make" "-C" "source/darkplaces"
7800 (string-append "DP_FS_BASEDIR="
7802 "DP_LINK_TO_LIBJPEG=1"
7807 (invoke "make" "-C" "source/darkplaces"
7808 (string-append "DP_FS_BASEDIR="
7810 "DP_LINK_TO_LIBJPEG=1"
7815 (invoke "make" "-C" "source/darkplaces"
7816 (string-append "DP_FS_BASEDIR="
7818 "DP_LINK_TO_LIBJPEG=1"
7823 (add-before 'configure 'bootstrap
7825 (chdir "source/d0_blind_id")
7826 (invoke "sh" "autogen.sh")))
7827 (add-after 'build 'install-desktop-entry
7828 (lambda* (#:key outputs #:allow-other-keys)
7829 ;; Add .desktop files for the 2 variants and the symlink
7830 (let* ((output (assoc-ref outputs "out"))
7831 (apps (string-append output "/share/applications")))
7833 (with-output-to-file
7834 (string-append apps "/xonotic-glx.desktop")
7839 Comment=Xonotic glx~@
7840 Exec=~a/bin/xonotic-glx~@
7841 TryExec=~@*~a/bin/xonotic-glx~@
7846 (with-output-to-file
7847 (string-append apps "/xonotic-sdl.desktop")
7852 Comment=Xonotic sdl~@
7853 Exec=~a/bin/xonotic-sdl~@
7854 TryExec=~@*~a/bin/xonotic-sdl~@
7859 (with-output-to-file
7860 (string-append apps "/xonotic.desktop")
7866 Exec=~a/bin/xonotic-glx~@
7867 TryExec=~@*~a/bin/xonotic~@
7873 (add-after 'install-desktop-entry 'install-icons
7874 (lambda* (#:key outputs #:allow-other-keys)
7875 (let ((out (assoc-ref outputs "out")))
7876 (with-directory-excursion "../../misc/logos/icons_png/"
7879 (let* ((size (string-filter char-numeric? file))
7880 (icons (string-append out "/share/icons/hicolor/"
7881 size "x" size "/apps")))
7883 (copy-file file (string-append icons "/xonotic.png"))))
7884 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7885 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7886 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7887 (add-after 'install-icons 'install-binaries
7888 (lambda* (#:key outputs #:allow-other-keys)
7889 (let ((out (assoc-ref outputs "out")))
7890 (define (install src dst)
7891 (let ((dst (string-append out dst)))
7892 (mkdir-p (dirname dst))
7893 (copy-file src dst)))
7894 (mkdir-p (string-append out "/bin"))
7895 (install "../darkplaces/darkplaces-dedicated"
7896 "/bin/xonotic-dedicated")
7897 (install "../darkplaces/darkplaces-glx"
7899 (install "../darkplaces/darkplaces-sdl"
7901 ;; Provide a default xonotic executable, defaulting to SDL.
7902 (symlink (string-append out "/bin/xonotic-sdl")
7903 (string-append out "/bin/xonotic"))
7905 (add-after 'install-binaries 'install-data
7906 (lambda* (#:key outputs inputs #:allow-other-keys)
7907 (let* ((out (assoc-ref outputs "out"))
7908 (data (assoc-ref inputs "xonotic-data")))
7909 (symlink (string-append data "/share/xonotic")
7910 (string-append out "/share/xonotic"))
7912 (add-after 'install-binaries 'wrap-binaries
7913 (lambda* (#:key outputs inputs #:allow-other-keys)
7914 ;; Curl and libvorbis need to be wrapped so that we get
7915 ;; sound and networking.
7916 (let* ((out (assoc-ref outputs "out"))
7917 (bin (string-append out "/bin/xonotic"))
7918 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7919 (bin-glx (string-append out "/bin/xonotic-glx"))
7920 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7921 (curl (assoc-ref inputs "curl"))
7922 (vorbis (assoc-ref inputs "libvorbis")))
7924 `("LD_LIBRARY_PATH" ":" prefix
7925 (,(string-append curl "/lib:" vorbis "/lib"))))
7926 (wrap-program bin-sdl
7927 `("LD_LIBRARY_PATH" ":" prefix
7928 (,(string-append curl "/lib:" vorbis "/lib"))))
7929 (wrap-program bin-glx
7930 `("LD_LIBRARY_PATH" ":" prefix
7931 (,(string-append curl "/lib:" vorbis "/lib"))))
7932 (wrap-program bin-dedicated
7933 `("LD_LIBRARY_PATH" ":" prefix
7934 (,(string-append curl "/lib:" vorbis "/lib"))))
7937 `(("xonotic-data" ,xonotic-data)
7938 ("alsa-lib" ,alsa-lib)
7940 ("libjpeg" ,libjpeg-turbo)
7941 ("libmodplug" ,libmodplug)
7942 ("libvorbis" ,libvorbis)
7945 ("libxxf86dga" ,libxxf86dga)
7946 ("libxxf86vm" ,libxxf86vm)
7948 ("libxext" ,libxext)
7950 ("libxdmcp" ,libxdmcp)
7953 ("freetype" ,freetype)
7956 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7959 ("autoconf" ,autoconf)
7960 ("automake" ,automake)
7961 ("pkg-config" ,pkg-config)
7962 ("libtool" ,libtool)
7964 (home-page "https://xonotic.org")
7965 (synopsis "Fast-paced first-person shooter game")
7967 "Xonotic is a free, fast-paced first-person shooter.
7968 The project is geared towards providing addictive arena shooter
7969 gameplay which is all spawned and driven by the community itself.
7970 Xonotic is a direct successor of the Nexuiz project with years of
7971 development between them, and it aims to become the best possible
7972 open-source FPS of its kind.")
7973 (license (list license:gpl2+
7974 license:bsd-3 ; /source/d0_blind_id folder and others
7975 (license:x11-style "" "See file rcon.pl.")))))
7977 (define-public frotz
7983 (uri (list (string-append
7984 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7985 "frotz/frotz-" version ".tar.gz")
7987 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7988 "frotz/frotz-" version ".tar.gz")))
7991 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7992 (build-system gnu-build-system)
7994 `(#:tests? #f ; there are no tests
7996 (modify-phases %standard-phases
7998 (add-before 'build 'curses
8000 (substitute* "Makefile"
8001 (("lcurses") "lncurses"))
8004 (lambda* (#:key outputs #:allow-other-keys)
8005 (let* ((out (assoc-ref outputs "out"))
8006 (bin (string-append out "/bin"))
8007 (man (string-append out "/share/man/man6")))
8008 (install-file "frotz" bin)
8010 (install-file "doc/frotz.6" man)
8012 (inputs `(("libmodplug" ,libmodplug)
8013 ("libsamplerate" ,libsamplerate)
8014 ("libsndfile" ,libsndfile)
8015 ("libvorbis" ,libvorbis)
8016 ("ncurses" ,ncurses)))
8017 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
8018 (description "Frotz is an interpreter for Infocom games and other Z-machine
8019 games in the text adventure/interactive fiction genre. This version of Frotz
8020 complies with standard 1.0 of Graham Nelson's specification. It plays all
8021 Z-code games V1-V8, including V6, with sound support through libao, and uses
8022 ncurses for text display.")
8023 (home-page "http://frotz.sourceforge.net")
8024 (license license:gpl2+)))
8026 (define-public frotz-dumb-terminal
8028 (name "frotz-dumb-terminal")
8032 (uri (list (string-append
8033 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
8034 "frotz/frotz-" version ".tar.gz")
8036 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
8037 "frotz/frotz-" version ".tar.gz")))
8040 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
8041 (build-system gnu-build-system)
8043 `(#:tests? #f ; there are no tests
8045 (modify-phases %standard-phases
8049 (invoke "make" "dumb")))
8051 (lambda* (#:key outputs #:allow-other-keys)
8052 (let* ((out (assoc-ref outputs "out"))
8053 (bin (string-append out "/bin"))
8054 (man (string-append out "/share/man/man6")))
8055 (install-file "dfrotz" bin)
8057 (install-file "doc/dfrotz.6" man)
8059 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
8060 (description "Frotz is an interpreter for Infocom games and
8061 other Z-machine games in the text adventure/interactive fiction genre.
8062 dfrotz is the dumb interface version. You get no screen control; everything
8063 is just printed to the terminal line by line. The terminal handles all the
8064 scrolling. Maybe you'd like to experience what it's like to play Adventure on
8065 a teletype. A much cooler use for compiling Frotz with the dumb interface is
8066 that it can be wrapped in CGI scripting, PHP, and the like to allow people
8067 to play games on webpages. It can also be made into a chat bot.")
8068 (home-page "http://frotz.sourceforge.net")
8069 (license license:gpl2+)))
8071 (define-public frotz-sdl
8072 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
8079 (url "https://gitlab.com/DavidGriffith/frotz")
8083 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
8084 (file-name (git-file-name name version))))
8085 (build-system gnu-build-system)
8087 `(#:tests? #f ; there are no tests
8089 (modify-phases %standard-phases
8091 (add-before 'build 'patch-makefile
8093 (substitute* "Makefile"
8094 (("lcurses") "lncurses")
8095 (("^BUILD_DATE_TIME =.*$")
8096 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8100 (invoke "make" "sdl")))
8102 (lambda* (#:key outputs #:allow-other-keys)
8103 (let* ((out (assoc-ref outputs "out"))
8104 (bin (string-append out "/bin"))
8105 (man (string-append out "/share/man/man6")))
8106 (install-file "sfrotz" bin)
8108 (install-file "doc/sfrotz.6" man)
8111 `(("pkg-config" ,pkg-config)
8114 (inputs `(("sdl2" ,sdl2)
8115 ("sdl2-mixer" ,sdl2-mixer)
8116 ("libmodplug" ,libmodplug)
8117 ("libsamplerate" ,libsamplerate)
8118 ("libsndfile" ,libsndfile)
8119 ("libvorbis" ,libvorbis)
8120 ("ncurses" ,ncurses)
8121 ("freetype" ,freetype)
8122 ("libjpeg-turbo" ,libjpeg-turbo)))
8123 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8124 (description "Frotz is an interpreter for Infocom games and other Z-machine
8125 games in the text adventure/interactive fiction genre. This version of Frotz
8126 using SDL fully supports all these versions of the Z-Machine including the
8127 graphical version 6. Graphics and sound are created through the use of the SDL
8128 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8129 when packaged in Blorb container files or optionally from individual files.")
8130 (home-page "http://frotz.sourceforge.net")
8131 (license license:gpl2+))))
8133 (define-public frozen-bubble
8134 ;; Last official release is very outdated (2010). Use latest commit (2017).
8135 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8138 (name "frozen-bubble")
8139 (version (git-version "2.2.1" revision commit))
8144 (url "https://github.com/kthakore/frozen-bubble")
8146 (file-name (git-file-name name version))
8148 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8149 (build-system perl-build-system)
8152 (modify-phases %standard-phases
8153 ;; Build process needs to create files in the "server"
8155 (add-after 'unpack 'fix-permissions
8157 (for-each make-file-writable
8158 (find-files "server" "." #:directories? #t))))
8159 ;; By default, build stops at warnings.
8160 (add-after 'unpack 'prevent-build-error
8162 (substitute* "inc/My/Builder.pm"
8165 (add-after 'install 'install-desktop-file-and-icons
8166 (lambda* (#:key outputs #:allow-other-keys)
8167 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8168 (hicolor (string-append share "/icons/hicolor")))
8169 ;; Create desktop entry.
8170 (make-desktop-entry-file
8171 (string-append share "/applications/" ,name ".desktop")
8172 #:name "Frozen Bubble"
8173 #:comment "Frozen Bubble arcade game"
8176 #:categories '("Game" "ArcadeGame"))
8178 (with-directory-excursion "share/icons"
8181 (let* ((dim (string-append size "x" size))
8182 (dir (string-append hicolor "/" dim "/apps")))
8185 (string-append "frozen-bubble-icon-" dim ".png")
8186 (string-append dir "/frozen-bubble.png"))))
8187 '("16" "32" "48" "64"))))
8189 (add-after 'install 'wrap-perl-libs
8190 (lambda* (#:key outputs #:allow-other-keys)
8191 (let ((out (assoc-ref outputs "out"))
8192 (perl5lib (getenv "PERL5LIB")))
8193 (for-each (lambda (prog)
8194 (wrap-program (string-append out "/" prog)
8195 `("PERL5LIB" ":" prefix
8196 (,(string-append perl5lib ":" out
8197 "/lib/perl5/site_perl")))))
8198 (find-files "bin" ".")))
8201 `(("perl-alien-sdl" ,perl-alien-sdl)
8202 ("perl-capture-tiny" ,perl-capture-tiny)
8203 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8204 ("perl-module-build" ,perl-module-build)
8205 ("pkg-config" ,pkg-config)))
8208 ("perl-compress-bzip2" ,perl-compress-bzip2)
8209 ("perl-file-sharedir" ,perl-file-sharedir)
8210 ("perl-file-slurp" ,perl-file-slurp)
8211 ("perl-file-which" ,perl-file-which)
8212 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8213 ("perl-sdl" ,perl-sdl)
8214 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8215 (home-page "http://frozen-bubble.org/")
8216 (synopsis "Puzzle with bubbles")
8218 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8219 you attempt to shoot bubbles into groups of the same color to cause them to
8222 Players compete as penguins and must use the arrow keys to aim a colored
8223 bubble at groups of bubbles. The objective is to clear all the bubbles off
8224 the screen before a bubble passes below a line at the bottom.
8226 It features 100 single-player levels, a two-player mode, music and striking
8227 graphics. A level editor is also included to allow players to create and play
8229 (license license:gpl2))))
8231 (define-public libmanette
8237 (uri (string-append "mirror://gnome/sources/libmanette/"
8238 (version-major+minor version) "/"
8239 "libmanette-" version ".tar.xz"))
8242 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8243 (build-system meson-build-system)
8245 `(("glib" ,glib "bin") ; for glib-compile-resources
8246 ("gobject-introspection" ,gobject-introspection)
8247 ("pkg-config" ,pkg-config)
8250 `(("libevdev" ,libevdev)
8251 ("libgudev" ,libgudev)))
8252 (home-page "https://wiki.gnome.org/Apps/Games")
8253 (synopsis "Game controller library")
8254 (description "Libmanette is a small GObject library giving you simple
8255 access to game controllers. It supports the de-facto standard gamepads as
8256 defined by the W3C standard Gamepad specification or as implemented by the SDL
8258 (license license:lgpl2.1+)))
8260 (define-public quadrapassel
8262 (name "quadrapassel")
8266 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8267 (version-major+minor version) "/"
8268 "quadrapassel-" version ".tar.xz"))
8271 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8272 (build-system meson-build-system)
8276 (modify-phases %standard-phases
8277 (add-after 'unpack 'skip-gtk-update-icon-cache
8278 ;; Don't create 'icon-theme.cache'.
8280 (substitute* "build-aux/meson_post_install.py"
8281 (("gtk-update-icon-cache") (which "true")))
8284 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8285 ("gettext" ,gettext-minimal)
8286 ("glib" ,glib "bin") ;for glib-compile-resources
8287 ("itstool" ,itstool)
8288 ("libxml2" ,libxml2) ;for xmllint
8289 ("pkg-config" ,pkg-config)
8292 `(("clutter" ,clutter)
8293 ("clutter-gtk" ,clutter-gtk)
8296 ("libcanberra" ,libcanberra)
8297 ("libmanette" ,libmanette)
8298 ("librsvg" ,librsvg)))
8299 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8300 (synopsis "GNOME version of Tetris")
8301 (description "Quadrapassel comes from the classic falling-block game,
8302 Tetris. The goal of the game is to create complete horizontal lines of
8303 blocks, which will disappear. The blocks come in seven different shapes made
8304 from four blocks each: one straight, two L-shaped, one square, and two
8305 S-shaped. The blocks fall from the top center of the screen in a random
8306 order. You rotate the blocks and move them across the screen to drop them in
8307 complete lines. You score by dropping blocks fast and completing lines. As
8308 your score gets higher, you level up and the blocks fall faster.")
8309 (license license:gpl2+)))
8311 (define-public endless-sky
8313 (name "endless-sky")
8319 (url "https://github.com/endless-sky/endless-sky")
8320 (commit (string-append "v" version))))
8321 (file-name (git-file-name name version))
8323 (base32 "12iganf8dxiyrjznnabsarxjsr0h717j3k4mz15p0k67wxyahhmf"))))
8324 (build-system scons-build-system)
8326 `(#:scons ,scons-python2
8327 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8329 (modify-phases %standard-phases
8330 (add-after 'unpack 'fix-paths
8331 (lambda* (#:key outputs #:allow-other-keys)
8332 ;; Look for resources in the store directory.
8333 (substitute* "source/Files.cpp"
8334 (("/usr/local") (assoc-ref outputs "out")))
8335 ;; Install game binary into %out/bin.
8336 (substitute* "SConstruct"
8337 (("games\"") "bin\""))))
8338 (add-before 'build 'use-gcc-ar
8339 ;; Use gcc-ar to support LTO.
8340 (lambda _ (setenv "AR" "gcc-ar"))))))
8343 ("libjpeg" ,libjpeg-turbo)
8348 (home-page "https://endless-sky.github.io/")
8349 (synopsis "2D space trading and combat game")
8350 (description "Endless Sky is a 2D space trading and combat game. Explore
8351 other star systems. Earn money by trading, carrying passengers, or completing
8352 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8353 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8354 leave human space behind and hope to find friendly aliens whose culture is more
8355 civilized than your own.")
8356 (license (list license:gpl3+
8359 license:public-domain))))
8361 (define-public stepmania
8364 (version "5.1.0-b2")
8369 (url "https://github.com/stepmania/stepmania")
8370 (commit (string-append "v" version))))
8371 (file-name (git-file-name name version))
8374 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8375 (modules '((guix build utils)))
8378 ;; Remove song files, which are licensed under a non-commercial
8379 ;; clause, and a course pointing to them.
8380 (for-each delete-file-recursively
8381 '("Songs/StepMania 5/Goin' Under"
8382 "Songs/StepMania 5/MechaTribe Assault"
8383 "Songs/StepMania 5/Springtime"))
8384 (for-each delete-file '("Courses/Default/Jupiter.crs"
8385 "Courses/Default/Jupiter.png"))
8387 (substitute* "extern/CMakeLists.txt"
8388 (("include\\(CMakeProject-png.cmake\\)") ""))
8389 (delete-file-recursively "extern/libpng")
8391 (build-system cmake-build-system)
8393 `(#:tests? #f ;FIXME: couldn't find how to run tests
8394 #:build-type "Release"
8395 #:out-of-source? #f ;for the 'install-desktop' phase
8397 (list "-DWITH_SYSTEM_FFMPEG=1"
8398 ;; SSE instructions are available on Intel systems only.
8399 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8403 '("-DWITH_SSE2=NO"))
8404 ;; Configuration cannot find GTK2 without the two following
8406 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8407 (assoc-ref %build-inputs "gtk+")
8408 "/lib/gtk-2.0/include")
8409 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8410 (assoc-ref %build-inputs "glib")
8411 "/lib/glib-2.0/include"))
8413 (modify-phases %standard-phases
8414 (add-after 'unpack 'ensure-application-files-can-be-found
8415 (lambda* (#:key outputs #:allow-other-keys)
8416 (let ((out (assoc-ref outputs "out")))
8417 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8418 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8419 (string-append "\"" out
8420 "/share/stepmania/GtkModule.so\"")))
8421 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8422 (("Root = sDirOfExecutable")
8423 (string-append "Root = \"" out "/share/stepmania/\""))
8424 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8425 (string-append "\"" out "/share/stepmania/" dir "\"")))
8426 (substitute* "src/RageFileManager.cpp"
8427 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8428 (string-append "\"" out "/share/stepmania/\""))))
8430 (add-after 'unpack 'fix-install-subdir
8431 ;; Installation would be done in "%out/stepmania-X.Y", but we
8432 ;; prefer the more common layout "%out/share/stepmania".
8434 (substitute* "src/CMakeLists.txt"
8435 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8437 (add-after 'unpack 'unbundle-libpng
8438 (lambda* (#:key inputs #:allow-other-keys)
8439 (substitute* "src/CMakeLists.txt"
8440 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8441 (string-append (assoc-ref inputs "libpng") "/include")))
8443 (add-after 'install 'install-executable
8444 (lambda* (#:key outputs #:allow-other-keys)
8445 (let* ((out (assoc-ref outputs "out"))
8446 (bin (string-append out "/bin"))
8447 (exe (string-append out "/share/stepmania/stepmania")))
8449 (symlink exe (string-append bin "/stepmania"))
8451 (add-after 'install-executable 'install-desktop
8452 (lambda* (#:key outputs #:allow-other-keys)
8453 (let* ((out (assoc-ref outputs "out"))
8454 (share (string-append out "/share"))
8455 (applications (string-append share "/applications"))
8456 (icons (string-append share "/icons")))
8457 (install-file "stepmania.desktop" applications)
8459 (copy-recursively "icons" icons)
8461 ;; Move documentation in a more usual place, i.e.,
8462 ;; "%out/share/doc/stepmania/".
8463 (add-after 'install-desktop 'install-doc
8464 (lambda* (#:key outputs #:allow-other-keys)
8465 (let* ((out (assoc-ref outputs "out"))
8466 (share (string-append out "/share")))
8467 (with-directory-excursion share
8469 (symlink "../stepmania/Docs" "doc/stepmania"))
8472 `(("pkg-config" ,pkg-config)
8475 `(("alsa-lib" ,alsa-lib)
8476 ;; Per upstream, StepMania is only guaranteed to work with a very
8477 ;; specific FFmpeg version, which is included in the repository as
8478 ;; a Git submodule. This particular version requirement usually
8479 ;; changes every few years.
8480 ("ffmpeg" ,ffmpeg-for-stepmania)
8484 ("jsoncpp" ,jsoncpp)
8486 ("libjpeg" ,libjpeg-turbo)
8490 ("libvorbis" ,libvorbis)
8491 ("libxinerama" ,libxinerama)
8492 ("libxrandr" ,libxrandr)
8495 ("pulseaudio" ,pulseaudio)
8499 (synopsis "Advanced rhythm game designed for both home and arcade use")
8500 (description "StepMania is a dance and rhythm game. It features 3D
8501 graphics, keyboard and dance pad support, and an editor for creating your own
8504 This package provides the core application, but no song is shipped. You need
8505 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8506 (home-page "https://www.stepmania.com")
8507 (license license:expat)))
8517 (url "https://github.com/fmang/oshu")
8519 (file-name (git-file-name name version))
8522 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8523 (build-system cmake-build-system)
8526 (modify-phases %standard-phases
8527 (add-before 'check 'pre-check
8528 ;; `make test' doesn't actually build the test executable
8529 (lambda _ (invoke "make" "zerotokei"))))))
8531 `(("pkg-config" ,pkg-config)))
8537 ("sdl2-image" ,sdl2-image)))
8538 (home-page "https://github.com/fmang/oshu/")
8539 (synopsis "Rhythm game in which you click on circles")
8540 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8541 which is played by pressing buttons and following along sliders as they appear
8542 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8544 This package provides the core application, but no beatmaps. You need to
8545 download and unpack them separately.")
8546 (license license:gpl3+)))
8548 (define-public btanks
8551 (version "0.9.8083")
8555 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8556 "btanks-" version ".tar.bz2"))
8559 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8560 (build-system scons-build-system)
8562 `(#:tests? #f ; there are none
8563 #:scons ,scons-python2
8564 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8566 (modify-phases %standard-phases
8567 (add-after 'unpack 'replace-removed-scons-syntax
8569 (substitute* "SConstruct"
8570 (("Options") "Variables")
8571 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8572 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8574 (add-after 'set-paths 'set-sdl-paths
8575 (lambda* (#:key inputs #:allow-other-keys)
8578 (search-input-file inputs "/include/SDL")
8579 ":" (or (getenv "CPATH") "")))))
8580 (add-after 'unpack 'fix-compilation-errors
8582 (substitute* "mrt/base_file.h"
8583 (("#include <string>" m)
8584 (string-append m "\n#include <sys/types.h>")))
8585 (substitute* '("engine/sl08/sl08.h"
8586 "engine/sl08/sl08.py")
8587 (("signal = NULL") "signal = 0")
8588 (("object\\(NULL\\)") "object(0)")
8589 (("func\\(NULL\\)") "func(0)")
8590 ((" connect\\(signal_ref\\)")
8591 " this->connect(signal_ref)"))
8592 (substitute* "math/range_list.h"
8593 ((" lower_bound\\(value\\)")
8594 " this->lower_bound(value)")
8597 (substitute* "clunk/source.cpp"
8598 (("using namespace clunk" m)
8599 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8601 (add-after 'unpack 'find-lua
8603 (substitute* "engine/SConscript"
8604 (("lua5.1") "lua-5.1")
8605 (("bt_libs.append\\(lua\\)")
8606 "bt_libs.append(\"lua\")"))
8611 ("libsmpeg" ,libsmpeg-with-sdl1)
8612 ("libvorbis" ,libvorbis)
8614 ("sdl" ,(sdl-union (list sdl
8620 `(("pkg-config" ,pkg-config)
8622 (home-page "http://btanks.sourceforge.net")
8623 (synopsis "Multiplayer tank battle game")
8624 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8625 game, where you can choose one of three vehicles and eliminate your enemy
8626 using the whole arsenal of weapons. It has original cartoon-like graphics and
8627 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8629 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8630 ;; released under GPLv2 or later. It comes with extra exceptions for the
8632 (license (list license:gpl2+ license:lgpl2.1+))))
8634 (define-public slimevolley
8636 (name "slimevolley")
8641 (uri (string-append "https://download.tuxfamily.org/slime/"
8642 "slimevolley_" version ".tar.gz"))
8644 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8645 (build-system cmake-build-system)
8647 `(#:tests? #f ;no test
8648 ;; Work around build failure: "error adding symbols: DSO
8649 ;; missing from command line".
8650 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8652 `(("gettext" ,gettext-minimal)))
8654 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8655 (home-page "https://slime.tuxfamily.org/")
8656 (synopsis "Unrealistic 2D volleyball simulation")
8658 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8659 the spirit of some Java games of the same name.
8661 Two teams, 1-3 players each, try to be the first to get 10 points.
8662 This happens when the one ball touches the floor on the other side of
8663 the net. There can be 1 to 8 balls in game. Once one ball touches
8664 the ground, the set ends and all balls are served again.")
8665 (license license:gpl3+)))
8667 (define-public slingshot
8675 (url "https://github.com/ryanakca/slingshot")
8677 (file-name (git-file-name name version))
8680 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8681 (build-system python-build-system)
8683 `(#:python ,python-2))
8685 `(("python-pygame" ,python2-pygame)))
8686 (home-page "https://github.com/ryanakca/slingshot")
8687 (synopsis "Simple 2D shooting strategy game set in space")
8688 (description "Slingshot is a two-dimensional strategy game where two
8689 players attempt to shoot one another through a section of space populated by
8690 planets. The main feature of the game is that the shots, once fired, are
8691 affected by the gravity of the planets.")
8692 (license license:gpl2+)))
8694 (define-public 4dtris
8701 (uri (string-append "https://launchpad.net/4dtris/"
8702 (version-major+minor version)
8703 "/" version "/+download/4dtris_"
8704 version ".orig.tar.gz"))
8707 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8708 (build-system gnu-build-system)
8710 `(#:configure-flags '("CFLAGS=-fcommon")
8712 (modify-phases %standard-phases
8713 (add-after 'unpack 'fix-install-directories
8714 (lambda* (#:key outputs #:allow-other-keys)
8715 (let ((out (assoc-ref outputs "out")))
8716 (substitute* "Makefile.in"
8717 (("bindir = /usr/games")
8718 (string-append "bindir = " out "/bin"))
8719 (("/usr/share/applications")
8720 (string-append out "/share/applications"))
8721 (("/usr/share/games/4dtris")
8722 (string-append out "/share/4dtris"))))
8724 (add-after 'set-paths 'set-sdl-paths
8725 (lambda* (#:key inputs #:allow-other-keys)
8728 (search-input-directory inputs "/include/SDL")
8729 ":" (or (getenv "CPATH") ""))))))))
8731 `(("fontconfig" ,fontconfig)
8732 ("freeglut" ,freeglut)
8733 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8734 (home-page "https://launchpad.net/4dtris/")
8735 (synopsis "4D Tetris")
8736 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8737 game field is extended to 4D space, which has to filled up by the gamer with
8739 (license license:gpl3)))
8741 (define-public arx-libertatis
8743 (name "arx-libertatis")
8748 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8752 "035dflxffa98bxmxkrqfizmhvnr09wyhhmzaqxk92772qil7gkxs"))))
8753 (build-system cmake-build-system)
8754 (outputs '("out" "installer"))
8756 '(#:tests? #f ; No tests.
8758 (modify-phases %standard-phases
8759 (add-after 'unpack 'fix-install-helper-paths
8760 (lambda* (#:key inputs #:allow-other-keys)
8761 (let ((p7zip (assoc-ref inputs "p7zip"))
8762 (innoextract (assoc-ref inputs "innoextract"))
8763 (wget (assoc-ref inputs "wget"))
8764 (zenity (assoc-ref inputs "zenity")))
8765 (substitute* "scripts/arx-install-data"
8766 (("have innoextract")
8767 (string-append "have " innoextract "/bin/innoextract"))
8768 (("then innoextract")
8769 (string-append "then " innoextract "/bin/innoextract"))
8770 (("else innoextract")
8771 (string-append "else " innoextract "/bin/innoextract"))
8772 (("for _extract_zip_sz in 7za 7z")
8773 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8774 (("else if have 7z")
8775 (string-append "else if have " p7zip "/bin/7za"))
8777 (string-append p7zip "/bin/7z x -tiso"))
8779 (string-append "if have " wget "/bin/wget"))
8781 (string-append wget "/bin/wget -O"))
8782 (("for backend in \\$preferred zenity")
8783 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8784 (("zenity +--title")
8785 (string-append zenity "/bin/zenity --title"))
8787 (string-append zenity "/bin/zenity)"))))
8789 (add-after 'install 'move-installer
8790 (lambda* (#:key outputs #:allow-other-keys)
8791 (let ((out (assoc-ref outputs "out"))
8792 (installer (assoc-ref outputs "installer")))
8793 (mkdir-p (string-append installer "/bin"))
8794 (rename-file (string-append out "/bin/arx-install-data")
8795 (string-append installer "/bin/arx-install-data"))))))))
8798 ("libepoxy" ,libepoxy)
8804 ("freetype" ,freetype)
8805 ;; The following are only needed by the arx-install-data script.
8806 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8807 ("zenity" ,zenity) ; GUI for install-helper.
8808 ("wget" ,wget) ; Used by the install-helper to download the patch.
8809 ;; The install-helper needs it to extract the patch.
8810 ("innoextract" ,innoextract)))
8811 (home-page "https://arx-libertatis.org/")
8812 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8813 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8814 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8815 This port however does not include the game data, so you need to obtain a copy
8816 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8817 features crafting, melee and ranged combat, as well as a unique casting system
8818 where the player draws runes in real time to effect the desired spell.")
8819 (license license:gpl3+)))
8821 (define-public edgar
8829 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8830 version "/edgar-" version "-1.tar.gz"))
8832 (base32 "1121rq5wk3g8rs413av84s2kcy6qj6maspgy2vsxs36c2jd3yygl"))))
8833 (build-system gnu-build-system)
8834 (arguments '(#:tests? #f ; there are no tests
8837 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8838 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8840 (modify-phases %standard-phases
8842 (add-before 'build 'fix-env
8843 (lambda* (#:key inputs #:allow-other-keys)
8846 (search-input-file inputs "/include/SDL2")
8847 ":" (or (getenv "CPATH") ""))))))))
8849 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8852 `(("pkg-config" ,pkg-config)
8853 ("autoconf" ,autoconf)
8854 ("automake" ,automake)
8855 ("gnu-gettext" ,gettext-minimal)
8856 ("libtool" ,libtool)
8858 (synopsis "2d action platformer game")
8859 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8860 When Edgar's father fails to return home after venturing out one dark and stormy night,
8861 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8862 a fortress beyond the forbidden swamp.")
8863 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8864 (license license:gpl2+)))
8866 (define-public openclonk
8873 "https://www.openclonk.org/builds/release/" version "/"
8874 "openclonk-" version "-src.tar.bz2"))
8877 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8878 (build-system cmake-build-system)
8880 `(#:configure-flags '("-DAudio_TK=OpenAL")
8881 #:test-target "tests"
8883 (modify-phases %standard-phases
8884 (add-after 'unpack 'prepare-gmock
8885 (lambda* (#:key inputs #:allow-other-keys)
8887 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8888 (substitute* "tests/CMakeLists.txt"
8890 (string-append (getcwd) "/gmock/googlemock"))
8892 (string-append (getcwd) "/gmock/googletest"))
8893 (("PATH_SUFFIXES \"src\" \"gtest\"")
8894 "PATH_SUFFIXES \"src\""))
8896 (add-after 'unpack 'adjust-backward-cpp-includes
8898 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8899 ;; that includes external libraries such as libdl from glibc.
8900 ;; By default, CMake interface includes are treated as "system
8901 ;; headers", and GCC behaves poorly when glibc is passed as a
8902 ;; system header (causing #include_next failures).
8904 ;; Here we prevent targets that consume the Backward::Backward
8905 ;; interface from treating it as "system includes".
8906 (substitute* "CMakeLists.txt"
8907 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8908 (string-append "set_property(TARGET " target " PROPERTY "
8909 "NO_SYSTEM_FROM_IMPORTED true)\n"
8912 (add-after 'unpack 'add-libiberty
8913 ;; Build fails upon linking executables without this.
8915 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8916 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8917 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8919 (add-after 'add-libiberty 'lax-freealut-requirement
8920 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8921 ;; it as 1.0.1. Force minimal version.
8923 (substitute* "cmake/FindAudio.cmake"
8924 (("freealut>=1.1.0") "freealut>=1.0.1"))
8926 (add-after 'lax-freealut-requirement 'fix-directories
8927 ;; Prefer "$out/share/openclonk" over
8928 ;; "$out/share/games/openclonk". Also install "openclonk"
8929 ;; binary in "bin/", not "games/".
8931 (substitute* "CMakeLists.txt"
8932 (("share/games/openclonk") "share/openclonk")
8933 (("TARGETS openclonk DESTINATION games")
8934 "TARGETS openclonk DESTINATION bin"))
8937 `(("googlemock" ,(package-source googletest))
8938 ("googletest" ,googletest)
8939 ("pkg-config" ,pkg-config)))
8941 `(("freealut" ,freealut)
8942 ("freetype" ,freetype)
8944 ("libiberty" ,libiberty)
8945 ("libjpeg" ,libjpeg-turbo)
8948 ("libvorbis" ,libvorbis)
8949 ("libxrandr" ,libxrandr)
8951 ("miniupnpc" ,miniupnpc)
8953 ("qtbase" ,qtbase-5)
8954 ("readline" ,readline)
8956 ("tinyxml" ,tinyxml)
8958 (home-page "https://www.openclonk.org/")
8960 "Multiplayer action game where you control small and nimble humanoids")
8961 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8962 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8963 antfarm-style landscape, the player controls a crew of Clonks, small but
8964 robust humanoid beings. The game encourages free play but the normal goal is
8965 to either exploit valuable resources from the earth by building a mine or
8966 fight each other on an arena-like map.")
8967 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8968 (license (list license:isc license:cc-by3.0))))
8970 (define-public flare-engine
8972 (name "flare-engine")
8977 (url "https://github.com/flareteam/flare-engine")
8978 (commit (string-append "v" version))))
8979 (file-name (git-file-name name version))
8982 "0h4xxj6r194pw68m3ngrnzkh6xgiblyrsc54z8abwba8m0mqbvmk"))))
8983 (build-system cmake-build-system)
8985 `(#:tests? #f ;no test
8986 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8988 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8989 ("python" ,python-wrapper)
8990 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8991 (home-page "http://www.flarerpg.org/")
8992 (synopsis "Action Roleplaying Engine")
8993 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8994 game engine built to handle a very specific kind of game: single-player 2D
8996 (license license:gpl3+)))
8998 (define-public flare-game
9005 (url "https://github.com/flareteam/flare-game")
9006 (commit (string-append "v" version))))
9007 (file-name (git-file-name name version))
9010 "0h9i128kq6disppbrplkf13zdmsg4cq23nim53mgwpawc4mqz7ga"))))
9011 (build-system cmake-build-system)
9013 `(#:tests? #f ;no test
9014 #:configure-flags '("-DDATADIR=share/flare")
9016 (modify-phases %standard-phases
9017 ;; Flare expects the mods to be located in the same folder.
9018 ;; Yet, "default" mod is in the engine, whereas the others
9019 ;; are in the current package. Merge everything here with
9021 (add-after 'install 'add-default-mod
9022 (lambda* (#:key inputs outputs #:allow-other-keys)
9023 (let* ((out (assoc-ref outputs "out"))
9024 (mods (string-append out "/share/flare/mods")))
9025 (with-directory-excursion mods
9026 (symlink (string-append (assoc-ref inputs "flare-engine")
9027 "/share/flare/mods/default")
9030 (add-after 'install 'install-executable
9031 ;; The package only provides assets for the game, the
9032 ;; executable coming from "flare-engine". Since more than
9033 ;; one game may use the engine, we create a new executable,
9034 ;; "flare-game", which launches the engine with appropriate
9036 (lambda* (#:key inputs outputs #:allow-other-keys)
9037 (let* ((out (assoc-ref outputs "out"))
9038 (bash (search-input-file inputs "/bin/bash"))
9039 (flare (search-input-file inputs "/bin/flare"))
9040 (script (string-append out "/bin/flare-game")))
9041 (mkdir-p (dirname script))
9042 (call-with-output-file script
9046 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
9050 (chmod script #o755))
9053 `(("flare-engine" ,flare-engine)))
9054 (home-page "http://www.flarerpg.org/")
9055 (synopsis "Fantasy action RPG using the FLARE engine")
9056 (description "Flare is a single-player 2D action RPG with
9057 fast-paced action and a dark fantasy style.")
9058 (license license:cc-by-sa3.0)))
9060 (define-public meritous
9067 (url "https://gitlab.com/meritous/meritous.git")
9068 (commit (string-append "v" version))))
9069 (file-name (git-file-name name version))
9072 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
9073 (build-system gnu-build-system)
9075 `(#:tests? #f ;no test
9078 (string-append "prefix=" (assoc-ref %outputs "out")))
9080 (modify-phases %standard-phases
9082 (add-after 'unpack 'fix-sdl-path
9083 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
9084 ;; directory, not SDL-union provided as an input to the package.
9085 ;; We force the latter with "--prefix=" option.
9086 (lambda* (#:key inputs #:allow-other-keys)
9087 (substitute* "Makefile"
9088 (("sdl-config" command)
9089 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9091 (add-after 'unpack 'fix-crash
9092 ;; XXX: Songs are not present in the repository, due to licensing
9093 ;; issues. Yet, the game tries to load them, and, since it cannot
9094 ;; find them, crashes. Users cannot add them back, the store being
9095 ;; read-only, so we turn off background music altogether.
9097 (substitute* "src/audio.c"
9098 (("PlayBackgroundMusic\\(new_track\\);" all)
9099 (string-append "// " all)))
9102 `(("intltool" ,intltool)))
9104 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9106 (home-page "https://gitlab.com/meritous/meritous")
9107 (synopsis "Action-adventure dungeon crawl game")
9108 (description "Far below the surface of the planet is a place of limitless
9109 power. Those that seek to control such a utopia will soon bring an end to
9110 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9111 journeys into the hallowed Orcus Dome in search of answers.
9113 Meritous is a action-adventure game with simple controls but a challenge to
9114 find a balance of power versus recovery time during real-time battles. Set in
9115 a procedurally generated world, the player can explore thousands of rooms in
9116 search of powerful artifacts, tools to help them, and to eventually free the
9117 Orcus Dome from evil.")
9118 (license license:gpl3+)))
9120 (define-public marble-marcher
9121 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9124 (name "marble-marcher")
9125 (version (git-version "0" revision commit))
9129 (url "https://github.com/HackerPoet/MarbleMarcher")
9131 (file-name (git-file-name name version))
9134 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9135 (build-system cmake-build-system)
9137 `(#:tests? #f ; there are none
9139 (modify-phases %standard-phases
9140 (add-after 'unpack 'embed-asset-directory
9141 (lambda* (#:key outputs #:allow-other-keys)
9142 (let ((assets (string-append (assoc-ref outputs "out")
9143 "/share/marble-marcher/assets/")))
9144 ;; Some of the files we're patching are
9145 ;; ISO-8859-1-encoded, so choose it as the default
9146 ;; encoding so the byte encoding is preserved.
9147 (with-fluids ((%default-port-encoding #f))
9148 (substitute* "src/Resource.rc"
9149 (("../assets/icon.ico")
9150 (string-append assets "icon.ico")))
9151 (substitute* "src/Res.h"
9152 (("assets/") assets))))
9155 (lambda* (#:key outputs #:allow-other-keys)
9156 (let* ((out (assoc-ref outputs "out"))
9157 (assets (string-append out "/share/marble-marcher/assets"))
9158 (bin (string-append out "/bin/")))
9161 (copy-recursively "../source/assets" assets)
9162 (install-file "MarbleMarcher" bin))
9169 `(("pkg-config" ,pkg-config)))
9170 (home-page "https://codeparade.itch.io/marblemarcher")
9171 (synopsis "Guide a marble across fractal landscapes")
9172 (description "Marble Marcher is a video game that uses a fractal physics
9173 engine and fully procedural rendering to produce beautiful and unique
9174 gameplay. The game is played on the surface of evolving fractals. The goal
9175 of the game is to get your marble to the flag as quickly as possible. But be
9176 careful not to fall off the level or get crushed by the fractal! There are 24
9178 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9179 (license (list license:gpl2+
9181 license:cc-by-sa3.0)))))
9183 ;; This must be updated together with flightgear.
9187 (version "2018.3.5")
9191 (uri (string-append "mirror://sourceforge/flightgear/release-"
9192 (version-major+minor version) "/"
9193 "simgear-" version ".tar.bz2"))
9195 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9196 (build-system cmake-build-system)
9199 (modify-phases %standard-phases
9202 ;; Skip tests that require internet access.
9203 (invoke "ctest" "-E" "(http|dns)"))))))
9205 `(("boost" ,boost-for-mysql) ; fails with 1.69
9210 ("openscenegraph" ,openscenegraph-3.4)
9212 (home-page "https://home.flightgear.org/")
9213 (synopsis "Libraries for 3D simulations and games")
9214 (description "SimGear is a set of libraries designed to be used as
9215 building blocks for quickly assembling 3D simulations, games, and
9216 visualization applications. SimGear is developed by the FlightGear project
9217 and also provides the base for the FlightGear Flight Simulator.")
9218 (license license:lgpl2.0+)))
9220 (define-public flightgear
9223 (version (package-version simgear))
9227 (uri (string-append "mirror://sourceforge/flightgear/release-"
9228 (version-major+minor version) "/"
9229 "flightgear-" version ".tar.bz2"))
9231 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9232 (modules '((guix build utils)))
9235 ;; There are some bundled libraries.
9236 (for-each delete-file-recursively
9237 '("3rdparty/sqlite3/"))
9239 (build-system cmake-build-system)
9242 (list "-DSYSTEM_SQLITE=ON"
9243 (string-append "-DFG_DATA_DIR="
9244 (assoc-ref %outputs "out")
9245 "/share/flightgear"))
9246 ;; TODO: test cannot be run because the "run_test_suite" executable
9247 ;; does not seem to be built.
9250 (modify-phases %standard-phases
9251 (add-after 'install 'wrap-executable
9252 (lambda* (#:key inputs outputs #:allow-other-keys)
9253 (let ((out (assoc-ref outputs "out")))
9254 (wrap-program (string-append out "/bin/fgfs")
9255 `("QT_PLUGIN_PATH" ":" prefix
9256 ,(map (lambda (label)
9257 (string-append (assoc-ref inputs label)
9258 "/lib/qt5/plugins"))
9259 '("qtbase" "qtdeclarative" "qtsvg")))
9260 `("QML2_IMPORT_PATH" ":" prefix
9261 ,(map (lambda (label)
9262 (string-append (assoc-ref inputs label)
9264 '("qtdeclarative" "qtsvg"))))
9266 (add-after 'install 'install-data
9267 (lambda* (#:key inputs outputs #:allow-other-keys)
9268 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9270 (with-directory-excursion share
9271 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9272 "--strip-components=1")))
9275 `(("boost" ,boost-for-mysql) ; same as simgear
9278 ("freeglut" ,freeglut)
9279 ("freetype" ,freetype)
9283 ("openscenegraph" ,openscenegraph-3.4)
9285 ("qtbase" ,qtbase-5)
9286 ("qtdeclarative" ,qtdeclarative)
9288 ("simgear" ,simgear)
9289 ("speexdsp" ,speexdsp)
9293 `(("cppunit" ,cppunit)
9294 ("pkg-config" ,pkg-config)
9295 ("qttools" ,qttools)
9299 (uri (string-append "mirror://sourceforge/flightgear/release-"
9300 (version-major+minor version) "/"
9301 "FlightGear-" version "-data.tar.bz2"))
9304 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9305 (home-page "https://home.flightgear.org/")
9306 (synopsis "Flight simulator")
9307 (description "The goal of the FlightGear project is to create a
9308 sophisticated flight simulator framework for use in research or academic
9309 environments, pilot training, as an industry engineering tool, for DIY-ers to
9310 pursue their favorite interesting flight simulation idea, and last but
9311 certainly not least as a fun, realistic, and challenging desktop flight
9313 (license license:gpl2+)))
9315 (define-public jumpnbump
9322 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9324 (file-name (git-file-name name version))
9327 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9328 (build-system gnu-build-system)
9332 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9333 #:tests? #f ;no test
9335 (modify-phases %standard-phases
9336 (delete 'configure) ;no configure script
9337 (add-after 'unpack 'fix-sdl-path
9338 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9339 ;; directory, not SDL-union provided as an input to the package.
9340 ;; We force the latter with "--prefix=" option.
9341 (lambda* (#:key inputs #:allow-other-keys)
9342 (substitute* "Makefile"
9343 (("sdl2-config" command)
9344 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9348 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9351 `(("gettext" ,gettext-minimal))) ;for msgfmt
9352 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9353 (synopsis "Multiplayer platform game with bunnies")
9354 (description "You, as a bunny, have to jump on your opponents to make them
9355 explode. It is a true multiplayer game; you cannot play this alone. You can
9356 play with up to four players simultaneously. It has network support.")
9357 (license license:gpl2+)))
9359 (define-public hedgewars
9365 (uri (string-append "https://www.hedgewars.org/download/releases/"
9366 "hedgewars-src-" version ".tar.bz2"))
9367 (patches (search-patches "hedgewars-network-bsd.patch"))
9370 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9371 (build-system cmake-build-system)
9373 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9374 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9375 ;; a Pascal to C translator and Clang instead.
9376 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9377 "-Dhaskell_flags=-dynamic;-fPIC")
9379 (modify-phases %standard-phases
9380 (add-before 'configure 'fix-sources
9382 ;; Fix a missing 'include'.
9383 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9384 (("#include <QSizePolicy>")
9385 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9387 (lambda _ (invoke "ctest")))
9388 (add-after 'install 'install-icon
9390 ;; Install icon for the desktop file.
9391 (let* ((out (assoc-ref %outputs "out"))
9392 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9393 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9394 (install-file "misc/hedgewars.png" icons)))
9397 `(("ffmpeg" ,ffmpeg)
9398 ("freeglut" ,freeglut)
9399 ("ghc-entropy" ,ghc-entropy)
9400 ("ghc-hslogger" ,ghc-hslogger)
9401 ("ghc-network" ,ghc-network)
9402 ("ghc-random" ,ghc-random)
9403 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9404 ("ghc-sandi" ,ghc-sandi)
9405 ("ghc-sha" ,ghc-sha)
9406 ("ghc-utf8-string" ,ghc-utf8-string)
9407 ("ghc-vector" ,ghc-vector)
9408 ("ghc-zlib" ,ghc-zlib)
9413 ("qtbase" ,qtbase-5)
9415 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9419 ("pkg-config" ,pkg-config)
9420 ("qttools" ,qttools)))
9421 (home-page "https://hedgewars.org/")
9422 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9424 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9425 featuring the antics of pink hedgehogs with attitude as they battle from the
9426 depths of hell to the depths of space.
9428 As commander, it's your job to assemble your crack team of hedgehog soldiers
9429 and bring the war to your enemy.")
9430 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9431 ;; scripts are distributed under various terms.
9432 (license (list license:gpl2
9433 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9434 license:expat license:fdl1.3+ license:public-domain
9437 (define-public go-github-com-anaseto-gruid
9439 (name "go-github-com-anaseto-gruid")
9445 (url "https://github.com/anaseto/gruid")
9446 (commit (string-append "v" version))))
9447 (file-name (git-file-name name version))
9450 "0rvsavkvg2hziwdh8sjk3n5v92m5mfjb8v9m7ch22maxfwq5kv6y"))))
9451 (build-system go-build-system)
9453 '(#:import-path "github.com/anaseto/gruid"))
9455 `(("go-golang-org-x-image" ,go-golang-org-x-image)))
9456 (home-page "https://github.com/anaseto/gruid")
9457 (synopsis "Cross-platform grid-based UI and game framework")
9458 (description "The gruid module provides packages for easily building
9459 grid-based applications in Go. The library abstracts rendering and input for
9460 different platforms. There are drivers available for terminal apps, native
9461 graphical apps and browser apps. The original application for the library was
9462 creating grid-based games, but it's also well suited for any grid-based
9464 (license license:isc)))
9466 (define-public go-github-com-anaseto-gruid-tcell
9468 (name "go-github-com-anaseto-gruid-tcell")
9474 (url "https://github.com/anaseto/gruid-tcell")
9475 (commit (string-append "v" version))))
9476 (file-name (git-file-name name version))
9479 "09ajr9mbldjfc44qprplbf8dr8yhlbn2nfnas2z62m9wmklc0qiv"))))
9480 (build-system go-build-system)
9482 '(#:import-path "github.com/anaseto/gruid-tcell"))
9484 `(("go-github-com-gdamore-tcell-v2" ,go-github-com-gdamore-tcell-v2)
9485 ("go-github-com-anaseto-gruid" ,go-github-com-anaseto-gruid)))
9486 (home-page "https://github.com/anaseto/gruid-tcell")
9487 (synopsis "Gruid driver using the tcell library")
9488 (description "The gruid-tcell module provides a Gruid driver for building
9489 terminal full-window applications.")
9490 (license license:isc)))
9492 (define-public harmonist
9499 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9500 (commit (string-append "v" version))))
9501 (file-name (git-file-name name version))
9504 "17ai39pw9xq4asfvhs0whx07hljlivygazbwrxjrnxwrn06483hr"))))
9505 (build-system go-build-system)
9507 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9509 `(("go-github-com-gdamore-tcell-v2" ,go-github-com-gdamore-tcell-v2)
9510 ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)
9511 ("go-github-com-anaseto-gruid" ,go-github-com-anaseto-gruid)
9512 ("go-github-com-anaseto-gruid-tcell" ,go-github-com-anaseto-gruid-tcell)))
9513 (home-page "https://harmonist.tuxfamily.org/")
9514 (synopsis "Stealth coffee-break roguelike game")
9515 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9516 coffee-break roguelike game. The game has a heavy focus on tactical
9517 positioning, light and noise mechanisms, making use of various terrain types
9518 and cones of view for monsters. Aiming for a replayable streamlined experience,
9519 the game avoids complex inventory management and character building, relying
9520 on items and player adaptability for character progression.")
9521 (license license:isc)))
9523 (define-public drascula
9529 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9530 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9531 "drascula-" version ".zip"))
9534 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9535 (build-system trivial-build-system)
9537 `(#:modules ((guix build utils))
9540 (use-modules (guix build utils)
9542 (let* ((out (assoc-ref %outputs "out"))
9543 (share (string-append out "/share/drascula"))
9544 (scummvm (assoc-ref %build-inputs "scummvm")))
9546 (let ((unzip (search-input-file %build-inputs "/bin/unzip"))
9547 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9552 (assoc-ref %build-inputs input)
9554 ;; Every input provides "readme.txt", and we want to
9555 ;; preserve them all. Therefore we rename them first.
9558 (rename-file "readme.txt" "readme-international.txt"))
9560 (rename-file "readme.txt" "readme-audio.txt"))
9562 ;; Install documentation.
9563 (for-each (lambda (f) (install-file f doc))
9564 (find-files "." "\\.(txt|doc)$"))
9566 (for-each (lambda (f) (install-file f share))
9567 (find-files "." "\\.(ogg|00[0-9])$")))
9568 '("drascula-audio" "drascula-int" "source")))
9569 ;; Create standalone executable.
9570 (let* ((bin (string-append out "/bin"))
9571 (executable (string-append bin "/drascula"))
9572 (bash (search-input-file %build-inputs "/bin/bash")))
9574 (with-output-to-file executable
9576 (format #t "#!~a~%" bash)
9578 "exec ~a/bin/scummvm --path=~a drascula~%"
9580 (chmod executable #o755))
9581 ;; Create desktop file. There is no dedicated icon for the
9582 ;; game, so we borrow SCUMMVM's.
9583 (let ((apps (string-append out "/share/applications")))
9585 (make-desktop-entry-file
9586 (string-append apps "/drascula.desktop")
9587 #:name "Drascula: The Vampire Strikes Back"
9588 #:generic-name "Drascula"
9589 #:exec (string-append out "/bin/drascula")
9590 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9591 #:categories '("AdventureGame" "Game" "RolePlaying")
9592 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9593 #:comment '((#f "Classic 2D point and click adventure game")
9594 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9595 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9596 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9602 `(("scummvm" ,scummvm)
9604 ,(let ((version "1.1"))
9607 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9608 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9609 "drascula-int-" version ".zip"))
9612 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9614 ,(let ((version "2.0"))
9617 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9618 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9619 "drascula-audio-" version ".zip"))
9622 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9623 (home-page "https://www.scummvm.org")
9624 (synopsis "Classic 2D point and click adventure game")
9625 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9626 point and click adventure game.
9628 In Drascula you play the role of John Hacker, a British estate agent, that
9629 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9630 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9631 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9632 the World and demonstrating that he is even more evil than his brother Vlad.")
9633 ;; Drascula uses a BSD-like license.
9634 (license (license:non-copyleft "file:///readme.txt"))))
9636 (define (make-lure-package name language hash)
9644 "mirror://sourceforge/scummvm/extras/"
9645 "Lure%20of%20the%20Temptress/"
9646 name "-" version ".zip"))
9649 (build-system trivial-build-system)
9651 `(#:modules ((guix build utils))
9654 (use-modules (guix build utils))
9655 (let* ((out (assoc-ref %outputs "out"))
9656 (share (string-append out "/share"))
9657 (data (string-append share "/" ,name "/" ,language))
9658 (apps (string-append share "/applications"))
9659 (bin (string-append out "/bin"))
9660 (executable (string-append bin "/" ,name))
9661 (scummvm (assoc-ref %build-inputs "scummvm")))
9662 (let ((unzip (search-input-file %build-inputs "/bin/unzip")))
9663 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9664 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9665 (for-each (lambda (f) (install-file f doc))
9666 (find-files "." "\\.(txt|PDF|pdf)$")))
9667 (for-each (lambda (f) (install-file f data))
9668 (find-files "." "\\.(vga|VGA)$"))
9669 ;; Build the executable.
9671 (let ((bash (assoc-ref %build-inputs "bash")))
9672 (with-output-to-file executable
9674 (format #t "#!~a/bin/bash~%" bash)
9675 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9676 scummvm ,language data))))
9677 (chmod executable #o755)
9678 ;; Create desktop file. There is no dedicated
9679 ;; icon for the game, so we borrow SCUMMVM's.
9681 (with-output-to-file (string-append apps "/" ,name ".desktop")
9685 Name=Lure of the Temptress~@
9688 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9689 Categories=AdventureGame;Game;RolePlaying;~@
9690 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9691 Comment=Classic 2D point and click adventure game~@
9692 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9693 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9694 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9696 executable scummvm)))
9699 `(("unzip" ,unzip)))
9702 ("scummvm" ,scummvm)))
9703 (home-page "https://www.scummvm.org")
9704 (synopsis "2D point and click fantasy adventure game")
9706 "Lure of the Temptress is a classic 2D point and click adventure game.
9708 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9709 intents and purposes, a good man. After decades of unrest the King has united
9710 the warring factions in his kingdom and all his lands are at peace, except
9711 a remote region around a town called Turnvale. A revolt has recently taken
9712 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9713 Selena, the titular temptress. The king calls together his finest horsemen
9714 and heads off (with you in tow) to Turnvale just to witness how hellish
9715 mercenary monsters called Skorl are invading the town.
9717 The king's men are defeated, the king is killed and you fall of your horse and
9718 bang your head heavily on the ground. You have been *unconscious for a while
9719 when you realize that you are in a dingy cell guarded by a not so friendly
9720 Skorl. Maybe it would be an idea to try and escape...")
9721 (license (license:non-copyleft "file:///README"))))
9725 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9727 (define-public lure-de
9729 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9731 (define-public lure-es
9733 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9735 (define-public lure-fr
9737 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9739 (define-public lure-it
9741 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9743 (define (make-queen-package name file-prefix release language hash)
9750 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9751 "Flight%20of%20the%20Amazon%20Queen/"
9752 file-prefix release ".zip"))
9755 (build-system trivial-build-system)
9757 `(#:modules ((guix build utils))
9760 (use-modules (guix build utils))
9761 (let* ((out (assoc-ref %outputs "out"))
9762 (share (string-append out "/share"))
9763 (data (string-append share "/" ,name))
9764 (apps (string-append share "/applications"))
9765 (bin (string-append out "/bin"))
9766 (executable (string-append bin "/" ,name))
9767 (scummvm (assoc-ref %build-inputs "scummvm")))
9768 (let ((unzip (search-input-file %build-inputs "/bin/unzip")))
9769 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9770 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9771 (install-file "readme.txt" doc))
9772 (install-file "queen.1c" data)
9774 (let ((bash (assoc-ref %build-inputs "bash")))
9775 (with-output-to-file executable
9777 (format #t "#!~a/bin/bash~%" bash)
9778 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9780 (chmod executable #o755)
9781 ;; Create desktop file. There is no dedicated
9782 ;; icon for the game, so we borrow SCUMMVM's.
9784 (with-output-to-file (string-append apps "/" ,name ".desktop")
9788 Name=Flight of the Amazon Queen~@
9790 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~@
9791 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~@
9794 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9795 Categories=AdventureGame;Game;RolePlaying;~@
9796 Keywords=adventure;game;roleplaying;fantasy;~%"
9797 executable scummvm))))
9800 `(("unzip" ,unzip)))
9803 ("scummvm" ,scummvm)))
9804 (home-page "https://www.scummvm.org/")
9805 (synopsis "Classic 2D point and click adventure game")
9806 (description "Flight of the Amazon Queen is a 2D point-and-click
9807 adventure game set in the 1940s.
9809 You assume the role of Joe King, a pilot for hire who is given the job
9810 of flying Faye Russell (a famous movie star) into the Amazon jungle
9811 for a photo shoot. Of course, things never go according to plans.
9812 After an unfortunate turn of events they find themselves stranded in
9813 the heart of the Amazon jungle, where Joe will embark on a quest to
9814 rescue a kidnapped princess and in the process, discover the true
9815 sinister intentions of a suspiciously located Lederhosen company. In
9816 a rich 2D environment, Joe will cross paths with a variety of unlikely
9817 jungle inhabitants including, but not limited to, a tribe of Amazon
9818 women and 6-foot-tall pygmies.")
9819 (license (license:non-copyleft "file:///readme.txt"))))
9821 (define-public queen
9823 "queen" "FOTAQ_Talkie-" "1.1" "en"
9824 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9826 (define-public queen-de
9828 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9829 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9831 (define-public queen-fr
9833 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9834 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9836 (define-public queen-it
9838 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9839 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9844 (version "1.2") ;1.3 is floppy version
9848 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9849 "Beneath%20a%20Steel%20Sky/"
9850 "bass-cd-" version ".zip"))
9852 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9853 (build-system trivial-build-system)
9855 `(#:modules ((guix build utils))
9858 (use-modules (guix build utils))
9859 (let* ((out (assoc-ref %outputs "out"))
9860 (share (string-append out "/share"))
9861 (data (string-append share "/" ,name))
9862 (apps (string-append share "/applications"))
9863 (bin (string-append out "/bin"))
9864 (executable (string-append bin "/" ,name))
9865 (scummvm (assoc-ref %build-inputs "scummvm")))
9866 (let ((unzip (search-input-file %build-inputs "/bin/unzip")))
9867 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9868 (let ((doc (string-append share "/doc/bass-" ,version)))
9869 (install-file "readme.txt" doc))
9870 (for-each (lambda (f) (install-file f data))
9871 (find-files "." "^sky\\."))
9872 ;; Build the executable.
9874 (let ((bash (assoc-ref %build-inputs "bash")))
9875 (with-output-to-file executable
9877 (format #t "#!~a/bin/bash~%" bash)
9878 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9879 (chmod executable #o755)
9880 ;; Create desktop file. There is no dedicated
9881 ;; icon for the game, so we borrow SCUMMVM's.
9883 (with-output-to-file (string-append apps "/" ,name ".desktop")
9887 Name=Beneath a Steel Sky~@
9890 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9891 Categories=AdventureGame;Game;RolePlaying;~@
9892 Keywords=adventure;game;roleplaying;cyberpunk;~@
9893 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9894 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9895 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9897 executable scummvm)))
9900 `(("unzip" ,unzip)))
9903 ("scummvm" ,scummvm)))
9904 (home-page "https://www.scummvm.org/")
9905 (synopsis "Classic 2D point and click science-fiction adventure game")
9907 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9908 post-apocalyptic vision of the future. It revolves around Union City,
9909 where selfishness, rivalry, and corruption by its citizens seems to be
9910 all too common, those who can afford it live underground, away from
9911 the pollution and social problems which are plaguing the city.
9913 You take on the role of Robert Foster, an outcast of sorts from the
9914 city since a boy who was raised in a remote environment outside of
9915 Union City simply termed ``the gap''. Robert's mother took him away
9916 from Union City as a child on their way to ``Hobart'' but the
9917 helicopter crashed on its way. Unfortunately, Robert's mother died,
9918 but he survived and was left to be raised by a local tribe from the
9921 Years later, Union City security drops by and abducts Robert, killing
9922 his tribe in the process; upon reaching the city the helicopter taking
9923 him there crashes with him escaping, high upon a tower block in the
9924 middle of the city. He sets out to discover the truth about his past,
9925 and to seek vengeance for the killing of his tribe.")
9926 (license (license:non-copyleft "file:///readme.txt"))))
9928 (define-public gnurobots
9935 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9939 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9940 (build-system gnu-build-system)
9945 ("readline" ,readline)
9946 ("guile" ,guile-1.8)))
9948 `(("pkg-config" ,pkg-config)))
9952 ;; Do not abort build on "deprecated-declarations" warnings.
9953 "CFLAGS=-Wno-error=deprecated-declarations"
9954 ;; Find readline headers in sub-directory.
9955 (string-append "READLINE_CFLAGS=-I"
9956 (assoc-ref %build-inputs "readline")
9957 "/include/readline/"))
9959 (modify-phases %standard-phases
9960 (add-after 'install 'install-doc
9961 (lambda* (#:key outputs #:allow-other-keys)
9962 (install-file "doc/Robots-HOWTO"
9963 (string-append (assoc-ref outputs "out")
9964 "/share/doc/gnurobots-"
9967 (home-page "https://www.gnu.org/software/gnurobots/")
9968 (synopsis "Program a little robot and watch it explore a world")
9970 "GNU Robots is a game in which you program a robot to explore a world
9971 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9972 the game is to stay alive and collect prizes. The robot program conveniently
9973 may be written in a plain text file in the Scheme programming language.")
9974 (license license:gpl3+)))
9976 (define-public ri-li
9982 (uri (string-append "mirror://sourceforge/ri-li/"
9983 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9984 "Ri-li-" version ".tar.bz2"))
9987 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9989 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9990 ;; It doesn't build otherwise.
9991 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9992 (build-system gnu-build-system)
9995 (modify-phases %standard-phases
9996 ;; Remove "gentoo" subdirectory from Makefile, as it is
9997 ;; missing a make file and generates a build failure.
9998 (add-after 'configure 'fix-build
10000 (substitute* "Makefile"
10003 (add-after 'install 'install-desktop-file
10004 (lambda* (#:key outputs #:allow-other-keys)
10005 (let* ((out (assoc-ref outputs "out"))
10006 (apps (string-append out "/share/applications"))
10007 (pixmaps (string-append out "/share/pixmaps")))
10008 (for-each (lambda (f) (install-file f pixmaps))
10009 (find-files "data" "\\.(png|ico)$"))
10011 (with-output-to-file (string-append apps "/ri-li.desktop")
10016 Exec=~a/bin/Ri_li~@
10017 Icon=~a/Ri-li-icon-32x32.png~@
10018 Categories=Game;ArcadeGame;~@
10019 Keywords=toy;train;wooden;snake-like;engine;~@
10020 Comment=a toy simulator game~@
10021 Comment[de]=Ein Spiel mit einem kleinen Zug~@
10022 Comment[fr]=un jeu de petit train~@
10023 Comment[ro_RO]=un joc cu un tren de jucărie~@
10025 Type=Application~%"
10028 (add-after 'install-desktop-file 'remove-spurious-files
10029 ;; Delete redundant files already installed somewhere else.
10030 (lambda* (#:key outputs #:allow-other-keys)
10031 (let ((out (assoc-ref outputs "out")))
10032 (for-each delete-file
10033 (find-files (string-append out "/share/Ri-li")
10034 "\\.(png|ico)|COPYING"))
10037 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
10038 (home-page "http://www.ri-li.org")
10039 (synopsis "Toy train simulation game")
10040 (description "Ri-li is a game in which you drive a wooden toy
10041 steam locomotive across many levels and collect all the coaches to
10043 ;; The project is dual-licensed GPL2+ and GPL3+.
10044 (license (list license:gpl2+ license:gpl3+))))
10046 (define-public freeorion
10049 (version "0.4.10.2")
10053 (uri (git-reference
10054 (url "https://github.com/freeorion/freeorion")
10055 (commit (string-append "v" version))))
10057 (base32 "12fhwa3cs6lvdbdhina310qk2g7zcphldsh7ibsbxn8d1m731xlk"))
10058 (file-name (git-file-name name version))
10059 (modules '((guix build utils)))
10062 ;; There are some bundled fonts.
10063 (for-each delete-file-recursively '("default/data/fonts"))))))
10064 (build-system cmake-build-system)
10066 '(#:tests? #f ;no test
10068 (modify-phases %standard-phases
10069 (add-after 'unpack 'unbundle-fonts
10070 (lambda* (#:key inputs #:allow-other-keys)
10071 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
10072 "/share/fonts/truetype/")))
10073 (substitute* "UI/ClientUI.cpp"
10074 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
10076 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
10080 ("boost_signals" ,boost-signals2)
10081 ("font-dejavu" ,font-dejavu)
10082 ("font-roboto" ,font-google-roboto)
10083 ("freetype2" ,freetype)
10088 ("libvorbis" ,libvorbis)
10093 (home-page "https://www.freeorion.org/index.php/Main_Page")
10094 (synopsis "Turn-based space empire and galactic conquest computer game")
10096 "FreeOrion is a turn-based space empire and galactic conquest (4X)
10097 computer game being designed and built by the FreeOrion project. Control an
10098 empire with the goal of exploring the galaxy, expanding your territory,
10099 exploiting the resources, and exterminating rival alien empires. FreeOrion is
10100 inspired by the tradition of the Master of Orion games, but is not a clone or
10101 remake of that series or any other game.")
10102 ;; Source code is released under gpl2. Artwork, music and sounds, and
10103 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
10104 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
10105 ;; released under lgpl2.1+.
10106 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
10108 (define-public leela-zero
10110 (name "leela-zero")
10115 (uri (git-reference
10116 (url "https://github.com/leela-zero/leela-zero")
10117 (commit (string-append "v" version))))
10118 (file-name (git-file-name name version))
10121 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10122 (patches (search-patches "leela-zero-gtest.patch"))))
10123 (build-system cmake-build-system)
10125 `(("googletest" ,googletest)))
10128 ("opencl-icd-loader" ,opencl-icd-loader)
10129 ("openblas" ,openblas)
10130 ("opencl-headers" ,opencl-headers)
10131 ("qtbase" ,qtbase-5)
10134 '(#:configure-flags '("-DUSE_BLAS=YES")
10135 #:phases (modify-phases %standard-phases
10136 (add-before 'configure 'fix-tests
10137 (lambda* (#:key outputs #:allow-other-keys)
10138 (let ((home (getcwd)))
10139 (setenv "HOME" home)
10140 (substitute* "src/tests/gtests.cpp"
10141 (("\\.\\./src/tests/0k\\.txt")
10142 (string-append home "/src/tests/0k.txt"))
10143 (("cfg_gtp_mode = true;")
10144 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10148 (invoke "./tests"))))))
10149 (home-page "https://github.com/leela-zero/leela-zero")
10150 (synopsis "Program playing the game of Go")
10152 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10153 the AlphaGo Zero paper. The current best network weights file for the engine
10154 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10155 (license license:gpl3+)))
10157 (define-public q5go
10163 (uri (git-reference
10164 (url "https://github.com/bernds/q5Go")
10165 (commit (string-append "q5go-" version))))
10166 (file-name (git-file-name name version))
10169 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10170 (build-system gnu-build-system)
10172 `(("pkg-config" ,pkg-config)))
10174 `(("qtbase" ,qtbase-5)
10175 ("qtmultimedia" ,qtmultimedia)
10179 (modify-phases %standard-phases
10180 (add-after 'unpack 'fix-configure-script
10182 ;; Bypass the unavailable qtchooser program.
10183 (substitute* "configure"
10184 (("test -z \"QTCHOOSER\"")
10186 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10189 (add-after 'unpack 'fix-header
10191 (substitute* "src/bitarray.h"
10192 (("#include <cstring>" all)
10193 (string-append all "\n#include <stdexcept>")))))
10194 (add-after 'unpack 'fix-paths
10196 (substitute* '("src/pics/Makefile.in"
10197 "src/translations/Makefile.in")
10198 (("\\$\\(datadir\\)/qGo/")
10199 "$(datadir)/q5go/"))
10201 (add-after 'install 'install-desktop-file
10202 (lambda* (#:key outputs #:allow-other-keys)
10203 (let* ((out (assoc-ref outputs "out"))
10204 (apps (string-append out "/share/applications"))
10205 (pics (string-append out "/share/q5go/pics")))
10206 (delete-file-recursively (string-append out "/share/applnk"))
10207 (delete-file-recursively (string-append out "/share/mimelnk"))
10208 (install-file "../source/src/pics/Bowl.ico" pics)
10210 (with-output-to-file (string-append apps "/q5go.desktop")
10218 Comment=Game of Go~@
10219 Comment[de]=Spiel des Go~@
10221 Comment[es]=Juego de Go~@
10222 Comment[fr]=Jeu de Go~@
10227 Type=Application~%"
10230 (synopsis "Qt GUI to play the game of Go")
10232 "This a tool for Go players which performs the following functions:
10235 @item Analysis frontend for Leela Zero (or compatible engines),
10236 @item GTP interface (to play against an engine),
10237 @item IGS client (to play on the internet),
10238 @item Export games to a variety of formats.
10240 (home-page "https://github.com/bernds/q5Go")
10241 (license license:gpl2+)))
10243 (define-public ktuberling
10245 (name "ktuberling")
10246 (version "20.12.0")
10250 (uri (string-append "mirror://kde/stable/release-service/" version
10251 "/src/ktuberling-" version ".tar.xz"))
10253 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10254 (build-system qt-build-system)
10256 `(("extra-cmake-modules" ,extra-cmake-modules)
10257 ("kdoctools" ,kdoctools)
10260 `(("kcompletion" ,kcompletion)
10261 ("kconfigwidgets" ,kconfigwidgets)
10262 ("kcoreaddons" ,kcoreaddons)
10264 ("kdbusaddons" ,kdbusaddons)
10267 ("kwidgetsaddons" ,kwidgetsaddons)
10268 ("kxmlgui" ,kxmlgui)
10269 ("libkdegames" ,libkdegames)
10270 ("python" ,python-wrapper)
10271 ("qtbase" ,qtbase-5)
10272 ("qtmultimedia" ,qtmultimedia)
10273 ("qtdeclarative" ,qtdeclarative)
10275 (home-page "https://games.kde.org/")
10276 (synopsis "Stamp drawing toy")
10277 (description "KTuberling is a drawing toy intended for small children and
10278 adults who remain young at heart. The game has no winner; the only purpose is
10279 to make the funniest faces you can. Several activities are possible, e.g.:
10282 @item Give the potato a funny face, clothes, and other goodies
10283 @item Build a small town, complete with school, zoo, and fire department
10284 @item Create a fantastic moonscape with spaceships and aliens
10288 KTuberling can speak the name of each the object in several languages,
10289 to assist in learning basic vocabulary.
10291 This package is part of the KDE games module.")
10292 (license (list license:gpl2+ license:fdl1.2+))))
10294 (define-public picmi
10297 (version "20.12.0")
10301 (uri (string-append "mirror://kde/stable/release-service/" version
10302 "/src/picmi-" version ".tar.xz"))
10304 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10305 (build-system qt-build-system)
10307 `(("extra-cmake-modules" ,extra-cmake-modules)
10308 ("kdoctools" ,kdoctools)))
10310 `(("kcoreaddons" ,kcoreaddons)
10312 ("kdbusaddons" ,kdbusaddons)
10313 ("kdeclarative" ,kdeclarative)
10316 ("knewstuff" ,knewstuff)
10317 ("kxmlgui" ,kxmlgui)
10318 ("libkdegames" ,libkdegames)
10319 ("qtbase" ,qtbase-5)
10320 ("qtdeclarative" ,qtdeclarative)
10322 (home-page "https://games.kde.org/")
10323 (synopsis "Number logic game")
10324 (description "Picmi is a number logic game in which cells in a grid have
10325 to be colored or left blank according to numbers given at the side of the
10326 grid. The aim is to reveal a hidden picture.
10328 This package is part of the KDE games module.")
10329 (license (list license:gpl2+ license:fdl1.2+))))
10331 (define-public kolf
10334 (version "20.12.0")
10338 (uri (string-append "mirror://kde/stable/release-service/" version
10339 "/src/kolf-" version ".tar.xz"))
10341 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10342 (build-system qt-build-system)
10344 `(("extra-cmake-modules" ,extra-cmake-modules)
10345 ("kdoctools" ,kdoctools)))
10347 `(("kcompletion" ,kcompletion)
10348 ("kconfigwidgets" ,kconfigwidgets)
10349 ("kcoreaddons" ,kcoreaddons)
10351 ("kdbusaddons" ,kdbusaddons)
10354 ("kwidgetsaddons" ,kwidgetsaddons)
10355 ("kxmlgui" ,kxmlgui)
10356 ("ktextwidgets" ,ktextwidgets)
10357 ("libkdegames" ,libkdegames)
10358 ("qtbase" ,qtbase-5)
10359 ("qtdeclarative" ,qtdeclarative)))
10360 (home-page "https://games.kde.org/")
10361 (synopsis "Miniature golf game")
10362 (description "Kolf is a miniature golf game for one to ten players. The
10363 game is played from an overhead view, with a short bar representing the golf
10364 club. Kolf features many different types of objects, such as water hazards,
10365 slopes, sand traps, and black holes (warps), among others.
10369 @item Single and Multi-player (up to ten players) modes
10370 @item High scores table
10371 @item Dynamic courses
10372 @item Third-party courses
10373 @item Course editor
10376 This package is part of the KDE games module.")
10377 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10379 (define-public libkmahjongg
10381 (name "libkmahjongg")
10382 (version "20.12.0")
10386 (uri (string-append "mirror://kde/stable/release-service/"
10387 version "/src/libkmahjongg-" version ".tar.xz"))
10389 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10390 (build-system qt-build-system)
10392 `(("extra-cmake-modules" ,extra-cmake-modules)))
10395 ("kcompletion" ,kcompletion)
10396 ;("kconfig" ,kconfig)
10397 ("kcodecs" ,kcodecs)
10398 ("kconfigwidgets" ,kconfigwidgets)
10399 ("kcoreaddons" ,kcoreaddons)
10401 ("kwidgetsaddons" ,kwidgetsaddons)
10402 ("qtbase" ,qtbase-5)
10404 (home-page "https://games.kde.org/")
10405 (synopsis "Shared library for kmahjongg and kshisen")
10406 (description "Shared library and common files for kmahjongg, kshisen and
10407 other Mah Jongg like games.")
10408 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10410 (define-public kmahjongg
10413 (version "20.12.0")
10417 (uri (string-append "mirror://kde/stable/release-service/"
10418 version "/src/kmahjongg-" version ".tar.xz"))
10420 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10421 (build-system qt-build-system)
10423 `(("extra-cmake-modules" ,extra-cmake-modules)
10424 ("kdoctools" ,kdoctools)))
10426 `(("kcompletion" ,kcompletion)
10428 ("kdbusaddons" ,kdbusaddons)
10429 ("kdeclarative" ,kdeclarative)
10431 ("knewstuff" ,knewstuff)
10432 ("kxmlgui" ,kxmlgui)
10433 ("libkdegames" ,libkdegames)
10434 ("libkmahjongg" ,libkmahjongg)
10435 ("qtbase" ,qtbase-5)
10436 ("qtdeclarative" ,qtdeclarative)
10438 (home-page "https://games.kde.org/")
10439 (synopsis "Tile laying patience")
10440 (description "In KMahjongg the tiles are scrambled and staked on top of
10441 each other to resemble a certain shape. The player is then expected to remove
10442 all the tiles off the game board by locating each tile's matching pair.
10444 A variety of tile layouts are included, as well as an editor to create new
10447 This package is part of the KDE games module.")
10448 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10450 (define-public kshisen
10453 (version "20.12.0")
10457 (uri (string-append "mirror://kde/stable/release-service/"
10458 version "/src/kshisen-" version ".tar.xz"))
10460 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10461 (build-system qt-build-system)
10463 `(("extra-cmake-modules" ,extra-cmake-modules)
10465 ;("pkg-config" ,pkg-config)
10466 ("kdoctools" ,kdoctools)))
10469 ("kcompletion" ,kcompletion)
10470 ("kconfigwidgets" ,kconfigwidgets)
10471 ("kcoreaddons" ,kcoreaddons)
10473 ("kdbusaddons" ,kdbusaddons)
10475 ("kxmlgui" ,kxmlgui)
10476 ("libkdegames" ,libkdegames)
10477 ("libkmahjongg" ,libkmahjongg)
10478 ("qtbase" ,qtbase-5)
10479 ("qtdeclarative" ,qtdeclarative)))
10480 (home-page "https://games.kde.org/")
10481 (synopsis "Shisen-Sho solitaire game")
10482 (description "KShisen is a solitaire-like game played using the standard
10483 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10486 This package is part of the KDE games module.")
10487 (license license:gpl2+)))
10489 (define-public kajongg
10492 (version "20.12.0")
10496 (uri (string-append "mirror://kde/stable/release-service/"
10497 version "/src/kajongg-" version ".tar.xz"))
10499 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10500 (build-system qt-build-system)
10503 (modify-phases %standard-phases
10504 (add-after 'unpack 'fix-paths
10505 (lambda* (#:key inputs #:allow-other-keys)
10506 (substitute* "src/mjresource.py"
10507 (("'share', 'kmahjongglib'" all)
10508 (string-append "'" (assoc-ref inputs "libkmahjongg")
10509 "/share', 'kmahjongglib'")))))
10510 (add-after 'qt-wrap 'wrap
10511 (lambda* (#:key outputs #:allow-other-keys)
10512 (let ((out (assoc-ref outputs "out")))
10513 (for-each (lambda (program)
10514 (wrap-program program
10515 `("GUIX_PYTHONPATH" ":" prefix
10516 (,(getenv "GUIX_PYTHONPATH")))))
10517 (list (string-append out "/bin/kajongg")
10518 (string-append out "/bin/kajonggserver")))))))))
10520 `(("extra-cmake-modules" ,extra-cmake-modules)
10522 ("kdoctools" ,kdoctools)))
10524 `(("kconfig" ,kconfig)
10525 ("kconfigwidgets" ,kconfigwidgets)
10526 ("kcoreaddons" ,kcoreaddons)
10528 ("libkmahjongg" ,libkmahjongg)
10530 ("python-twisted" ,python-twisted)
10531 ("python-pyqt" ,python-pyqt)
10532 ("python-zope-interface" ,python-zope-interface)
10533 ("qtbase" ,qtbase-5)
10535 (home-page "https://games.kde.org/")
10536 (synopsis "Classical Mah Jongg game for 4 players")
10537 (description "Kajongg is the ancient Chinese board game for 4 players.
10539 If you are looking for the Mah Jongg solitaire please use the application
10542 Kajongg can be used in two different ways: Scoring a manual game where you
10543 play as always and use Kajongg for the computation of scores and for
10544 bookkeeping. Or you can use Kajongg to play against any combination of other
10545 human players or computer players.
10547 This package is part of the KDE games module.")
10548 (license (list license:gpl2+ license:fdl1.2+))))
10550 (define-public kbreakout
10553 (version "20.12.0")
10557 (uri (string-append "mirror://kde/stable/release-service/" version
10558 "/src/kbreakout-" version ".tar.xz"))
10560 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10561 (build-system qt-build-system)
10563 `(("extra-cmake-modules" ,extra-cmake-modules)
10564 ("kdoctools" ,kdoctools)))
10566 `(("kcompletion" ,kcompletion)
10567 ("kconfig" ,kconfig)
10568 ("kconfigwidgets" ,kconfigwidgets)
10569 ("kcoreaddons" ,kcoreaddons)
10571 ("kdbusaddons" ,kdbusaddons)
10573 ("kwidgetsaddons" ,kwidgetsaddons)
10574 ("kxmlgui" ,kxmlgui)
10575 ("libkdegames" ,libkdegames)
10576 ("qtbase" ,qtbase-5)
10577 ("qtdeclarative" ,qtdeclarative)))
10578 (home-page "https://games.kde.org/")
10579 (synopsis "Breakout like game")
10580 (description "KBreakout is similar to the classics breakout and xboing,
10581 featuring a number of added graphical enhancements and effects. You control a
10582 paddle at the bottom of the playing-field, and must destroy bricks at the top
10583 by bouncing balls against them.
10585 This package is part of the KDE games module.")
10586 (license (list license:gpl2+ license:fdl1.2+))))
10588 (define-public kmines
10591 (version "20.12.0")
10595 (uri (string-append "mirror://kde/stable/release-service/" version
10596 "/src/kmines-" version ".tar.xz"))
10598 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10599 (build-system qt-build-system)
10601 `(("extra-cmake-modules" ,extra-cmake-modules)
10602 ("kdoctools" ,kdoctools)))
10604 `(("kcompletion" ,kcompletion)
10605 ("kconfig" ,kconfig)
10606 ("kconfigwidgets" ,kconfigwidgets)
10607 ("kcoreaddons" ,kcoreaddons)
10609 ("kdbusaddons" ,kdbusaddons)
10611 ("ktextwidgets" ,ktextwidgets)
10612 ("kwidgetsaddons" ,kwidgetsaddons)
10613 ("kxmlgui" ,kxmlgui)
10614 ("libkdegames" ,libkdegames)
10615 ("qtbase" ,qtbase-5)
10616 ("qtdeclarative" ,qtdeclarative)))
10617 (home-page "https://games.kde.org/")
10618 (synopsis "Classical mine sweeper game")
10619 (description "KMines is a classic Minesweeper game. The idea is to
10620 uncover all the squares without blowing up any mines. When a mine is blown
10621 up, the game is over.
10623 This package is part of the KDE games module.")
10624 (license (list license:gpl2+ license:fdl1.2+))))
10626 (define-public konquest
10629 (version "20.12.0")
10633 (uri (string-append "mirror://kde/stable/release-service/"
10634 version "/src/konquest-" version ".tar.xz"))
10636 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10637 (build-system qt-build-system)
10639 `(("extra-cmake-modules" ,extra-cmake-modules)
10640 ("kdoctools" ,kdoctools)))
10642 `(("kcompletion" ,kcompletion)
10643 ("kconfig" ,kconfig)
10644 ("kcoreaddons" ,kcoreaddons)
10646 ("kdbusaddons" ,kdbusaddons)
10647 ("kguiaddons" ,kguiaddons)
10649 ("kwidgetsaddons" ,kwidgetsaddons)
10650 ("kxmlgui" ,kxmlgui)
10651 ("libkdegames" ,libkdegames)
10652 ("qtbase" ,qtbase-5)
10653 ("qtdeclarative" ,qtdeclarative)
10655 (home-page "https://games.kde.org/")
10656 (synopsis "Simple turn-based strategy game")
10657 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10658 conquer other planets by sending ships to them. The goal is to build an
10659 interstellar empire and ultimately conquer all other player's planets. The
10660 game can be played with up to nine empires, commanded either by the computer
10661 or by puny earthlings.
10663 This package is part of the KDE games module.")
10664 (license (list license:gpl2+ license:fdl1.2+))))
10666 (define-public kbounce
10669 (version "20.12.0")
10673 (uri (string-append "mirror://kde/stable/release-service/"
10674 version "/src/kbounce-" version ".tar.xz"))
10676 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10677 (build-system qt-build-system)
10679 `(("extra-cmake-modules" ,extra-cmake-modules)
10680 ("kdoctools" ,kdoctools)))
10682 `(("kcompletion" ,kcompletion)
10683 ("kconfigwidgets" ,kconfigwidgets)
10684 ("kcoreaddons" ,kcoreaddons)
10686 ("kdbusaddons" ,kdbusaddons)
10689 ("kwidgetsaddons" ,kwidgetsaddons)
10690 ("kxmlgui" ,kxmlgui)
10691 ("libkdegames" ,libkdegames)
10692 ("qtbase" ,qtbase-5)
10693 ("qtdeclarative" ,qtdeclarative)
10695 (home-page "https://games.kde.org/")
10696 (synopsis "Jezzball arcade game")
10697 (description "KBounce is a single player arcade game with the elements of
10698 puzzle. It is played on a field, surrounded by wall, with two or more balls
10699 bouncing around within the walls. The object of the game is to build new
10700 walls to decrease the size of the active field.
10702 This package is part of the KDE games module.")
10703 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10705 (define-public kblocks
10708 (version "20.12.0")
10712 (uri (string-append "mirror://kde/stable/release-service/"
10713 version "/src/kblocks-" version ".tar.xz"))
10715 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10716 (build-system qt-build-system)
10718 `(("extra-cmake-modules" ,extra-cmake-modules)
10719 ("kdoctools" ,kdoctools)))
10721 `(("kcompletion" ,kcompletion)
10722 ("kconfig" ,kconfig)
10723 ("kconfigwidgets" ,kconfigwidgets)
10724 ("kcoreaddons" ,kcoreaddons)
10726 ("kdbusaddons" ,kdbusaddons)
10728 ("kwidgetsaddons" ,kwidgetsaddons)
10729 ("kxmlgui" ,kxmlgui)
10730 ("libkdegames" ,libkdegames)
10731 ("qtbase" ,qtbase-5)
10732 ("qtdeclarative" ,qtdeclarative)
10734 (home-page "https://games.kde.org/")
10735 (synopsis "Single player falling blocks puzzle game")
10736 (description "KBlocks is the classic Tetris-like falling blocks game.
10738 The idea is to stack the falling blocks to create horizontal lines without any
10739 gaps. When a line is completed it is removed, and more space is available in
10740 the play area. When there is not enough space for blocks to fall, the game is
10743 This package is part of the KDE games module.")
10744 (license (list license:gpl2+ license:fdl1.2+))))
10746 (define-public ksudoku
10749 (version "20.12.0")
10753 (uri (string-append "mirror://kde/stable/release-service/"
10754 version "/src/ksudoku-" version ".tar.xz"))
10756 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10757 (build-system qt-build-system)
10759 `(("extra-cmake-modules" ,extra-cmake-modules)
10760 ("kdoctools" ,kdoctools)))
10762 `(("karchive" ,karchive)
10763 ("kconfig" ,kconfig)
10764 ("kconfigwidgets" ,kconfigwidgets)
10765 ("kcoreaddons" ,kcoreaddons)
10767 ("kguiaddons" ,kguiaddons)
10769 ("kiconthemes" ,kiconthemes)
10771 ("kwidgetsaddons" ,kwidgetsaddons)
10772 ("kxmlgui" ,kxmlgui)
10773 ("libkdegames" ,libkdegames)
10775 ("qtbase" ,qtbase-5)
10776 ("qtdeclarative" ,qtdeclarative)
10778 (home-page "https://games.kde.org/")
10779 (synopsis "Sudoku puzzle game and solver")
10780 (description "KSudoku is a Sudoku game and solver, supporting a range of
10781 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10782 puzzle sheets and find the solution to any Sudoku puzzle.
10784 The word Sudoku means \"single number in an allotted place\" in Japanese.
10785 These are the basic rules: Every Sudoku is a square divided into 3x3
10786 subsquares with 3x3 cells each.
10788 Some cells are filled with a number at the beginning. The remaining ones are
10789 to be filled by the player using numbers from 1 to 9, without repeating a
10790 number twice on each column, row or subsquare (each of them must contain only
10791 one 1, one 2, one 3, and so on). The game requires logic and patience.
10792 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10795 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10796 board we use letters): arithmetic relationships between numbers are
10799 This program supports also 16x16 games with numbers from 1 to 16 and 256
10800 cells with 16 cols, rows and subsquares!
10802 More information at http://en.wikipedia.org/wiki/Sudoku
10804 This package is part of the KDE games module.")
10805 (license (list license:gpl2+ license:fdl1.2+))))
10807 (define-public klines
10810 (version "20.12.0")
10814 (uri (string-append "mirror://kde/stable/release-service/" version
10815 "/src/klines-" version ".tar.xz"))
10817 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10818 (build-system qt-build-system)
10820 `(("extra-cmake-modules" ,extra-cmake-modules)
10821 ("kdoctools" ,kdoctools)))
10823 `(("kcompletion" ,kcompletion)
10824 ("kconfigwidgets" ,kconfigwidgets)
10825 ("kcoreaddons" ,kcoreaddons)
10827 ("kdbusaddons" ,kdbusaddons)
10829 ("kwidgetsaddons" ,kwidgetsaddons)
10830 ("kxmlgui" ,kxmlgui)
10831 ("libkdegames" ,libkdegames)
10832 ("qtbase" ,qtbase-5)
10833 ("qtdeclarative" ,qtdeclarative)))
10834 (home-page "https://games.kde.org/")
10835 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10836 (description "KLines is a simple but highly addictive one player game.
10838 The player has to move the colored balls around the game board, gathering them
10839 into the lines of the same color by five. Once the line is complete it is
10840 removed from the board, therefore freeing precious space. In the same time
10841 the new balls keep arriving by three after each move, filling up the game
10844 KLines is a single-player game where the player removes colored balls from the
10845 board by arranging them into lines of five or more. However, every time the
10846 player moves a ball, three more balls are added to the board.
10848 This package is part of the KDE games module.")
10849 (license (list license:gpl2+ license:fdl1.2+))))
10851 (define-public kgoldrunner
10853 (name "kgoldrunner")
10854 (version "20.12.0")
10858 (uri (string-append "mirror://kde/stable/release-service/" version
10859 "/src/kgoldrunner-" version ".tar.xz"))
10861 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10862 (build-system qt-build-system)
10864 `(("extra-cmake-modules" ,extra-cmake-modules)
10865 ("kdoctools" ,kdoctools)))
10867 `(("kcompletion" ,kcompletion)
10868 ("kcoreaddons" ,kcoreaddons)
10870 ("kdbusaddons" ,kdbusaddons)
10873 ("kwidgetsaddons" ,kwidgetsaddons)
10874 ("kxmlgui" ,kxmlgui)
10875 ("libkdegames" ,libkdegames)
10876 ("qtbase" ,qtbase-5)
10877 ("qtdeclarative" ,qtdeclarative)))
10878 (home-page "https://games.kde.org/")
10879 (synopsis "Action and puzzle solving game")
10880 (description "KGoldrunner is an action game where the hero runs through a
10881 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10882 gold nuggets and escape to the next level. Your enemies are also after the
10883 gold. Worse still, they are after you!.
10885 KGoldrunner is a fast-paced platform game where the player must navigate a
10886 maze while collecting gold nuggets and avoiding enemies. A variety of level
10887 packs are included, as well as an editor to create new levels.
10889 This package is part of the KDE games module.")
10890 (license (list license:gpl2+ license:fdl1.2+))))
10892 (define-public kdiamond
10895 (version "20.12.0")
10899 (uri (string-append "mirror://kde/stable/release-service/" version
10900 "/src/kdiamond-" version ".tar.xz"))
10902 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10903 (build-system qt-build-system)
10905 `(("extra-cmake-modules" ,extra-cmake-modules)
10906 ("kdoctools" ,kdoctools)))
10908 `(("kcompletion" ,kcompletion)
10909 ("kconfig" ,kconfig)
10910 ("kconfigwidgets" ,kconfigwidgets)
10911 ("kcoreaddons" ,kcoreaddons)
10913 ("kdbusaddons" ,kdbusaddons)
10915 ("knotifications" ,knotifications)
10916 ("knotifyconfig" ,knotifyconfig)
10917 ("kwidgetsaddons" ,kwidgetsaddons)
10918 ("kxmlgui" ,kxmlgui)
10919 ("libkdegames" ,libkdegames)
10920 ("qtbase" ,qtbase-5)
10921 ("qtdeclarative" ,qtdeclarative)))
10922 (home-page "https://games.kde.org/")
10923 (synopsis "Three-in-a-row game")
10924 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10925 features unlimited fun with randomly generated games and five difficulty
10926 levels with varying number of diamond colors and board sizes.
10928 This package is part of the KDE games module.")
10929 (license (list license:gpl2+ license:fdl1.2+))))
10931 (define-public kfourinline
10933 (name "kfourinline")
10934 (version "20.12.0")
10938 (uri (string-append "mirror://kde/stable/release-service/" version
10939 "/src/kfourinline-" version ".tar.xz"))
10941 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10942 (build-system qt-build-system)
10944 `(("extra-cmake-modules" ,extra-cmake-modules)
10945 ("kdoctools" ,kdoctools)))
10947 `(("kcompletion" ,kcompletion)
10948 ("kconfig" ,kconfig)
10949 ("kconfigwidgets" ,kconfigwidgets)
10950 ("kcoreaddons" ,kcoreaddons)
10954 ("kxmlgui" ,kxmlgui)
10955 ("libkdegames" ,libkdegames)
10956 ("qtbase" ,qtbase-5)
10957 ("qtdeclarative" ,qtdeclarative)
10959 (home-page "https://games.kde.org/")
10960 (synopsis "Place 4 pieces in a row")
10961 (description "KFourInLine is a board game for two players based on the
10964 KFourInLine is a game where two players take turns dropping pieces into a
10965 grid, the winner being the first to place four pieces in a line.
10967 This package is part of the KDE games module.")
10968 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10970 (define-public kblackbox
10973 (version "20.12.0")
10977 (uri (string-append "mirror://kde/stable/release-service/" version
10978 "/src/kblackbox-" version ".tar.xz"))
10980 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10981 (build-system qt-build-system)
10983 `(("extra-cmake-modules" ,extra-cmake-modules)
10984 ("kdoctools" ,kdoctools)))
10986 `(("karchive" ,karchive)
10987 ("kcompletion" ,kcompletion)
10988 ("kconfig" ,kconfig)
10989 ("kcoreaddons" ,kcoreaddons)
10991 ("kdbusaddons" ,kdbusaddons)
10993 ("ktextwidgets" ,ktextwidgets)
10994 ("kxmlgui" ,kxmlgui)
10995 ("libkdegames" ,libkdegames)
10996 ("qtbase" ,qtbase-5)
10997 ("qtdeclarative" ,qtdeclarative)
10999 (home-page "https://games.kde.org/")
11000 (synopsis "Find atoms in a grid by shooting electrons")
11001 (description "KBlackbox is a game of hide and seek played on a grid of
11002 boxes where the computer has hidden several balls. The position of the hidden
11003 balls can be deduced by shooting beams into the box
11005 KBlackBox is a game of hide and seek played on an grid of boxes, where the
11006 player shoots rays into the grid to deduce the positions of hidden objects.
11008 This package is part of the KDE games module.")
11009 (license (list license:gpl2+ license:fdl1.2+))))
11011 (define-public knetwalk
11014 (version "20.12.0")
11018 (uri (string-append "mirror://kde/stable/release-service/" version
11019 "/src/knetwalk-" version ".tar.xz"))
11021 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
11022 (build-system qt-build-system)
11024 `(("extra-cmake-modules" ,extra-cmake-modules)
11025 ("kdoctools" ,kdoctools)))
11027 `(("kcompletion" ,kcompletion)
11028 ("kconfig" ,kconfig)
11029 ("kconfigwidgets" ,kconfigwidgets)
11030 ("kcoreaddons" ,kcoreaddons)
11032 ("kdbusaddons" ,kdbusaddons)
11034 ("ktextwidgets" ,ktextwidgets)
11035 ("kwidgetsaddons" ,kwidgetsaddons)
11036 ("kxmlgui" ,kxmlgui)
11037 ("libkdegames" ,libkdegames)
11038 ("qtbase" ,qtbase-5)
11039 ("qtdeclarative" ,qtdeclarative)))
11040 (home-page "https://games.kde.org/")
11041 (synopsis "Turn the board pieces to get all computers connected")
11042 (description "KNetWalk is a small game where you have to build up a
11043 computer network by rotating the wires to connect the terminals to the server.
11044 When the network is build, a highscore-list comes up where competitions can be
11047 KNetwalk is a puzzle game where the player arranges sections of wire to
11048 connect all the computers on the board.
11050 This package is part of the KDE games module.")
11051 (license (list license:gpl2+ license:fdl1.2+))))
11053 (define-public bomber
11056 (version "20.12.0")
11060 (uri (string-append "mirror://kde/stable/release-service/" version
11061 "/src/bomber-" version ".tar.xz"))
11063 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
11064 (build-system qt-build-system)
11066 `(("extra-cmake-modules" ,extra-cmake-modules)
11067 ("kdoctools" ,kdoctools)))
11069 `(("kcompletiom" ,kcompletion)
11070 ("kconfig" ,kconfig)
11071 ("kcoreaddons" ,kcoreaddons)
11073 ("kdbusaddons" ,kdbusaddons)
11075 ("kxmlgui" ,kxmlgui)
11076 ("libkdegames" ,libkdegames)
11077 ("qtbase" ,qtbase-5)
11078 ("qtdeclarative" ,qtdeclarative)))
11079 (home-page "https://games.kde.org/")
11080 (synopsis "Arcade bombing game")
11081 (description "Bomber is a single player arcade game.
11083 The player is invading various cities in a plane that is decreasing in height.
11084 The goal of the game is to destroy all the buildings and advance to the next
11085 level. Each level gets a bit harder by increasing the speed of the plane and
11086 the height of the buildings.
11088 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
11089 below you. Each pass the spaceship makes, it gets lower and lower. If you've
11090 not destroyed a building in your path, you will crash into it.
11092 This package is part of the KDE games module.")
11093 (license (list license:gpl2+ license:fdl1.2+))))
11095 (define-public granatier
11098 (version "20.12.0")
11102 (uri (string-append "mirror://kde/stable/release-service/" version
11103 "/src/granatier-" version ".tar.xz"))
11105 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
11106 (build-system qt-build-system)
11108 `(("extra-cmake-modules" ,extra-cmake-modules)
11109 ("kdoctools" ,kdoctools)))
11111 `(("kcompletion" ,kcompletion)
11112 ("kconfig" ,kconfig)
11113 ("kconfigwidgets" ,kconfigwidgets)
11114 ("kcoreaddons" ,kcoreaddons)
11116 ("kdbusaddons" ,kdbusaddons)
11118 ("knewstuff" ,knewstuff)
11119 ("kwidgetsaddons" ,kwidgetsaddons)
11120 ("kxmlgui" ,kxmlgui)
11121 ("libkdegames" ,libkdegames)
11122 ("qtbase" ,qtbase-5)
11123 ("qtdeclarative" ,qtdeclarative)
11125 (home-page "https://games.kde.org/")
11126 (synopsis "Bomberman clone")
11127 (description "Granatier is a clone of the classic Bomberman game,
11128 inspired by the work of the Clanbomber clone.
11130 This package is part of the KDE games module.")
11131 (license (list license:gpl2+ license:fdl1.2+))))
11133 (define-public ksirk
11136 (version "20.12.0")
11140 (uri (string-append "mirror://kde/stable/release-service/" version
11141 "/src/ksirk-" version ".tar.xz"))
11143 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11144 (build-system qt-build-system)
11146 `(("extra-cmake-modules" ,extra-cmake-modules)
11147 ("kdoctools" ,kdoctools)))
11149 `(("kcrash" ,kcrash)
11151 ("kiconthemes" ,kiconthemes)
11153 ("knewstuff" ,knewstuff)
11154 ("kwallet" ,kwallet)
11155 ("kxmlgui" ,kxmlgui)
11156 ("libkdegames" ,libkdegames)
11159 ("qtbase" ,qtbase-5)
11160 ("qtdeclarative" ,qtdeclarative)
11163 (home-page "https://games.kde.org/")
11164 (synopsis "Computerized version of the well known strategy board game
11166 (description "KsirK is a multi-player network-enabled game. The goal of
11167 the game is simply to conquer the world by attacking your neighbors with your
11170 At the beginning of the game, countries are distributed to all the players.
11171 Each country contains one army represented by an infantryman. Each player has
11172 some armies to distribute to his countries. On each turn, each player can
11173 attack his neighbours, eventually conquering one or more countries. At the
11174 end of each turn, some bonus armies are distributed to the players in function
11175 of the number of countries they own. The winner is the player that conquered
11180 @item Support for 1-6 human or computer players
11181 @item Multi-player gaming over a network
11182 @item You can easily create new skins with SVG graphics and the skin editor
11183 @item Hot New Stuff support. You can easily download and install new skins
11186 This package is part of the KDE games module.")
11187 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11189 (define-public palapeli
11192 (version "20.12.0")
11196 (uri (string-append "mirror://kde/stable/release-service/" version
11197 "/src/palapeli-" version ".tar.xz"))
11199 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11200 (build-system qt-build-system)
11202 `(("extra-cmake-modules" ,extra-cmake-modules)
11203 ("kdoctools" ,kdoctools)))
11205 `(("karchive" ,karchive)
11206 ("kcompletion" ,kcompletion)
11207 ("kconfig" ,kconfig)
11208 ("kconfigwidgets" ,kconfigwidgets)
11209 ("kcoreaddons" ,kcoreaddons)
11215 ("kitemviews" ,kitemviews)
11216 ("knotifications" ,knotifications)
11217 ("kservice" ,kservice)
11218 ("kwidgetsaddons" ,kwidgetsaddons)
11219 ("kxmlgui" ,kxmlgui)
11220 ("libkdegames" ,libkdegames)
11221 ("qtbase" ,qtbase-5)
11222 ("qtdeclarative" ,qtdeclarative)
11224 ("shared-mime-info" ,shared-mime-info)))
11225 (home-page "https://games.kde.org/")
11226 (synopsis "Jigsaw puzzle game")
11227 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11228 that genre, you are not limited to aligning pieces on imaginary grids. The
11229 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11230 everything you do is saved on your disk immediately.
11232 Palapeli is the Finnish word for jigsaw puzzle.
11234 This package is part of the KDE games module.")
11235 (license license:gpl2+)))
11237 (define-public kiriki
11240 (version "20.12.0")
11244 (uri (string-append "mirror://kde/stable/release-service/" version
11245 "/src/kiriki-" version ".tar.xz"))
11247 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11248 (build-system qt-build-system)
11250 `(("extra-cmake-modules" ,extra-cmake-modules)
11251 ("kdoctools" ,kdoctools)))
11253 `(("kcompletion" ,kcompletion)
11254 ("kconfig" ,kconfig)
11255 ("kconfigwidgets" ,kconfigwidgets)
11256 ("kcoreaddons" ,kcoreaddons)
11258 ("kdbusaddons" ,kdbusaddons)
11260 ("kiconthemes" ,kiconthemes)
11261 ("kxmlgui" ,kxmlgui)
11262 ("libkdegames" ,libkdegames)
11263 ("qtbase" ,qtbase-5)
11264 ("qtdeclarative" ,qtdeclarative)))
11265 (home-page "https://games.kde.org/")
11266 (synopsis "Yahtzee dice game")
11267 (description "Kiriki is an addictive and fun dice game, designed to be
11268 played by as many as six players.
11270 Participants have to collect points by rolling five dice for up to three times
11271 per single turn to make combinations with the highest score.
11273 This package is part of the KDE games module.")
11274 (license (list license:gpl2+ license:fdl1.2+))))
11276 (define-public kigo
11279 (version "20.12.0")
11283 (uri (string-append "mirror://kde/stable/release-service/" version
11284 "/src/kigo-" version ".tar.xz"))
11286 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11287 (build-system qt-build-system)
11289 `(("extra-cmake-modules" ,extra-cmake-modules)
11290 ("kdoctools" ,kdoctools)))
11292 `(("kconfig" ,kconfig)
11293 ("kconfigwidgets" ,kconfigwidgets)
11294 ("kcoreaddons" ,kcoreaddons)
11296 ("kdbusaddons" ,kdbusaddons)
11299 ("knewstuff" ,knewstuff)
11300 ("ktextwidgets" ,ktextwidgets)
11301 ("kxmlgui" ,kxmlgui)
11302 ("libkdegames" ,libkdegames)
11303 ("qtbase" ,qtbase-5)
11304 ("qtdeclarative" ,qtdeclarative)
11306 (home-page "https://games.kde.org/")
11307 (synopsis "Go board game")
11308 (description "Kigo is an open-source implementation of the popular Go
11311 Go is a strategic board game for two players. It is also known as
11312 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11313 for being rich in strategic complexity despite its simple rules. The game is
11314 played by two players who alternately place black and white stones (playing
11315 pieces, now usually made of glass or plastic) on the vacant intersections of a
11316 grid of 19x19 lines (9x9 or 13x13 for easier games).
11318 You also need to install a go engine, e.g. @code{gnugo}.
11320 This package is part of the KDE games module.")
11321 (license license:gpl3+)))
11323 (define-public kubrick
11326 (version "20.12.0")
11330 (uri (string-append "mirror://kde/stable/release-service/" version
11331 "/src/kubrick-" version ".tar.xz"))
11333 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11334 (build-system qt-build-system)
11336 `(("extra-cmake-modules" ,extra-cmake-modules)
11337 ("kdoctools" ,kdoctools)))
11340 ("kconfig" ,kconfig)
11341 ("kconfigwidgets" ,kconfigwidgets)
11342 ("kcoreaddons" ,kcoreaddons)
11346 ("kwidgetsaddons" ,kwidgetsaddons)
11347 ("kxmlgui" ,kxmlgui)
11348 ("libkdegames" ,libkdegames)
11349 ("qtbase" ,qtbase-5)
11350 ("qtdeclarative" ,qtdeclarative)
11352 (home-page "https://games.kde.org/")
11353 (synopsis "Game based on Rubik's Cube")
11354 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11356 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11357 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11358 selection of puzzles at several levels of difficulty, as well as demos of
11359 pretty patterns and solution moves, or you can make up your own puzzles. The
11360 game has unlimited undo, redo, save and reload capabilities.
11362 This package is part of the KDE games module.")
11363 (license (list license:gpl2+ license:fdl1.2+))))
11365 (define-public lskat
11368 (version "20.12.0")
11372 (uri (string-append "mirror://kde/stable/release-service/" version
11373 "/src/lskat-" version ".tar.xz"))
11375 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11376 (build-system qt-build-system)
11378 `(("extra-cmake-modules" ,extra-cmake-modules)
11379 ("kdoctools" ,kdoctools)))
11381 `(("kcompletion" ,kcompletion)
11382 ("kconfig" ,kconfig)
11383 ("kcoreaddons" ,kcoreaddons)
11385 ("kguiaddons" ,kguiaddons)
11387 ("kwidgetsaddons" ,kwidgetsaddons)
11388 ("kxmlgui" ,kxmlgui)
11389 ("libkdegames" ,libkdegames)
11390 ("qtbase" ,qtbase-5)
11391 ("qtdeclarative" ,qtdeclarative)
11393 (home-page "https://games.kde.org/")
11394 (synopsis "Lieutnant Skat card game")
11395 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11396 engaging card game for two players, where the second player is either live
11397 opponent, or a built in artificial intelligence.
11399 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11401 This package is part of the KDE games module.")
11402 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11404 (define-public kapman
11407 (version "20.12.0")
11411 (uri (string-append "mirror://kde/stable/release-service/" version
11412 "/src/kapman-" version ".tar.xz"))
11414 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11415 (build-system qt-build-system)
11417 `(("extra-cmake-modules" ,extra-cmake-modules)
11418 ("kdoctools" ,kdoctools)))
11420 `(("kcompletion" ,kcompletion)
11421 ("kconfig" ,kconfig)
11422 ("kconfigwidgets" ,kconfigwidgets)
11423 ("kcoreaddons" ,kcoreaddons)
11425 ("kdbusaddons" ,kdbusaddons)
11427 ("kxmlgui" ,kxmlgui)
11428 ("libkdegames" ,libkdegames)
11429 ("qtbase" ,qtbase-5)
11430 ("qtdeclarative" ,qtdeclarative)
11432 (home-page "https://games.kde.org/")
11433 (synopsis "Pac-Man clone")
11434 (description "Kapman is a clone of the well known game Pac-Man.
11436 You must run through the maze to eat all pills without being captured by a
11437 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11438 few seconds. When a stage is cleared of pills and energizer the player is
11439 taken to the next stage with slightly increased game speed
11441 This package is part of the KDE games module.")
11442 (license (list license:gpl2+ license:fdl1.2+))))
11444 (define-public kspaceduel
11446 (name "kspaceduel")
11447 (version "20.12.0")
11451 (uri (string-append "mirror://kde/stable/release-service/" version
11452 "/src/kspaceduel-" version ".tar.xz"))
11454 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11455 (build-system qt-build-system)
11457 `(("extra-cmake-modules" ,extra-cmake-modules)
11458 ("kdoctools" ,kdoctools)))
11460 `(("kcompletion" ,kcompletion)
11461 ("kconfig" ,kconfig)
11462 ("kconfigwidgets" ,kconfigwidgets)
11463 ("kcoreaddons" ,kcoreaddons)
11465 ("kdbusaddons" ,kdbusaddons)
11467 ("kxmlgui" ,kxmlgui)
11468 ("libkdegames" ,libkdegames)
11469 ("qtbase" ,qtbase-5)
11470 ("qtdeclarative" ,qtdeclarative)
11472 (home-page "https://games.kde.org/")
11473 (synopsis "Two player game with shooting spaceships flying around a sun")
11474 (description "KSpaceduel is a space battle game for one or two players,
11475 where two ships fly around a star in a struggle to be the only survivor.
11477 This package is part of the KDE games module.")
11478 (license (list license:gpl2+ license:fdl1.2+))))
11480 (define-public bovo
11483 (version "20.12.0")
11487 (uri (string-append "mirror://kde/stable/release-service/" version
11488 "/src/bovo-" version ".tar.xz"))
11490 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11491 (build-system qt-build-system)
11493 `(("extra-cmake-modules" ,extra-cmake-modules)
11494 ("kdoctools" ,kdoctools)))
11496 `(("kcompletion" ,kcompletion)
11497 ("kcoreaddons" ,kcoreaddons)
11499 ("kdbusaddons" ,kdbusaddons)
11501 ("kxmlgui" ,kxmlgui)
11502 ("libkdegames" ,libkdegames)
11503 ("qtbase" ,qtbase-5)
11504 ("qtdeclarative" ,qtdeclarative)
11506 (home-page "https://games.kde.org/")
11507 (synopsis "Classic pen and paper game: five in a line")
11508 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11509 points\") like game for two players, where the opponents alternate in placing
11510 their respective pictogram on the game board. The winner is the first to
11511 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11512 X and O, Naughts and Crosses)
11514 This package is part of the KDE games module.")
11515 (license (list license:gpl2+ license:fdl1.2+))))
11517 (define-public killbots
11520 (version "20.12.0")
11524 (uri (string-append "mirror://kde/stable/release-service/" version
11525 "/src/killbots-" version ".tar.xz"))
11527 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11528 (build-system qt-build-system)
11530 `(("extra-cmake-modules" ,extra-cmake-modules)
11531 ("kdoctools" ,kdoctools)))
11533 `(("kcompletion" ,kcompletion)
11534 ("kconfig" ,kconfig)
11535 ("kconfigwidgets" ,kconfigwidgets)
11536 ("kcoreaddons" ,kcoreaddons)
11538 ("kdbusaddons" ,kdbusaddons)
11540 ("kwidgetsaddons" ,kwidgetsaddons)
11541 ("kxmlgui" ,kxmlgui)
11542 ("libkdegames" ,libkdegames)
11543 ("qtbase" ,qtbase-5)
11544 ("qtdeclarative" ,qtdeclarative)))
11545 (home-page "https://games.kde.org/")
11546 (synopsis "Port of the classic BSD console game robots")
11547 (description "Killbots is a simple game of evading killer robots.
11549 Who created the robots and why they have been programmed to destroy, no one
11550 knows. All that is known is that the robots are numerous and their sole
11551 objective is to destroy you. Fortunately for you, their creator has focused
11552 on quantity rather than quality and as a result the robots are severely
11553 lacking in intelligence. Your superior wit and a fancy teleportation device
11554 are your only weapons against the never-ending stream of mindless automatons.
11556 This package is part of the KDE games module.")
11557 (license (list license:gpl2+ license:fdl1.2+))))
11559 (define-public ksnakeduel
11561 (name "ksnakeduel")
11562 (version "20.12.0")
11566 (uri (string-append "mirror://kde/stable/release-service/" version
11567 "/src/ksnakeduel-" version ".tar.xz"))
11569 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11570 (build-system qt-build-system)
11572 `(("extra-cmake-modules" ,extra-cmake-modules)
11573 ("kdoctools" ,kdoctools)))
11575 `(("kcompletion" ,kcompletion)
11576 ("kconfig" ,kconfig)
11577 ("kconfigwidgets" ,kconfigwidgets)
11578 ("kcoreaddons" ,kcoreaddons)
11580 ("kdbusaddons" ,kdbusaddons)
11581 ("kguiaddons" ,kguiaddons)
11583 ("kxmlgui" ,kxmlgui)
11584 ("libkdegames" ,libkdegames)
11585 ("qtbase" ,qtbase-5)
11586 ("qtdeclarative" ,qtdeclarative)
11588 (home-page "https://games.kde.org/")
11589 (synopsis "Snake race played against the computer")
11590 (description "KSnakeDuel is a fast action game where you steer a snake
11591 which has to eat food. While eating the snake grows. But once a player
11592 collides with the other snake or the wall the game is lost. This becomes of
11593 course more and more difficult the longer the snakes grow.
11595 This package is part of the KDE games module.")
11596 (license (list license:gpl2+ license:fdl1.2+))))
11598 (define-public kollision
11601 (version "20.12.0")
11605 (uri (string-append "mirror://kde/stable/release-service/" version
11606 "/src/kollision-" version ".tar.xz"))
11608 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11609 (build-system qt-build-system)
11611 `(("extra-cmake-modules" ,extra-cmake-modules)
11612 ("kdoctools" ,kdoctools)))
11614 `(("kcompletion" ,kcompletion)
11615 ("kconfig" ,kconfig)
11616 ("kcoreaddons" ,kcoreaddons)
11618 ("kdbusaddons" ,kdbusaddons)
11620 ("kwidgetsaddons" ,kwidgetsaddons)
11621 ("kxmlgui" ,kxmlgui)
11622 ("libkdegames" ,libkdegames)
11623 ("qtbase" ,qtbase-5)
11624 ("qtdeclarative" ,qtdeclarative)))
11625 (home-page "https://games.kde.org/")
11626 (synopsis "Simple ball dodging game")
11627 (description "In Kollision you use mouse to control a small blue ball in a
11628 closed space environment filled with small red balls, which move about
11629 chaotically. Your goal is to avoid touching any of those red balls with your
11630 blue one, because the moment you do the game will be over. The longer you can
11631 stay in game the higher will your score be.
11633 This package is part of the KDE games module.")
11634 (license (list license:gpl2+ license:fdl1.2+))))
11636 (define-public knavalbattle
11638 (name "knavalbattle")
11639 (version "20.12.0")
11643 (uri (string-append "mirror://kde/stable/release-service/" version
11644 "/src/knavalbattle-" version ".tar.xz"))
11646 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11647 (build-system qt-build-system)
11649 `(("extra-cmake-modules" ,extra-cmake-modules)
11650 ("kdoctools" ,kdoctools)))
11653 ("kcompletion" ,kcompletion)
11654 ("kconfig" ,kconfig)
11655 ("kconfigwidgets" ,kconfigwidgets)
11656 ("kcoreaddons" ,kcoreaddons)
11658 ("kdbusaddons" ,kdbusaddons)
11661 ("ktextwidgets" ,ktextwidgets)
11662 ("kxmlgui" ,kxmlgui)
11663 ("libkdegames" ,libkdegames)
11664 ("qtbase" ,qtbase-5)
11665 ("qtdeclarative" ,qtdeclarative)))
11666 (home-page "https://games.kde.org/")
11667 (synopsis "Battleship board game with built-in game server")
11668 (description "KBattleship is a Battle Ship game for KDE.
11670 Ships are placed on a board which represents the sea. Players try to hit each
11671 others ships in turns without knowing where they are placed. The first player
11672 to destroy all ships wins the game.
11674 This package is part of the KDE games module.")
11675 (license (list license:gpl2+ license:fdl1.2+))))
11677 (define-public kreversi
11680 (version "20.08.3")
11684 (uri (string-append "mirror://kde/stable/release-service/" version
11685 "/src/kreversi-" version ".tar.xz"))
11687 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11688 (build-system qt-build-system)
11690 `(("extra-cmake-modules" ,extra-cmake-modules)
11691 ("kdoctools" ,kdoctools)))
11693 `(("kconfig" ,kconfig)
11694 ("kconfigwidgets" ,kconfigwidgets)
11695 ("kcoreaddons" ,kcoreaddons)
11697 ("kdbusaddons" ,kdbusaddons)
11698 ("kdeclarative" ,kdeclarative)
11700 ("kiconthemes" ,kiconthemes)
11702 ("kxmlgui" ,kxmlgui)
11703 ("libkdegames" ,libkdegames)
11704 ("qtbase" ,qtbase-5)
11705 ("qtdeclarative" ,qtdeclarative)
11707 (home-page "https://games.kde.org/")
11708 (synopsis "Old reversi board game, also known as othello")
11709 (description "KReversi is a simple one player strategy game played
11710 against the computer.
11712 If a player's piece is captured by an opposing player, that piece is turned
11713 over to reveal the color of that player. A winner is declared when one player
11714 has more pieces of his own color on the board and there are no more possible
11717 This package is part of the KDE games module.")
11718 (license (list license:gpl2+ license:fdl1.2+))))
11720 (define-public ksquares
11723 (version "20.12.0")
11727 (uri (string-append "mirror://kde/stable/release-service/" version
11728 "/src/ksquares-" version ".tar.xz"))
11730 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11731 (build-system qt-build-system)
11733 `(("extra-cmake-modules" ,extra-cmake-modules)
11734 ("kdoctools" ,kdoctools)))
11736 `(("kcompletion" ,kcompletion)
11737 ("kconfig" ,kconfig)
11738 ("kconfigwidgets" ,kconfigwidgets)
11739 ("kcoreaddons" ,kcoreaddons)
11741 ("kdbusaddons" ,kdbusaddons)
11743 ("kwidgetsaddons" ,kwidgetsaddons)
11744 ("kxmlgui" ,kxmlgui)
11745 ("libkdegames" ,libkdegames)
11746 ("qtbase" ,qtbase-5)
11747 ("qtdeclarative" ,qtdeclarative)))
11748 (home-page "https://games.kde.org/")
11749 (synopsis "Dots and Boxes game")
11750 (description "KSquares is an implementation of the popular paper based
11751 game Squares. Two players take turns connecting dots on a grid to complete
11752 squares, the player with the most squares wins.
11754 This package is part of the KDE games module.")
11755 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11757 (define-public kjumpingcube
11759 (name "kjumpingcube")
11760 (version "20.12.0")
11764 (uri (string-append "mirror://kde/stable/release-service/" version
11765 "/src/kjumpingcube-" version ".tar.xz"))
11767 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11768 (build-system qt-build-system)
11770 `(("extra-cmake-modules" ,extra-cmake-modules)
11771 ("kdoctools" ,kdoctools)))
11773 `(("kconfig" ,kconfig)
11774 ("kconfigwidgets" ,kconfigwidgets)
11775 ("kcoreaddons" ,kcoreaddons)
11777 ("kdbusaddons" ,kdbusaddons)
11780 ("kwidgetsaddons" ,kwidgetsaddons)
11781 ("kxmlgui" ,kxmlgui)
11782 ("libkdegames" ,libkdegames)
11783 ("qtbase" ,qtbase-5)
11784 ("qtdeclarative" ,qtdeclarative)
11786 (home-page "https://games.kde.org/")
11787 (synopsis "Simple tactical game for number-crunchers")
11788 (description "KJumpingcube is a simple tactical game for one or two
11789 players, played on a grid of numbered squares. Each turn, players compete for
11790 control of the board by capturing or adding to one square.
11792 This package is part of the KDE games module.")
11793 (license (list license:gpl2+ license:fdl1.2+))))
11795 (define-public xmoto
11802 (uri (git-reference
11803 (url "https://github.com/xmoto/xmoto")
11805 (file-name (git-file-name name version))
11807 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11808 (modules '((guix build utils)
11811 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11812 ;; it appears to be incompatible with the (older) one bundled.
11815 (let ((keep '("chipmunk" "glad" "md5sum")))
11816 (with-directory-excursion "vendor"
11817 (for-each delete-file-recursively
11818 (lset-difference string=?
11820 (cons* "." ".." keep))))
11821 (substitute* "src/CMakeLists.txt"
11822 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11823 (if (member library keep) line ""))))
11825 (build-system cmake-build-system)
11827 `(#:tests? #f ;no test
11829 (modify-phases %standard-phases
11830 (add-after 'unpack 'fix-hard-coded-directory
11831 (lambda* (#:key outputs #:allow-other-keys)
11832 (substitute* "src/common/VFileIO.cpp"
11834 (string-append (assoc-ref outputs "out") "/share")))
11836 (add-before 'build 'set-SDL
11837 ;; Set correct environment for SDL.
11838 (lambda* (#:key inputs #:allow-other-keys)
11841 (assoc-ref inputs "sdl") "/include/SDL:"
11842 (or (getenv "CPATH") "")))
11844 (add-after 'install 'unbundle-fonts
11845 ;; Unbundle DejaVuSans TTF files.
11846 (lambda* (#:key outputs inputs #:allow-other-keys)
11847 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11848 "/share/fonts/truetype/"))
11849 (target-dir (string-append (assoc-ref outputs "out")
11850 "/share/xmoto/Textures/Fonts/")))
11851 (for-each (lambda (f)
11852 (let ((font (string-append font-dir f))
11853 (target (string-append target-dir f)))
11854 (delete-file target)
11855 (symlink font target)))
11856 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11859 `(("gettext" ,gettext-minimal)
11860 ("pkg-config" ,pkg-config)))
11864 ("font-dejavu" ,font-dejavu)
11866 ("libjpeg" ,libjpeg-turbo)
11868 ("libxdg-basedir" ,libxdg-basedir)
11869 ("libxml2" ,libxml2)
11872 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11875 (home-page "https://xmoto.tuxfamily.org/")
11876 (synopsis "2D motocross platform game")
11878 "X-Moto is a challenging 2D motocross platform game, where
11879 physics play an all important role in the gameplay. You need to
11880 control your bike to its limit, if you want to have a chance finishing
11881 the more difficult challenges.")
11882 (license (list license:gpl2+ ;whole project
11883 license:bsd-3 ;vendor/md5sum
11887 (define-public eboard
11894 (uri (git-reference
11895 (url "https://github.com/fbergo/eboard")
11896 (commit (string-append "v" version))))
11897 (file-name (git-file-name name version))
11899 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11900 (build-system gnu-build-system)
11903 ("pkg-config" ,pkg-config)))
11907 ("gstreamer" ,gstreamer)))
11911 (modify-phases %standard-phases
11912 (replace 'configure
11913 (lambda* (#:key outputs #:allow-other-keys)
11914 (make-file-writable "eboard-config")
11915 (setenv "CC" "gcc")
11916 (invoke "./configure"
11917 (string-append "--prefix=" (assoc-ref outputs "out")))
11919 (add-before 'install 'make-required-directories
11920 (lambda* (#:key outputs #:allow-other-keys)
11921 (mkdir-p (string-append (assoc-ref outputs "out")
11924 (synopsis "Graphical user interface to play chess")
11926 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11927 and chess engines.")
11928 (home-page "https://www.bergo.eng.br/eboard/")
11929 (license license:gpl2+)))
11931 (define-public chessx
11938 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11939 version "/chessx-" version ".tgz"))
11941 (base32 "01fjchil2h6ry2ywr0dwjw2g7zd29580cr4c74d5z74h999lp6nh"))))
11942 (build-system qt-build-system)
11944 `(("qttools" ,qttools)))
11946 `(("qtbase" ,qtbase-5)
11947 ("qtmultimedia" ,qtmultimedia)
11948 ("qtspeech" ,qtspeech)
11954 (modify-phases %standard-phases
11955 (add-after 'unpack 'fix-paths
11956 (lambda* (#:key inputs #:allow-other-keys)
11957 (substitute* "chessx.pro"
11958 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11959 (search-input-file inputs "/bin/lrelease")))))
11960 (add-after 'fix-paths 'make-qt-deterministic
11962 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11964 (add-after 'make-qt-deterministic 'disable-versioncheck
11966 (substitute* "src/database/settings.cpp"
11967 (("\"/General/onlineVersionCheck\", true")
11968 "\"/General/onlineVersionCheck\", false"))
11970 (replace 'configure
11975 (lambda* (#:key outputs #:allow-other-keys)
11976 (let ((out (assoc-ref outputs "out")))
11977 (install-file "release/chessx" (string-append out "/bin"))
11978 (install-file "unix/chessx.desktop"
11979 (string-append out "/share/applications")))
11981 (synopsis "Chess game database")
11983 "ChessX is a chess database. With ChessX you can operate on your
11984 collection of chess games in many ways: browse, edit, add, organize, analyze,
11985 etc. You can also play games on FICS or against an engine.")
11986 (home-page "http://chessx.sourceforge.net/")
11987 (license license:gpl2+)))
11989 (define-public stockfish
11990 (let ((neural-network-revision "3475407dc199")) ; also update hash below
11997 (uri (git-reference
11998 (url "https://github.com/official-stockfish/Stockfish")
11999 (commit (string-append "sf_" version))))
12000 (file-name (git-file-name name version))
12002 (base32 "046b3rq9w8lzgk07q5zazzkl93ai99ab18hr9d8n73mabjpi6zbx"))))
12003 (build-system gnu-build-system)
12005 `(("neural-network"
12008 (uri (string-append "https://tests.stockfishchess.org/api/nn/nn-"
12009 neural-network-revision ".nnue"))
12012 "11zci5kgwdw9rh8w2w4p84764g82rr666y3n8r2flwwrq5yl0x9l"))))))
12015 #:make-flags (list "-C" "src"
12017 (string-append "PREFIX="
12018 (assoc-ref %outputs "out"))
12019 (string-append "ARCH="
12020 ,(match (%current-system)
12021 ("x86_64-linux" "x86-64")
12022 ("i686-linux" "x86-32")
12023 ("aarch64-linux" "armv8")
12024 ("armhf-linux" "armv7")
12025 ("mips64el-linux" "general-64")
12026 (_ "general-32"))))
12027 #:phases (modify-phases %standard-phases
12028 (delete 'configure)
12029 ;; The official neural network file is needed for building
12030 ;; and is embedded in the resulting binary.
12031 (add-after 'unpack 'copy-net
12032 (lambda* (#:key inputs #:allow-other-keys)
12033 (copy-file (assoc-ref inputs "neural-network")
12034 (format #f "src/nn-~a.nnue"
12035 ,neural-network-revision)))))))
12036 (synopsis "Strong chess engine")
12038 "Stockfish is a very strong chess engine. It is much stronger than the
12039 best human chess grandmasters. It can be used with UCI-compatible GUIs like
12041 (home-page "https://stockfishchess.org/")
12042 (license license:gpl3+))))
12044 (define-public barrage
12051 (uri (string-append "mirror://sourceforge/lgames/barrage/"
12052 "barrage-" version ".tar.gz"))
12054 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
12055 (build-system gnu-build-system)
12057 `(("hicolor-icon-theme" ,hicolor-icon-theme)
12059 ("sdl-mixer" ,sdl-mixer)))
12061 `(#:configure-flags
12063 (string-append "CFLAGS="
12064 "-I" (assoc-ref %build-inputs "sdl-mixer")
12066 (home-page "http://lgames.sourceforge.net/Barrage/")
12067 (synopsis "Violent point-and-click shooting game with nice effects")
12069 "Barrage is a rather destructive action game that puts you on a shooting
12070 range with the objective to hit as many dummy targets as possible within
12071 3 minutes. You control a gun that may either fire small or large grenades at
12072 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
12074 (license license:gpl2+)))
12076 (define-public burgerspace
12078 (name "burgerspace")
12083 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
12084 "burgerspace-" version ".tar.gz"))
12086 (base32 "1xb4immzmd419aa08lgkzf7ibxa6ax238zb2l5iw9nkgvzlh1v6l"))))
12087 (build-system gnu-build-system)
12089 `(("pkg-config" ,pkg-config)))
12091 `(("flatzebra" ,flatzebra)))
12092 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
12093 (synopsis "Avoid evil foodstuffs and make burgers")
12095 "This is a clone of the classic game BurgerTime. In it, you play
12096 the part of a chef who must create burgers by stepping repeatedly on
12097 the ingredients until they fall into place. And to make things more
12098 complicated, you also must avoid evil animate food items while
12099 performing this task, with nothing but your trusty pepper shaker to
12101 (license license:gpl2+)))
12103 (define-public 7kaa
12106 (version "2.15.4p1")
12110 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
12111 "releases/download/v" version "/"
12112 "7kaa-" version ".tar.xz"))
12114 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
12115 (build-system gnu-build-system)
12117 `(("gettext" ,gettext-minimal)
12118 ("pkg-config" ,pkg-config)))
12124 (home-page "https://7kfans.com/")
12125 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
12127 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
12128 Strategy with the addition of trade, diplomacy, and espionage. The game
12129 enables players to compete against up to six other kingdoms allowing players
12130 to conquer opponents by defeating them in war (with troops or machines),
12131 capturing their buildings with spies, or offering opponents money for their
12133 (license license:gpl2+)))
12135 (define-public neverball
12136 ;; Git version is 6-years younger than latest release.
12137 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
12141 (version (git-version "1.6.0" revision commit))
12145 (uri (git-reference
12146 (url "https://github.com/Neverball/neverball")
12150 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12151 (file-name (git-file-name name version))
12152 (modules '((guix build utils)))
12155 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12156 (delete-file-recursively "data/ball/octocat")
12158 (build-system copy-build-system)
12161 '(("neverball" "bin/")
12162 ("neverputt" "bin/")
12164 ("data" "share/games/neverball/")
12165 ("locale" "share/")
12166 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12169 ("dist/" "share/applications" #:include ("neverball.desktop"
12170 "neverputt.desktop"))
12171 ("dist/neverball_16.png"
12172 "/share/icons/hicolor/16x16/apps/neverball.png")
12173 ("dist/neverball_24.png"
12174 "/share/icons/hicolor/24x24/apps/neverball.png")
12175 ("dist/neverball_32.png"
12176 "/share/icons/hicolor/32x32/apps/neverball.png")
12177 ("dist/neverball_48.png"
12178 "/share/icons/hicolor/48x48/apps/neverball.png")
12179 ("dist/neverball_64.png"
12180 "/share/icons/hicolor/64x64/apps/neverball.png")
12181 ("dist/neverball_128.png"
12182 "/share/icons/hicolor/128x128/apps/neverball.png")
12183 ("dist/neverball_256.png"
12184 "/share/icons/hicolor/256x256/apps/neverball.png")
12185 ("dist/neverball_512.png"
12186 "/share/icons/hicolor/512x512/apps/neverball.png")
12187 ("dist/neverputt_16.png"
12188 "/share/icons/hicolor/16x16/apps/neverputt.png")
12189 ("dist/neverputt_24.png"
12190 "/share/icons/hicolor/24x24/apps/neverputt.png")
12191 ("dist/neverputt_32.png"
12192 "/share/icons/hicolor/32x32/apps/neverputt.png")
12193 ("dist/neverputt_48.png"
12194 "/share/icons/hicolor/48x48/apps/neverputt.png")
12195 ("dist/neverputt_64.png"
12196 "/share/icons/hicolor/64x64/apps/neverputt.png")
12197 ("dist/neverputt_128.png"
12198 "/share/icons/hicolor/128x128/apps/neverputt.png")
12199 ("dist/neverputt_256.png"
12200 "/share/icons/hicolor/256x256/apps/neverputt.png")
12201 ("dist/neverputt_512.png"
12202 "/share/icons/hicolor/512x512/apps/neverputt.png")
12203 ("dist/" "share/man/man1" #:include ("mapc.1"))
12204 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12205 ("doc/" "share/doc/neverball")
12206 ("README.md" "share/doc/neverball/"))
12208 (modify-phases %standard-phases
12209 (add-before 'install 'build
12210 (lambda* (#:key inputs outputs #:allow-other-keys)
12211 (let* ((out (assoc-ref outputs "out"))
12212 (sdl (assoc-ref inputs "sdl")))
12213 (invoke "make" "-j" (number->string (parallel-job-count))
12214 "--environment-overrides"
12215 "CC=gcc" "BUILD=release"
12216 (string-append "DATADIR="
12218 "/share/games/neverball/data")
12219 (string-append "LOCALEDIR=" out "/share/locale")
12220 (string-append "SDL_CPPFLAGS=-I"
12222 "/include/SDL2/")))
12224 (add-after 'install 'fix-some-broken-fonts
12225 (lambda* (#:key outputs #:allow-other-keys)
12226 (let* ((out (assoc-ref outputs "out")))
12227 (wrap-program (string-append out "/bin/neverball")
12228 `("LANG" = ("en_US.utf8")))
12229 (wrap-program (string-append out "/bin/neverputt")
12230 `("LANG" = ("en_US.utf8"))))
12233 `(("gettext" ,gettext-minimal))) ;for msgfmt
12235 `(("libjpeg" ,libjpeg-turbo)
12237 ("libvorbis" ,libvorbis)
12239 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12240 (home-page "https://neverball.org/")
12241 (synopsis "3D floor-tilting game")
12243 "In the grand tradition of Marble Madness and Super Monkey Ball,
12244 Neverball has you guide a rolling ball through dangerous territory. Balance
12245 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12246 and shovers to get to the goal. Race against the clock to collect coins to
12247 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12248 game.") ;thanks to Debian for description
12249 (license license:gpl2+))))
12251 (define-public pokerth
12258 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12259 version "/pokerth-" version ".tar.gz"))
12261 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12262 (modules '((guix build utils)))
12265 ;; Remove bundled websocketpp.
12266 (delete-file-recursively "src/third_party/websocketpp")
12267 (substitute* "pokerth_lib.pro"
12268 (("src/third_party/websocketpp")
12271 (build-system qt-build-system)
12276 ("libgcrypt" ,libgcrypt)
12277 ("libircclient" ,libircclient)
12278 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12279 ("qtbase" ,qtbase-5)
12280 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12282 ("tinyxml" ,tinyxml)
12283 ("websocketpp" ,websocketpp)
12286 `(#:tests? #f ; No test suite
12288 (modify-phases %standard-phases
12289 (add-after 'unpack 'fix-paths
12290 (lambda* (#:key inputs #:allow-other-keys)
12291 (substitute* (find-files "." "\\.pro$")
12293 (assoc-ref inputs "gsasl"))
12294 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12295 (search-input-directory inputs "/include/libircclient"))
12297 (string-append "LIB_DIRS = "
12298 (assoc-ref inputs "boost") "/lib")))
12300 (add-after 'unpack 'fix-build
12302 ;; Fixes for Boost versions >= 1.66.
12303 (substitute* '("src/net/common/clientthread.cpp"
12304 "src/net/serveraccepthelper.h")
12305 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12307 (("newSock->io_control\\(command\\);")
12308 "newSock->non_blocking(true);")
12309 (("acceptedSocket->io_control\\(command\\);")
12310 "acceptedSocket->non_blocking(true);"))
12312 (replace 'configure
12313 (lambda* (#:key outputs #:allow-other-keys)
12314 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12315 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12316 (home-page "https://www.pokerth.net")
12317 (synopsis "Texas holdem poker game")
12319 "With PokerTH you can play the Texas holdem poker game, either against
12320 computer opponents or against real players online.")
12321 (license license:agpl3+)))
12323 (define-public azimuth
12326 ;; Not marked as latest release, but it fixes a compiling issue
12327 ;; and adds the install target.
12332 (uri (git-reference
12333 (url "https://github.com/mdsteele/azimuth")
12334 (commit (string-append "v" version))))
12335 (file-name (git-file-name name version))
12338 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12339 (build-system gnu-build-system)
12341 `(#:test-target "test"
12343 (modify-phases %standard-phases
12344 (delete 'configure) ; no configure script
12345 ;; Build release version instead of debug version.
12346 (add-after 'unpack 'set-release
12348 (setenv "BUILDTYPE" "release") #t))
12349 (add-after 'unpack 'fix-install ; set install directory
12350 (lambda* (#:key outputs #:allow-other-keys)
12351 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12352 (inputs `(("sdl" ,sdl)))
12353 (home-page "https://mdsteele.games/azimuth/")
12354 (synopsis "Metroidvania game with vector graphics")
12356 "Pilot your ship inside a planet to find and rescue the colonists trapped
12357 inside the Zenith Colony.")
12358 (license license:gpl3+)))
12360 (define-public cgoban
12367 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12368 version "/cgoban-" version ".tar.gz"))
12370 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12371 (build-system gnu-build-system)
12373 `(("libx11" ,libx11)
12375 ("xorgproto" ,xorgproto)))
12376 (home-page "http://cgoban1.sourceforge.net/")
12377 (synopsis "Go client for X11")
12378 (description "Provides a large set of Go-related services for X11:
12380 @item Local games with precise implementation of the Chinese and Japanese rulesets
12381 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12382 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12385 (license license:gpl2+)))
12387 (define-public passage
12394 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12395 version "/Passage_v" version "_UnixSource.tar.gz"))
12397 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12398 (build-system gnu-build-system)
12400 `(#:tests? #false ; there are none
12402 (modify-phases %standard-phases
12403 (add-after 'unpack 'chdir
12405 (chdir "gamma256/gameSource")
12406 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12407 (replace 'configure
12408 (lambda* (#:key outputs inputs #:allow-other-keys)
12411 (assoc-ref inputs "sdl") "/include/SDL:"
12412 (or (getenv "CPATH") "")))
12413 (let* ((out (assoc-ref outputs "out"))
12414 (assets (string-append out "/share/passage")))
12415 (substitute* "common.cpp"
12416 (("readTGA\\( \"graphics\"")
12417 (format #false "readTGA(\"~a/graphics\"" assets)))
12418 (substitute* "musicPlayer.cpp"
12419 (("readTGA\\( \"music\"")
12420 (format #false "readTGA(\"~a/music\"" assets))))))
12422 (lambda* (#:key outputs #:allow-other-keys)
12423 (let* ((out (assoc-ref outputs "out"))
12424 (bin (string-append out "/bin"))
12425 (assets (string-append out "/share/passage/")))
12426 (install-file "Passage" bin)
12427 (install-file "../documentation/Readme.txt" assets)
12428 (copy-recursively "graphics" (string-append assets "graphics"))
12429 (copy-recursively "music" (string-append assets "music"))
12430 (copy-recursively "settings" (string-append assets "settings"))))))))
12432 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12434 `(("imagemagick" ,imagemagick)))
12435 (home-page "http://hcsoftware.sourceforge.net/passage/")
12436 (synopsis "Memento mori game")
12438 "Passage is meant to be a memento mori game. It presents an entire life,
12439 from young adulthood through old age and death, in the span of five minutes.
12440 Of course, it's a game, not a painting or a film, so the choices that you make
12441 as the player are crucial. There's no ``right'' way to play Passage, just as
12442 there's no right way to interpret it.")
12443 (license license:public-domain)))
12445 (define-public paperview
12446 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12450 (version (git-version "0.0.1" revision commit)) ;no upstream release
12453 (uri (git-reference
12454 (url "https://github.com/glouw/paperview")
12456 (file-name (git-file-name name version))
12459 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12460 (build-system gnu-build-system)
12464 '(#:tests? #f ;no tests
12466 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12468 (modify-phases %standard-phases
12469 (delete 'configure))))
12470 (home-page "https://github.com/glouw/paperview/")
12471 (synopsis "High performance X11 animated wallpaper setter")
12472 (description "High performance animated desktop background setter for
12473 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12475 (license license:unlicense))))
12477 (define-public curseofwar
12479 (name "curseofwar")
12484 (uri (git-reference
12485 (url "https://github.com/a-nikolaev/curseofwar")
12486 (commit (string-append "v" version))))
12487 (file-name (git-file-name name version))
12489 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12490 (build-system gnu-build-system)
12492 `(#:tests? #f ; no tests
12494 (list (string-append "CC=" ,(cc-for-target))
12495 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12497 (modify-phases %standard-phases
12498 (delete 'configure))))
12499 (inputs `(("ncurses" ,ncurses)))
12500 (home-page "https://a-nikolaev.github.io/curseofwar/")
12501 (synopsis "Fast-paced action strategy game")
12502 (description "Curse of War is a fast-paced action strategy game originally
12503 implemented using ncurses user interface. An SDL graphical version is also
12505 (license license:gpl3+)))
12507 (define-public schiffbruch
12508 ;; There haven't been any releases for several years, so I've taken the most
12509 ;; recent commit from the master branch that didn't fail to build (the last
12510 ;; commit gave me a compile error).
12511 (let ((commit "e41916d15d87749c82c5005cbb42d1bb079b43d9"))
12513 (name "schiffbruch")
12514 (version (git-version "1.2.1" "0" commit))
12518 (uri (git-reference
12519 (url "https://github.com/sandsmark/Schiffbruch")
12521 (file-name (git-file-name name version))
12523 (base32 "0lg3rqacrapf6c4sxi12cm9bmg43mlbclway1zxcm848pi1xkzwv"))))
12524 (build-system cmake-build-system)
12526 `(#:tests? #f ; no tests
12527 #:build-type "Release"))
12529 `(("gcc" ,gcc-11))) ; need C++20-compatible compiler
12532 (home-page "https://github.com/sandsmark/Schiffbruch/")
12533 (synopsis "Pixelart survival game")
12535 "Schiffbruch is a mix of building, strategy and adventure and gets played
12536 with a two-dimensional view. The game deals with the consequences of a ship
12537 wreckage. You're stranded on a desert island and have to survive. In order to
12538 do so you need to explore the island, find food, build a shelter and try to
12539 get attention, so you get found.")
12540 (license license:cc-by4.0))))
12542 (define-public sdlpop
12548 (uri (git-reference
12549 (url "https://github.com/NagyD/SDLPoP")
12550 (commit (string-append "v" version))))
12551 (file-name (git-file-name name version))
12554 "1yy5r1r0hv0xggk8qd8bwk2zy7abpv89nikq4flqgi53fc5q9xl7"))))
12555 (build-system gnu-build-system)
12557 `(#:tests? #f ; no tests provided
12559 (modify-phases %standard-phases
12560 (delete 'configure)
12561 (add-before 'build 'prepare-build
12562 ;; Set correct environment for SDL.
12563 (lambda* (#:key inputs #:allow-other-keys)
12565 (string-append (assoc-ref inputs "sdl")
12567 (or (getenv "CPATH") "")))))
12568 (add-after 'unpack 'chdir
12572 (lambda* (#:key outputs #:allow-other-keys)
12573 (let* ((out (assoc-ref outputs "out"))
12574 (bin (string-append out "/bin"))
12575 (opt (string-append out "/opt/sdlpop"))
12576 (app (string-append out "/usr/share/applications"))
12577 (template "src/SDLPoP.desktop.template"))
12579 (install-file "prince" bin)
12580 (substitute* template (("\\$ROOT") out))
12581 (install-file template app)
12582 (rename-file (string-append app "/SDLPoP.desktop.template")
12583 (string-append app "/SDLPoP.desktop"))
12584 (install-file "SDLPoP.ini" opt)
12585 (copy-recursively "data" (string-append bin "/data"))
12586 (copy-recursively "doc" opt)
12587 (copy-recursively "mods" opt)))))))
12588 (native-inputs `(("pkg-config" ,pkg-config)))
12589 (inputs `(("sdl" ,(sdl-union (list sdl2
12592 (synopsis "Port of Prince of Persia game")
12593 (description "This package provides port of Prince of Persia, based on the
12594 disassembly of the DOS version, extended with new features.")
12595 (home-page "https://github.com/NagyD/SDLPoP")
12596 (license license:gpl3+)))
12598 (define-public fheroes2
12602 (build-system cmake-build-system)
12604 `(#:tests? #f ; no tests
12605 #:make-flags '("FHEROES2_STRICT_COMPILATION=1"
12608 `(("gettext" ,gettext-minimal)))
12610 `(("libpng" ,libpng)
12611 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
12616 (uri (git-reference
12617 (url "https://github.com/ihhub/fheroes2")
12619 (file-name (git-file-name name version))
12621 (base32 "1sc7rmyiciahxh5f6rarhil2hrw8q8sjdssh063grji50mlnrf6a"))))
12622 (home-page "https://ihhub.github.io/fheroes2/")
12623 (synopsis "Turn-based strategy game engine")
12624 (description "@code{fheroes2} is an implementation of Heroes of Might and
12625 Magic II (aka HOMM2) game engine. It requires assets and game resources to
12626 play; it will look for them at @file{~/.local/share/fheroes2} folder.")
12627 (license license:gpl2)))