guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: ccache: Gexp arguments.


From: guix-commits
Subject: 02/04: gnu: ccache: Gexp arguments.
Date: Sun, 19 Dec 2021 00:59:50 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit 7c8dddb16f62af9d02c654232105795bbae173cb
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Dec 19 01:27:23 2021 +0100

    gnu: ccache: Gexp arguments.
    
    * gnu/packages/ccache.scm (ccache)[arguments]: Rewrite as a keyword/gexp 
list.
---
 gnu/packages/ccache.scm | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/ccache.scm b/gnu/packages/ccache.scm
index a36de3a..2923a99 100644
--- a/gnu/packages/ccache.scm
+++ b/gnu/packages/ccache.scm
@@ -20,6 +20,7 @@
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (gnu packages ccache)
+  #:use-module (guix gexp)
   #:use-module (guix packages)
   #:use-module ((guix licenses) #:select (gpl3+))
   #:use-module (guix download)
@@ -45,24 +46,23 @@
     (inputs (list zlib
                   `(,zstd "lib")))
     (arguments
-     '( ;; The Redis backend must be explicitly disabled to build without 
Redis.
-       #:configure-flags
-       '("-DREDIS_STORAGE_BACKEND=OFF")
-
-       #:phases
-       (modify-phases %standard-phases
-         (add-before 'configure 'fix-shell
-           ;; Run early whilst we're still in the source directory.
-           (lambda _
-             (substitute* (list "test/run"
-                                "test/suites/base.bash"
-                                "unittest/test_hashutil.cpp")
-               (("compgen -e") "env | cut -d= -f1")
-               (("#!/bin/sh") (string-append "#!" (which "sh"))))))
-         (add-before 'check 'set-home
-           ;; Tests require a writable HOME.
-           (lambda _
-             (setenv "HOME" (getenv "TMPDIR")))))))
+     (list #:configure-flags
+           ;; The backend must be explicitly disabled to build without Redis.
+           #~(list "-DREDIS_STORAGE_BACKEND=OFF")
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'configure 'fix-shell
+                 ;; Run early whilst we're still in the source directory.
+                 (lambda _
+                   (substitute* (list "test/run"
+                                      "test/suites/base.bash"
+                                      "unittest/test_hashutil.cpp")
+                     (("compgen -e") "env | cut -d= -f1")
+                     (("#!/bin/sh") (string-append "#!" (which "sh"))))))
+               (add-before 'check 'set-home
+                 ;; Tests require a writable HOME.
+                 (lambda _
+                   (setenv "HOME" (getenv "TMPDIR")))))))
     (home-page "https://ccache.dev/";)
     (synopsis "Compiler cache")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]