summary refs log tree commit diff
path: root/pkgs/development/tools/misc/ccache
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-11 15:16:15 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-12 07:52:59 +0200
commit6396c04d9f2895de1c22f19d4d5780446c99a3ba (patch)
treead12cc91c738a43e67816bc9f353cc1cb7b4ac5a /pkgs/development/tools/misc/ccache
parent1b6fcfa24ec88e00efa499725174b094e0a116fb (diff)
downloadnixpkgs-6396c04d9f2895de1c22f19d4d5780446c99a3ba.tar
nixpkgs-6396c04d9f2895de1c22f19d4d5780446c99a3ba.tar.gz
nixpkgs-6396c04d9f2895de1c22f19d4d5780446c99a3ba.tar.bz2
nixpkgs-6396c04d9f2895de1c22f19d4d5780446c99a3ba.tar.lz
nixpkgs-6396c04d9f2895de1c22f19d4d5780446c99a3ba.tar.xz
nixpkgs-6396c04d9f2895de1c22f19d4d5780446c99a3ba.tar.zst
nixpkgs-6396c04d9f2895de1c22f19d4d5780446c99a3ba.zip
ccache: enable tests
Let's hope this doesn't break all over the place. Works here.
Diffstat (limited to 'pkgs/development/tools/misc/ccache')
-rw-r--r--pkgs/development/tools/misc/ccache/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/tools/misc/ccache/default.nix b/pkgs/development/tools/misc/ccache/default.nix
index b0a8e1b3e2c..db02fef9f2a 100644
--- a/pkgs/development/tools/misc/ccache/default.nix
+++ b/pkgs/development/tools/misc/ccache/default.nix
@@ -1,19 +1,23 @@
-{stdenv, fetchurl, runCommand, gcc, zlib}:
+{ stdenv, fetchurl, runCommand, gcc, perl, 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;
+  inherit name doCheck;
   src = fetchurl {
     inherit sha256;
     url = "mirror://samba/ccache/${name}.tar.xz";
   };
 
-  buildInputs = [ zlib ];
+  # The test dependency on perl should be gone in the next release:
+  buildInputs = [ zlib ]
+    ++ stdenv.lib.optionals doCheck [ perl ];
 
   passthru = {
     # A derivation that provides gcc and g++ commands, but that