aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/misc/ccache/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/misc/ccache/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/misc/ccache/default.nix28
1 files changed, 10 insertions, 18 deletions
diff --git a/nixpkgs/pkgs/development/tools/misc/ccache/default.nix b/nixpkgs/pkgs/development/tools/misc/ccache/default.nix
index 61ed3825bd9..e0a6a8065b5 100644
--- a/nixpkgs/pkgs/development/tools/misc/ccache/default.nix
+++ b/nixpkgs/pkgs/development/tools/misc/ccache/default.nix
@@ -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.11";
- src = fetchurl {
- sha256 = "1pppi4jbkkj641cdynmc35jaj40jjicw7gj75ran5qs5886jcblc";
- url = "mirror://samba/ccache/${pname}-${version}.tar.xz";
+ src = fetchFromGitHub {
+ owner = "ccache";
+ repo = "ccache";
+ rev = "v${version}";
+ sha256 = "03c6riz4vb0jipplk69c1j8arjjrjn676kglsrzqf8cidrh8j91c";
};
- 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;
};