ccache: update 3.2.2 -> 3.2.3

This commit is contained in:
Tobias Geerinckx-Rice
2015-08-25 05:03:05 +02:00
parent c98685c737
commit e8a55a43cf
2 changed files with 8 additions and 42 deletions
@@ -1,10 +1,9 @@
{ stdenv, fetchurl, runCommand, gcc, zlib }:
let
# TODO: find out if there's harm in just using 'rec' instead.
name = "ccache-${version}";
version = "3.2.2";
sha256 = "1jm0qb3h5sypllaiyj81zp6m009vm50hzjnx994ril94kxlrj3ag";
version = "3.2.3";
sha256 = "03k0fvblwqb80zwdgas8a5fjrwvghgsn587wp3lfr0jr8gy1817c";
ccache =
stdenv.mkDerivation {
@@ -14,16 +13,19 @@ stdenv.mkDerivation {
url = "mirror://samba/ccache/${name}.tar.xz";
};
patches = [ ./test-drop-perl-requirement.patch ];
buildInputs = [ zlib ];
postPatch = ''
substituteInPlace Makefile.in --replace 'objs) $(extra_libs)' 'objs)'
'';
doCheck = true;
passthru = {
# A derivation that provides gcc and g++ commands, but that
# will end up calling ccache for the given cacheDir
links = extraConfig : (runCommand "ccache-links" { passthru.gcc = gcc; passthru.isGNU = true; }
links = extraConfig: (runCommand "ccache-links"
{ passthru.gcc = gcc; passthru.isGNU = true; }
''
mkdir -p $out/bin
if [ -x "${gcc.cc}/bin/gcc" ]; then