2004-04-22 16:38:43 +02:00
|
|
|
{stdenv, fetchurl, perl}:
|
|
|
|
|
|
|
|
# Note: I added the Perl dependency for Valgrind 2.1.1. It's needed
|
|
|
|
# to generate some files. Maybe in stable releases we won't need
|
|
|
|
# Perl.
|
2004-09-10 11:55:34 +02:00
|
|
|
# Update: 2.2.0 still needs it.
|
2004-01-21 15:50:18 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2004-09-10 11:55:34 +02:00
|
|
|
name = "valgrind-2.2.0";
|
2004-01-21 15:50:18 +01:00
|
|
|
src = fetchurl {
|
2005-02-15 15:44:19 +01:00
|
|
|
url = http://catamaran.labs.cs.uu.nl/dist/tarballs/valgrind-2.2.0.tar.bz2;
|
2004-09-10 11:55:34 +02:00
|
|
|
md5 = "30dc51f6fc94751b90b04af9c2e2c656";
|
2004-01-21 15:50:18 +01:00
|
|
|
};
|
2004-04-22 16:38:43 +02:00
|
|
|
buildInputs = [perl];
|
2005-02-23 21:56:08 +01:00
|
|
|
|
|
|
|
# Hack to get Valgrind to compile with Linux 2.6.10 headers. The
|
|
|
|
# file `include/asm/processor.h' indirectly needs
|
|
|
|
# CONFIG_X86_L1_CACHE_SHIFT (for the alignment of some type that
|
|
|
|
# probably isn't relevant here anyway).
|
|
|
|
# !!! maybe this should be done in linux-headers?
|
|
|
|
NIX_CFLAGS_COMPILE = "-DCONFIG_X86_L1_CACHE_SHIFT=7";
|
|
|
|
|
|
|
|
# Another kernel header problem.
|
|
|
|
patches = [./pgoff_t.patch];
|
2004-01-21 15:50:18 +01:00
|
|
|
}
|