Subject: [PATCH] gnu: ephemeralpg: Fix cross-compilation.
From: Zheng Junjie <[email-masked]>
To: [email-masked]
Date: Tue, 21 Nov 2023 23:45:06 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/databases.scm (ephemeralpg): Fix cross-compilation.
[arguments]: Use Gexp, remove tailed #t.
[inputs]: Add bash-minimal.

Change-Id: Icdb3dc2db120b07f0d4f03a94a693459974ae06f
---
 gnu/packages/databases.scm | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index f0ea100c3b..c5e493440e 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -62,6 +62,7 @@
 ;;; Copyright © 2023 Felix Gruber <[email-masked]
 ;;; Copyright © 2023 Munyoki Kilyungi <[email-masked]>
 ;;; Copyright © 2023 Giacomo Leidi <[email-masked]>
+;;; Copyright © 2023 Zheng Junjie <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -202,26 +203,25 @@ (define-public ephemeralpg
         (base32 "1ap22ki8yz6agd0qybcjgs4b9izw1rwwcgpxn3jah2ccfyax34s6"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
-                          (string-append "PREFIX=" %output))
-       #:phases
-       (modify-phases %standard-phases
-         (delete 'configure)            ; no configure script
-         (add-after 'install 'wrap
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out")))
-               (wrap-program (string-append out "/bin/pg_tmp")
-                 `("PATH" ":" prefix
-                   (,(string-append (assoc-ref inputs "util-linux")
-                                    "/bin")
-                    ,(string-append (assoc-ref inputs "postgresql")
-                                    "/bin")
-                    ;; For getsocket.
-                    ,(string-append out "/bin")))))
-             #t)))
-       #:test-target "test"))
+     (list #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                                (string-append "PREFIX=" #$output))
+           #:phases
+           #~(modify-phases %standard-phases
+               (delete 'configure)            ; no configure script
+               (add-after 'install 'wrap
+                 (lambda* (#:key inputs outputs #:allow-other-keys)
+                   (let ((out (assoc-ref outputs "out")))
+                     (wrap-program (string-append out "/bin/pg_tmp")
+                       `("PATH" ":" prefix
+                         (,(string-append (assoc-ref inputs "util-linux")
+                                          "/bin")
+                          ,(string-append (assoc-ref inputs "postgresql")
+                                          "/bin")
+                          ;; For getsocket.
+                          ,(string-append out "/bin"))))))))
+           #:test-target "test"))
     (inputs
-     (list postgresql util-linux))
+     (list bash-minimal postgresql util-linux))
     (native-inputs
      ;; For tests.
      (list ruby which))

base-commit: d20ece07dbb09382f361c8bbf0bcab9e83d8b73e
-- 
2.41.0