Adding linux 'perf' tool.
svn path=/nixpkgs/trunk/; revision=31319
This commit is contained in:
parent
f490ef82b8
commit
4c814dd003
21
pkgs/os-specific/linux/kernel/perf.nix
Normal file
21
pkgs/os-specific/linux/kernel/perf.nix
Normal file
@ -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;
|
stdenv = overrideGCC stdenv gcc34;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
|
||||||
|
|
||||||
# State Nix
|
# State Nix
|
||||||
snix = callPackage ../tools/package-management/snix {
|
snix = callPackage ../tools/package-management/snix {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user