1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages ccache)
21 #:use-module (guix packages)
22 #:use-module ((guix licenses) #:select (gpl3+))
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages perl)
27 #:use-module (gnu packages compression))
36 (uri (string-append "https://www.samba.org/ftp/ccache/ccache-"
40 "0ks0vk408mdppfbk8v38p46fqx3p30r9a9cwiia43373i7rmpw94"))))
41 (build-system gnu-build-system)
42 (native-inputs `(("perl" ,perl) ;for test.sh
43 ("which" ,(@ (gnu packages base) which))))
44 (inputs `(("zlib" ,zlib)))
46 '(#:phases (modify-phases %standard-phases
47 (add-before 'check 'setup-tests
49 (substitute* '("test/test_hashutil.c" "test.sh")
50 (("#!/bin/sh") (string-append "#!" (which "sh")))
51 (("which") (which "which")))
53 (home-page "https://ccache.samba.org/")
54 (synopsis "Compiler cache")
56 "Ccache is a compiler cache. It speeds up recompilation by caching
57 previous compilations and detecting when the same compilation is being done
58 again. Supported languages are C, C++, Objective-C, Objective-C++, and