about summary refs log tree commit diff
path: root/pkgs/development/tools/profiling
diff options
context:
space:
mode:
authorTimofei Kushnir <timophey@ecotelecom.ru>2015-10-12 13:05:04 +0300
committerTimofei Kushnir <timophey@ecotelecom.ru>2015-10-12 13:05:04 +0300
commit6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4 (patch)
tree46596e92a31845117391bdb6b0723e8502872303 /pkgs/development/tools/profiling
parentde01537b3449d7f98dbb35ad9eb8c4698d49198a (diff)
downloadnixlib-6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4.tar
nixlib-6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4.tar.gz
nixlib-6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4.tar.bz2
nixlib-6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4.tar.lz
nixlib-6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4.tar.xz
nixlib-6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4.tar.zst
nixlib-6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4.zip
Create kernel headers dependency to correctly compile 'operf' util.
Diffstat (limited to 'pkgs/development/tools/profiling')
-rw-r--r--pkgs/development/tools/profiling/oprofile/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/tools/profiling/oprofile/default.nix b/pkgs/development/tools/profiling/oprofile/default.nix
index 561fea6ef7b0..4c4d8f87d331 100644
--- a/pkgs/development/tools/profiling/oprofile/default.nix
+++ b/pkgs/development/tools/profiling/oprofile/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig
+{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, linuxPackages
 , withGUI ? false , qt4 ? null}:
 
 # libX11 is needed because the Qt build stuff automatically adds `-lX11'.
@@ -12,10 +12,14 @@ stdenv.mkDerivation rec {
     sha256 = "0nn4wfvwy4nii25y6lwlrnzx9ah4nz0r93yk7hswiy6wxjs10wc4";
   };
 
-  buildInputs = [ binutils zlib popt pkgconfig ]
+  buildInputs = [ binutils zlib popt pkgconfig linuxPackages.kernelHeaders ]
     ++ stdenv.lib.optionals withGUI [ qt4 ];
 
   configureFlags = [
+      "--build ${stdenv.system}"
+      "--host ${stdenv.system}"
+      "--target ${stdenv.system}"
+      "--with-kernel=${linuxPackages.kernelHeaders}"
       "--disable-shared"   # needed because only the static libbfd is available
     ]
     ++ stdenv.lib.optional withGUI "--with-qt-dir=${qt4} --enable-gui=qt4";