* Make Valgrind's default suppressions useful for Nix-compiled

programs (e.g. a rule should match any libc.so, not just
  /lib/libc.so).

svn path=/nixpkgs/trunk/; revision=12661
This commit is contained in:
Eelco Dolstra 2008-08-19 13:03:08 +00:00
parent 57d4d2d830
commit 1acf5fa9f0

View File

@ -17,6 +17,15 @@ stdenv.mkDerivation {
configureFlags =
if stdenv.system == "x86_64-linux" then ["--enable-only64bit"] else [];
postInstall = ''
for i in $out/lib/valgrind/*.supp; do
substituteInPlace $i \
--replace 'obj:/lib' 'obj:*/lib' \
--replace 'obj:/usr/X11R6/lib' 'obj:*/lib' \
--replace 'obj:/usr/lib' 'obj:*/lib'
done
'';
meta = {
homepage = http://www.valgrind.org/;
description = "Valgrind, a debugging and profiling tool suite";