diff options
author | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2005-11-11 16:54:03 +0000 |
---|---|---|
committer | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2005-11-11 16:54:03 +0000 |
commit | 56f1fe73e9ef18cac349e78b060295464d23db5d (patch) | |
tree | 4076321e09adddd6c8a9ab07dacee310d094b767 /pkgs/development/tools | |
parent | e6c4e72c3a4e48cf6dfbbf93a8f9c03e6f2689d6 (diff) | |
download | nixlib-56f1fe73e9ef18cac349e78b060295464d23db5d.tar nixlib-56f1fe73e9ef18cac349e78b060295464d23db5d.tar.gz nixlib-56f1fe73e9ef18cac349e78b060295464d23db5d.tar.bz2 nixlib-56f1fe73e9ef18cac349e78b060295464d23db5d.tar.lz nixlib-56f1fe73e9ef18cac349e78b060295464d23db5d.tar.xz nixlib-56f1fe73e9ef18cac349e78b060295464d23db5d.tar.zst nixlib-56f1fe73e9ef18cac349e78b060295464d23db5d.zip |
Added callgrind, which is an extraordinary sexy tool for call graphs and profiling based onvalgrind
svn path=/nixpkgs/trunk/; revision=4259
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/misc/callgrind/builder.sh | 9 | ||||
-rw-r--r-- | pkgs/development/tools/misc/callgrind/default.nix | 21 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/callgrind/builder.sh b/pkgs/development/tools/misc/callgrind/builder.sh new file mode 100644 index 000000000000..7431ea5e7ff6 --- /dev/null +++ b/pkgs/development/tools/misc/callgrind/builder.sh @@ -0,0 +1,9 @@ +source $stdenv/setup + +tar jxvf $valgrindsrc || fail +cd valgrind-* || fail +./configure --prefix=$out || fail +make || fail +make install || fail + +genericBuild diff --git a/pkgs/development/tools/misc/callgrind/default.nix b/pkgs/development/tools/misc/callgrind/default.nix new file mode 100644 index 000000000000..c65b25d707af --- /dev/null +++ b/pkgs/development/tools/misc/callgrind/default.nix @@ -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]; +} |