diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-08-19 13:03:08 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-08-19 13:03:08 +0000 |
commit | 1acf5fa9f0afbafc2caad04b0246d60713e3b990 (patch) | |
tree | ad98b778d6937f08b1b505e391653defdb9a09ec /pkgs/development/tools/analysis | |
parent | 57d4d2d830bc319d317666515e6d76bf42a16c4c (diff) |
* 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
Diffstat (limited to 'pkgs/development/tools/analysis')
-rw-r--r-- | pkgs/development/tools/analysis/valgrind/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/valgrind/default.nix b/pkgs/development/tools/analysis/valgrind/default.nix index 599e9dbd71e52..23b6f5e08fab8 100644 --- a/pkgs/development/tools/analysis/valgrind/default.nix +++ b/pkgs/development/tools/analysis/valgrind/default.nix @@ -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"; |