Commit | Line | Data |
---|---|---|
5bbd6bf1 | 1 | ;;; GNU Guix --- Functional package management for GNU |
4747cca2 | 2 | ;;; Copyright © 2014, 2015, 2016, 2018 Eric Bavier <bavier@member.fsf.org> |
3d39ab45 | 3 | ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
a29a8a91 | 4 | ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
5bbd6bf1 EB |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | (define-module (gnu packages ccache) | |
22 | #:use-module (guix packages) | |
23 | #:use-module ((guix licenses) #:select (gpl3+)) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages) | |
27 | #:use-module (gnu packages perl) | |
28 | #:use-module (gnu packages compression)) | |
29 | ||
30 | (define-public ccache | |
31 | (package | |
32 | (name "ccache") | |
e4d341fa | 33 | (version "3.7.11") |
5bbd6bf1 EB |
34 | (source |
35 | (origin | |
3251c628 | 36 | (method url-fetch) |
9eb456b8 VL |
37 | (uri (string-append "https://github.com/ccache/ccache/releases/download/v" |
38 | version "/ccache-" version ".tar.xz")) | |
3251c628 | 39 | (sha256 |
e4d341fa | 40 | (base32 "0s1g0ylrayzax68xlqnxx46f5bhvr2pcm1yzswmj0kcs14404icd")))) |
5bbd6bf1 | 41 | (build-system gnu-build-system) |
71b186ef | 42 | (native-inputs `(("perl" ,perl) ; for test/run |
9d5448f3 | 43 | ("which" ,(@ (gnu packages base) which)))) |
5bbd6bf1 EB |
44 | (inputs `(("zlib" ,zlib))) |
45 | (arguments | |
bd368c71 | 46 | '(#:phases (modify-phases %standard-phases |
74ff08e6 VL |
47 | (add-before 'check 'setup-tests |
48 | (lambda _ | |
49 | (substitute* '("unittest/test_hashutil.c" "test/suites/base.bash") | |
50 | (("#!/bin/sh") (string-append "#!" (which "sh")))) | |
51 | #t))))) | |
9eb456b8 | 52 | (home-page "https://ccache.dev/") |
5bbd6bf1 EB |
53 | (synopsis "Compiler cache") |
54 | (description | |
55 | "Ccache is a compiler cache. It speeds up recompilation by caching | |
56 | previous compilations and detecting when the same compilation is being done | |
9eb456b8 | 57 | again. Supported languages are C, C++, Objective-C and Objective-C++.") |
5bbd6bf1 | 58 | (license gpl3+))) |