| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | (define-module (gnu packages ccache)
|
| 24 | #:use-module (guix gexp)
|
| 25 | #:use-module (guix packages)
|
| 26 | #:use-module ((guix licenses) #:select (gpl3+))
|
| 27 | #:use-module (guix download)
|
| 28 | #:use-module (guix build-system cmake)
|
| 29 | #:use-module (gnu packages)
|
| 30 | #:use-module (gnu packages base)
|
| 31 | #:use-module (gnu packages compression)
|
| 32 | #:use-module (gnu packages perl)
|
| 33 | #:use-module (gnu packages ruby-xyz))
|
| 34 |
|
| 35 | (define-public ccache
|
| 36 | (package
|
| 37 | (name "ccache")
|
| 38 | (version "4.8.3")
|
| 39 | (source
|
| 40 | (origin
|
| 41 | (method url-fetch)
|
| 42 | (uri (string-append "https://github.com/ccache/ccache/releases/download/v"
|
| 43 | version "/ccache-" version ".tar.xz"))
|
| 44 | (sha256
|
| 45 | (base32 "049b3xhp464w5m1bqi4ripbgyqy7qy31vvk56v5cyj5j23478wz4"))))
|
| 46 | (build-system cmake-build-system)
|
| 47 | (arguments
|
| 48 | (list #:configure-flags
|
| 49 | |
| 50 | #~(list "-DREDIS_STORAGE_BACKEND=OFF")
|
| 51 | #:phases
|
| 52 | #~(modify-phases %standard-phases
|
| 53 | (add-before 'configure 'fix-shell
|
| 54 | |
| 55 | (lambda _
|
| 56 | (substitute* (list "test/run"
|
| 57 | "test/suites/base.bash"
|
| 58 | "unittest/test_hashutil.cpp")
|
| 59 | (("compgen -e") "env | cut -d= -f1")
|
| 60 | (("#!/bin/sh") (string-append "#!" (which "sh"))))))
|
| 61 | (add-before 'check 'set-home
|
| 62 | |
| 63 | (lambda _
|
| 64 | (setenv "HOME" (getenv "TMPDIR")))))))
|
| 65 | (native-inputs
|
| 66 | (append (list perl which)
|
| 67 | (if (supported-package? ruby-asciidoctor/minimal)
|
| 68 | (list ruby-asciidoctor/minimal)
|
| 69 | '())))
|
| 70 | (inputs (list zlib `(,zstd "lib")))
|
| 71 | (home-page "https://ccache.dev/")
|
| 72 | (synopsis "Compiler cache")
|
| 73 | (description
|
| 74 | "Ccache is a compiler cache. It speeds up recompilation by caching
|
| 75 | previous compilations and detecting when the same compilation is being done
|
| 76 | again. Supported languages are C, C++, Objective-C and Objective-C++.")
|
| 77 | (license gpl3+)))
|