mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
4c814dd003
svn path=/nixpkgs/trunk/; revision=31319
22 lines
472 B
Nix
22 lines
472 B
Nix
{ 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;
|
|
};
|
|
}
|