guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 20c31bc066cfe49bdc16c9c46a424185c78c05fe
Author: Nicolas Graves <ngra...@ngraves.fr>
AuthorDate: Sun Jun 15 00:45:36 2025 +0200

    gnu: pingus: Improve style.
    
    * gnu/packages/games.scm (pingus): Improve style.
      [source]: Run guix style.
      [arguments]: Run guix style. Rewrite using gexps.
    
    Change-Id: I34581b659fdbc7e750a62b81eede39b130dc4d88
    Signed-off-by: Sharlatan Hellseher <sharlata...@gmail.com>
---
 gnu/packages/games.scm | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index cbbfa969a7..cd57de6fff 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3919,24 +3919,30 @@ fight Morgoth, the Lord of Darkness.")
      (origin
        (method git-fetch)
        (uri (git-reference
-              (url "https://gitlab.com/pingus/pingus.git";)
-              (commit (string-append "v" version))))
+             (url "https://gitlab.com/pingus/pingus.git";)
+             (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32
-         "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
+        (base32 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
        (patches (search-patches "pingus-boost-headers.patch"
                                 "pingus-sdl-libs-config.patch"))
        (modules '((guix build utils)))
-       (snippet
-        '(begin
-           (substitute* "src/pingus/screens/demo_session.cpp"
-             (("#include <iostream>")
-              ;; std::function moved to <functional> with C++ 11.
-              ;; Remove this for versions newer than 0.7.6.
-              "#include <iostream>\n#include <functional>"))
-           #t))))
+       (snippet #~(begin
+                    (substitute* "src/pingus/screens/demo_session.cpp"
+                      (("#include <iostream>")
+                       ;; std::function moved to <functional> with C++ 11.
+                       ;; Remove this for versions newer than 0.7.6.
+                       "#include <iostream>
+#include <functional>"))))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:make-flags
+      #~(list (string-append "PREFIX=" %output))
+      #:tests? #f ;no check target
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure)))) ;no configure script
     (native-inputs (list pkg-config scons-python2))
     (inputs (list sdl
                   sdl-image
@@ -3945,12 +3951,6 @@ fight Morgoth, the Lord of Darkness.")
                   glu
                   libpng
                   boost))
-    (arguments
-     '(#:make-flags (list (string-append "PREFIX=" %output))
-       #:tests? #f                      ; no check target
-       #:phases
-       (modify-phases %standard-phases
-         (delete 'configure)))) ; no configure script
     (home-page "https://pingus.seul.org/";)
     (synopsis "Lemmings clone")
     (description

Reply via email to