gnu: ccache: Use modify-phases.

* gnu/packages/ccache.scm (ccache)[arguments]: Use modify-phases.
master
Eric Bavier 2016-09-22 23:43:20 -05:00
parent 1a0ae573c7
commit bd368c7174
No known key found for this signature in database
GPG Key ID: 1EBBD204781F962C
1 changed files with 7 additions and 8 deletions

View File

@ -43,14 +43,13 @@
("which" ,(@ (gnu packages base) which)))) ("which" ,(@ (gnu packages base) which))))
(inputs `(("zlib" ,zlib))) (inputs `(("zlib" ,zlib)))
(arguments (arguments
'(#:phases (alist-cons-before '(#:phases (modify-phases %standard-phases
'check 'setup-tests (add-before 'check 'setup-tests
(lambda _ (lambda _
(substitute* '("test/test_hashutil.c" "test.sh") (substitute* '("test/test_hashutil.c" "test.sh")
(("#!/bin/sh") (string-append "#!" (which "sh"))) (("#!/bin/sh") (string-append "#!" (which "sh")))
(("which") (which "which"))) (("which") (which "which")))
#t) #t)))))
%standard-phases)))
(home-page "https://ccache.samba.org/") (home-page "https://ccache.samba.org/")
(synopsis "Compiler cache") (synopsis "Compiler cache")
(description (description