diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-01-05 21:24:51 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-01-05 21:24:51 +0000 |
commit | 4c814dd003093c50ff1307abf99803b6a93ed4aa (patch) | |
tree | 3dff6050f5c3bc9673c00205c39acac92b7e729b /pkgs/os-specific | |
parent | f490ef82b8e66b6d2d531b71c10aae6dcc98c038 (diff) | |
download | nixlib-4c814dd003093c50ff1307abf99803b6a93ed4aa.tar nixlib-4c814dd003093c50ff1307abf99803b6a93ed4aa.tar.gz nixlib-4c814dd003093c50ff1307abf99803b6a93ed4aa.tar.bz2 nixlib-4c814dd003093c50ff1307abf99803b6a93ed4aa.tar.lz nixlib-4c814dd003093c50ff1307abf99803b6a93ed4aa.tar.xz nixlib-4c814dd003093c50ff1307abf99803b6a93ed4aa.tar.zst nixlib-4c814dd003093c50ff1307abf99803b6a93ed4aa.zip |
Adding linux 'perf' tool.
svn path=/nixpkgs/trunk/; revision=31319
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/kernel/perf.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/perf.nix b/pkgs/os-specific/linux/kernel/perf.nix new file mode 100644 index 000000000000..4b8583dcc952 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/perf.nix @@ -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; + }; +} |