ccache: 3.4.1 -> 3.7.10

The fix-debug-prefix-map-suite patch became obsolete with upstream
commit:

https://github.com/ccache/ccache/commit/82010e0eb9cb629f61ea516542daf05a53010716

The skip-fs-dependent-test patch with PR:

https://github.com/ccache/ccache/pull/444
This commit is contained in:
Matthias Treydte
2020-07-02 19:42:10 +02:00
committed by Daniël de Kok
parent 1b9b1440b9
commit 4ec15456b3
3 changed files with 10 additions and 86 deletions
+10 -18
View File
@@ -1,30 +1,22 @@
{ stdenv, fetchurl, perl, zlib, makeWrapper }:
{ stdenv, fetchFromGitHub, asciidoc-full, gperf, perl, autoreconfHook, zlib, makeWrapper }:
let ccache = stdenv.mkDerivation rec {
pname = "ccache";
version = "3.4.1";
version = "3.7.10";
src = fetchurl {
sha256 = "1pppi4jbkkj641cdynmc35jaj40jjicw7gj75ran5qs5886jcblc";
url = "mirror://samba/ccache/${pname}-${version}.tar.xz";
src = fetchFromGitHub {
owner = "ccache";
repo = "ccache";
rev = "v${version}";
sha256 = "0v6pvj50y18fxh2f6cx6xyg545xcpxfmrcg9bzbc6lc5acrvvjm7";
};
nativeBuildInputs = [ perl ];
nativeBuildInputs = [ asciidoc-full autoreconfHook gperf perl ];
buildInputs = [ zlib ];
outputs = [ "out" "man" ];
# non to be fail on filesystems with unconventional blocksizes (zfs on Hydra?)
patches = [
./fix-debug-prefix-map-suite.patch
./skip-fs-dependent-test.patch
];
postPatch = ''
substituteInPlace Makefile.in --replace 'objs) $(extra_libs)' 'objs)'
'';
doCheck = !stdenv.isDarwin;
passthru = {
@@ -71,8 +63,8 @@ let ccache = stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "Compiler cache for fast recompilation of C/C++ code";
homepage = "http://ccache.samba.org/";
downloadPage = "https://ccache.samba.org/download.html";
homepage = "https://ccache.dev/";
downloadPage = "https://ccache.dev/download.html";
license = licenses.gpl3Plus;
platforms = platforms.unix;
};