2013-01-28 12:48:35 +00:00
|
|
|
{ stdenv, fetchurl, libunwind }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-11-08 22:45:47 +00:00
|
|
|
name = "gperftools-2.1";
|
2013-01-28 12:48:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gperftools.googlecode.com/files/${name}.tar.gz";
|
2013-11-08 22:45:47 +00:00
|
|
|
sha256 = "0ks9gsnhxrs2vccc6ha9m8xmj83lmw09xcws4zc0k57q4jcy5bgk";
|
2013-01-28 12:48:35 +00:00
|
|
|
};
|
|
|
|
|
2014-06-27 17:59:47 +00:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isLinux libunwind;
|
2013-01-28 12:48:35 +00:00
|
|
|
|
2013-11-08 22:45:47 +00:00
|
|
|
# some packages want to link to the static tcmalloc_minimal
|
|
|
|
# to drop the runtime dependency on gperftools
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
2013-01-28 12:48:35 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://code.google.com/p/gperftools/;
|
|
|
|
description = "Fast, multi-threaded malloc() and nifty performance analysis tools";
|
2014-06-27 17:59:47 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2013-01-28 12:48:35 +00:00
|
|
|
};
|
|
|
|
}
|