ccache: drop unnecessary perl dependency

Backport a one-line patch to remove the test suite's dependency on
perl, which, while not exactly heavy, is unnecessary.
This commit is contained in:
Tobias Geerinckx-Rice
2015-07-02 03:35:35 +02:00
parent bc9079dc53
commit 4023da6237
2 changed files with 43 additions and 6 deletions
@@ -1,23 +1,24 @@
{ stdenv, fetchurl, runCommand, gcc, perl, zlib }:
{ 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";
doCheck = true;
ccache =
stdenv.mkDerivation {
inherit name doCheck;
inherit name;
src = fetchurl {
inherit sha256;
url = "mirror://samba/ccache/${name}.tar.xz";
};
# The test dependency on perl should be gone in the next release:
buildInputs = [ zlib ]
++ stdenv.lib.optionals doCheck [ perl ];
patches = [ ./test-drop-perl-requirement.patch ];
buildInputs = [ zlib ];
doCheck = true;
passthru = {
# A derivation that provides gcc and g++ commands, but that