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 | |
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')
-rw-r--r-- | pkgs/os-specific/linux/kernel/perf.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 23 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 31cf2a4834b4..50aa19571be6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { |