3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/profiling/oprofile/default.nix

45 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, linuxHeaders
2016-03-30 16:51:12 +01:00
, libiberty_static, withGUI ? false , qt4 ? null}:
# libX11 is needed because the Qt build stuff automatically adds `-lX11'.
assert withGUI -> qt4 != null;
stdenv.mkDerivation rec {
2015-10-13 11:26:32 +01:00
name = "oprofile-1.1.0";
src = fetchurl {
url = "mirror://sourceforge/oprofile/${name}.tar.gz";
2015-10-13 11:26:32 +01:00
sha256 = "0v1nn38h227bgxjwqf22rjp2iqgjm4ls3gckzifks0x6w5nrlxfg";
};
2016-03-30 16:51:12 +01:00
buildInputs = [ binutils zlib popt pkgconfig linuxHeaders libiberty_static ]
++ stdenv.lib.optionals withGUI [ qt4 ];
2013-02-23 22:49:48 +00:00
configureFlags = [
"--with-kernel=${linuxHeaders}"
"--disable-shared" # needed because only the static libbfd is available
]
++ stdenv.lib.optional withGUI "--with-qt-dir=${qt4} --enable-gui=qt4";
meta = {
description = "System-wide profiler for Linux";
longDescription = ''
OProfile is a system-wide profiler for Linux systems, capable of
profiling all running code at low overhead. It consists of a
kernel driver and a daemon for collecting sample data, and
several post-profiling tools for turning data into information.
OProfile leverages the hardware performance counters of the CPU
to enable profiling of a wide variety of interesting statistics,
which can also be used for basic time-spent profiling. All code
is profiled: hardware and software interrupt handlers, kernel
modules, the kernel, shared libraries, and applications.
'';
license = stdenv.lib.licenses.gpl2;
homepage = http://oprofile.sourceforge.net/;
platforms = stdenv.lib.platforms.linux;
2013-08-16 22:44:33 +01:00
maintainers = [ ];
};
}