mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 03:29:40 -05:00
gnu: ccache: Gexp arguments.
* gnu/packages/ccache.scm (ccache)[arguments]: Rewrite as a keyword/gexp list.
This commit is contained in:
parent
f2e0e576d9
commit
7c8dddb16f
1 changed files with 18 additions and 18 deletions
|
@ -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 @@ (define-public ccache
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue