mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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:
parent
e6c4e72c3a
commit
56f1fe73e9
9
pkgs/development/tools/misc/callgrind/builder.sh
Normal file
9
pkgs/development/tools/misc/callgrind/builder.sh
Normal 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
|
21
pkgs/development/tools/misc/callgrind/default.nix
Normal file
21
pkgs/development/tools/misc/callgrind/default.nix
Normal 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];
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user