Adding linux 'perf' tool.
svn path=/nixpkgs/trunk/; revision=31319
This commit is contained in:
parent
f490ef82b8
commit
4c814dd003
|
@ -0,0 +1,21 @@
|
|||
{ stdenv, kernel, elfutils }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "perf-linux-${kernel.version}";
|
||||
|
||||
inherit (kernel) src;
|
||||
|
||||
preConfigure = ''
|
||||
cd tools/perf
|
||||
export makeFlags="DESTDIR=$out"
|
||||
'';
|
||||
|
||||
buildInputs = [ elfutils ];
|
||||
|
||||
meta = {
|
||||
homepage = https://perf.wiki.kernel.org/;
|
||||
description = "Linux tools to profile with performance counters";
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
|
@ -5821,6 +5821,8 @@ let
|
|||
stdenv = overrideGCC stdenv gcc34;
|
||||
};
|
||||
|
||||
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
|
||||
|
||||
# State Nix
|
||||
snix = callPackage ../tools/package-management/snix {
|
||||
|
||||
|
|
Loading…
Reference in New Issue