Subject: [PATCH v4 2/2] gnu: squirrel: Code reformat.

From: Andy Tai <[email-masked]>
Date: Mon, 24 Jun 2024 22:13:05 -0700

* gnu/packages/squirrel.scm (squirrel): Code reformat.
  [native-inputs]: Switch to gexp format.

Change-Id: Id487820e4d0e28491157fac8be38cf483eb78dad
---
 gnu/packages/squirrel.scm | 51 ++++++++++++++++++---------------------
 1 file changed, 24 insertions(+), 27 deletions(-)

diff --git a/gnu/packages/squirrel.scm b/gnu/packages/squirrel.scm
index a318eb3815..43e433cc82 100644
--- a/gnu/packages/squirrel.scm
+++ b/gnu/packages/squirrel.scm
@@ -32,36 +32,33 @@ (define-public squirrel
   (package
     (name "squirrel")
     (version "3.2")
-    (source (origin
-              (method git-fetch)
-               (uri (git-reference
-                     (url "https://github.com/albertodemichelis/squirrel.git")
-                     (commit (string-append "v" version))))
-              (file-name (string-append name "-" version ".tar.gz"))
-              (sha256
-               (base32
-                "028v90k5bbcb8qwysgv6r0ycy6g920ns32i2sdq0i8hqib90ac5z"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/albertodemichelis/squirrel.git")
+             (commit (string-append "v" version))))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "028v90k5bbcb8qwysgv6r0ycy6g920ns32i2sdq0i8hqib90ac5z"))))
     (build-system cmake-build-system)
     (arguments
      '(#:configure-flags '("-DDISABLE_STATIC=ON")
-       #:tests? #f ; no tests
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'install 'install-documentation
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((source (assoc-ref %build-inputs "source"))
-                    (out (assoc-ref outputs "out"))
-                    (doc-dir (string-append out "/share/doc/squirrel")))
-               (for-each
-                (lambda (file)
-                  (install-file (string-append source "/" file) doc-dir))
-                '("COPYRIGHT" "HISTORY" "README"
-                  ;"doc/sqstdlib3.pdf" "doc/squirrel3.pdf"  ;; pdf not build out of git; TODO
-
-                  ))))))))
-    (native-inputs
-     `(("cmake" ,cmake-minimal)
-       ("python-sphinx" ,python-sphinx)))
+       #:tests? #f ;no tests
+       #:phases (modify-phases %standard-phases
+                  (add-after 'install 'install-documentation
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let* ((source (assoc-ref %build-inputs "source"))
+                             (out (assoc-ref outputs "out"))
+                             (doc-dir (string-append out "/share/doc/squirrel")))
+                        (for-each (lambda (file)
+                                    (install-file (string-append source "/"
+                                                                 file) doc-dir))
+                                  '("COPYRIGHT" "HISTORY" "README"
+                                    ;; "doc/sqstdlib3.pdf" "doc/squirrel3.pdf"
+                                    ;; pdf not build out of git; TODO
+                                    ))))))))
+    (native-inputs (list cmake-minimal python-sphinx))
     (home-page "https://squirrel-lang.org/")
     (synopsis "High level imperative, object-oriented programming language")
     (description
-- 
2.34.1