Added callgrind, which is an extraordinary sexy tool for call graphs and profiling based onvalgrind

svn path=/nixpkgs/trunk/; revision=4259
This commit is contained in:
Martin Bravenboer 2005-11-11 16:54:03 +00:00
parent e6c4e72c3a
commit 56f1fe73e9
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,9 @@
source $stdenv/setup
tar jxvf $valgrindsrc || fail
cd valgrind-* || fail
./configure --prefix=$out || fail
make || fail
make install || fail
genericBuild

View File

@ -0,0 +1,21 @@
# Valgrind has to be in the same prefix and I didn't feel like
# patching. So, valgrind is installed here as well.
{stdenv, fetchurl, which, perl}:
stdenv.mkDerivation {
name = "callgrind-0.10.0";
builder = ./builder.sh;
src = fetchurl {
url = http://kcachegrind.sourceforge.net/callgrind-0.10.0.tar.gz;
md5 = "3bd2afd50fde7db4bd5a59dcb412d5e7";
};
valgrindsrc = fetchurl {
url = http://valgrind.org/downloads/valgrind-3.0.1.tar.bz2;
md5 = "c29efdb7d1a93440f5644a6769054681";
};
buildInputs = [which perl];
}

View File

@ -366,6 +366,10 @@ rec {
inherit fetchurl stdenv;
};
callgrind = (import ../development/tools/misc/callgrind) {
inherit fetchurl stdenv which perl;
};
texinfo = (import ../development/tools/misc/texinfo) {
inherit fetchurl stdenv ncurses;
};