From: Ron Nazarov via Guix-patches via <guix-patches@gnu.org>
To: 74487@debbugs.gnu.org
Cc: Ron Nazarov <ron@noisytoot.org>
Subject: [bug#74487] [PATCH] gnu: Add the-powder-toy.
Date: Fri, 22 Nov 2024 23:00:01 +0000 [thread overview]
Message-ID: <20241122230003.16577-1-ron@noisytoot.org> (raw)
* gnu/packages/games.scm (the-powder-toy): New variable.
Change-Id: I140d21cab40a522a5079de51980874dae93b4304
---
gnu/packages/games.scm | 71 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 70 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 39e3b6dc0b..686a1e48e7 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -63,7 +63,7 @@
;;; Copyright © 2021, 2024 David Pflug <david@pflug.io>
;;; Copyright © 2021, 2022 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
-;;; Copyright © 2021, 2022 Noisytoot <ron@noisytoot.org>
+;;; Copyright © 2021, 2022, 2024 Noisytoot <ron@noisytoot.org>
;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2021, 2022 Brendan Tildesley <mail@brendan.scot>
;;; Copyright © 2021 Christopher Baines <mail@cbaines.net>
@@ -8163,6 +8163,75 @@ (define-public the-butterfly-effect
(license (list license:gpl2 license:public-domain license:expat
license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
+(define-public the-powder-toy
+ (package
+ (name "the-powder-toy")
+ (version "98.2.365")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/The-Powder-Toy/The-Powder-Toy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06l39w3ggrzn8799dqll606by4f88kjr60r879w8j26csx1py76g"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:configure-flags (list (string-append
+ "-Dworkaround_elusive_bzip2_include_dir="
+ (assoc-ref %build-inputs "bzip2")))
+ ;; No install target
+ #:phases (modify-phases %standard-phases
+ (replace 'install
+ (lambda _
+ (let* ((output (assoc-ref %outputs "out"))
+ (bin (string-append output "/bin"))
+ (share (string-append output "/share"))
+ (apps (string-append share "/applications")))
+ (mkdir-p bin)
+ (mkdir-p apps)
+ (install-file "powder" bin)
+ (install-file "resources/powder.desktop" apps)
+ (for-each (lambda (size)
+ (let ((dir (string-append share
+ "/icons/hicolor/"
+ size
+ "x"
+ size
+ "/apps")))
+ (mkdir-p dir)
+ (copy-file (string-append (assoc-ref
+ %build-inputs
+ "source")
+ "/resources/generated_icons/icon_exe_"
+ size ".png")
+ (string-append dir
+ "/powdertoy-powder.png"))))
+ '("16" "32" "48"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list luajit
+ jsoncpp
+ libpng
+ zlib
+ fftwf
+ bzip2
+ curl
+ sdl2))
+ (synopsis "Free physics sandbox game")
+ (description
+ "The Powder Toy is a free physics sandbox game, which simulates air
+pressure and velocity, heat, gravity and a countless number of interactions
+between different substances! The game provides you with various building
+materials, liquids, gases and electronic components which can be used to
+construct complex machines, guns, bombs, realistic terrains and almost
+anything else. You can then mine them and watch cool explosions, add
+intricate wirings, play with little stickmen or operate your machine.")
+ (home-page "https://powdertoy.co.uk/")
+ ;; The few files that have a license header specify GPLv3+, but most don't
+ ;; and it's not otherwise specified anywhere.
+ (license license:gpl3)))
+
(define-public pioneer
(package
(name "pioneer")
--
2.46.0
next reply other threads:[~2024-11-23 1:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 23:00 Ron Nazarov via Guix-patches via [this message]
2024-11-23 18:21 ` [bug#74487] QA review for 74487 Noé Lopez via Guix-patches via
2024-11-26 9:16 ` bug#74487: [PATCH] gnu: Add the-powder-toy Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241122230003.16577-1-ron@noisytoot.org \
--to=guix-patches@gnu.org \
--cc=74487@debbugs.gnu.org \
--cc=ron@noisytoot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.