diff options
author | Timofei Kushnir <timophey@ecotelecom.ru> | 2015-10-12 15:02:01 +0300 |
---|---|---|
committer | Timofei Kushnir <timophey@ecotelecom.ru> | 2015-10-12 15:02:01 +0300 |
commit | d7eb1dd8d03a8d44af90aa76742523f022bc0f49 (patch) | |
tree | 8dc1f8ff16fef49478ca65ee0d19876018924a60 /pkgs/development/tools | |
parent | 6ea8f649e62e00fb1d29c87835a6ab1b125ab9c4 (diff) | |
download | nixlib-d7eb1dd8d03a8d44af90aa76742523f022bc0f49.tar nixlib-d7eb1dd8d03a8d44af90aa76742523f022bc0f49.tar.gz nixlib-d7eb1dd8d03a8d44af90aa76742523f022bc0f49.tar.bz2 nixlib-d7eb1dd8d03a8d44af90aa76742523f022bc0f49.tar.lz nixlib-d7eb1dd8d03a8d44af90aa76742523f022bc0f49.tar.xz nixlib-d7eb1dd8d03a8d44af90aa76742523f022bc0f49.tar.zst nixlib-d7eb1dd8d03a8d44af90aa76742523f022bc0f49.zip |
oprofile: depend on kernel headers to correctly compile 'operf' util.
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/profiling/oprofile/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/tools/profiling/oprofile/default.nix b/pkgs/development/tools/profiling/oprofile/default.nix index 4c4d8f87d331..4c49bbbf25b1 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, linuxPackages +{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, kernelHeaders , withGUI ? false , qt4 ? null}: # libX11 is needed because the Qt build stuff automatically adds `-lX11'. @@ -12,14 +12,11 @@ stdenv.mkDerivation rec { sha256 = "0nn4wfvwy4nii25y6lwlrnzx9ah4nz0r93yk7hswiy6wxjs10wc4"; }; - buildInputs = [ binutils zlib popt pkgconfig linuxPackages.kernelHeaders ] + buildInputs = [ binutils zlib popt pkgconfig kernelHeaders ] ++ stdenv.lib.optionals withGUI [ qt4 ]; configureFlags = [ - "--build ${stdenv.system}" - "--host ${stdenv.system}" - "--target ${stdenv.system}" - "--with-kernel=${linuxPackages.kernelHeaders}" + "--with-kernel=${kernelHeaders}" "--disable-shared" # needed because only the static libbfd is available ] ++ stdenv.lib.optional withGUI "--with-qt-dir=${qt4} --enable-gui=qt4"; |