z572 pushed a commit to branch master
in repository guix.

commit 002df8abd2f4d7c5d23febb1459b77c880345ca7
Author: Zheng Junjie <[email protected]>
AuthorDate: Sun Oct 6 02:18:13 2024 +0800

    gnu: vimb: Use G-expressions and cc-for-target.
    
    * gnu/packages/web-browsers.scm (vimb)[arguments]: Use G-expressions and
    cc-for-target.
    
    Change-Id: I701e9d5d6dc12856d49e5c794a535b966fff7810
---
 gnu/packages/web-browsers.scm | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 93d2fe8a12..7f04af981a 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2020 Hartmut Goebel <[email protected]>
 ;;; Copyright © 2021 Christopher Howard <[email protected]>
 ;;; Copyright © 2023 Herman Rimm <[email protected]>
+;;; Copyright © 2024 Zheng Junjie <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -571,18 +572,18 @@ GUI.  It is based on PyQt6 and QtWebEngine.")
        (file-name (git-file-name name version))))
     (build-system glib-or-gtk-build-system)
     (arguments
-     '(#:tests? #f                      ; no tests
-       #:make-flags (list "CC=gcc"
-                          "DESTDIR="
-                          (string-append "PREFIX=" %output))
-       #:phases
-       (modify-phases %standard-phases
-         (delete 'configure)
-         (add-after 'unpack 'fix-config-mk
-           (lambda* _
-             (substitute* "config.mk"
-               (("webkit2gtk-4\\.1")
-                "webkit2gtk-4.0")))))))
+     (list #:tests? #f                      ; no tests
+           #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                                "DESTDIR="
+                                (string-append "PREFIX=" #$output))
+           #:phases
+           #~(modify-phases %standard-phases
+               (delete 'configure)
+               (add-after 'unpack 'fix-config-mk
+                 (lambda* _
+                   (substitute* "config.mk"
+                     (("webkit2gtk-4\\.1")
+                      "webkit2gtk-4.0")))))))
     (inputs
      `(("glib-networking" ,glib-networking)
        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)

Reply via email to