Archived
1
0
Fork 0

gnu: ccache: Gexp arguments.

* gnu/packages/ccache.scm (ccache)[arguments]: Rewrite as a keyword/gexp list.
This commit is contained in:
Tobias Geerinckx-Rice 2021-12-19 01:27:23 +01:00
parent f2e0e576d9
commit 7c8dddb16f
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

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