git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10346 from tk-ecotelecom/develop

oprofile: depend on kernel headers to correctly compile 'operf' util.

commit35059e73ff85afd58ab1134781a95f53bdc597b9 authorPeter Simons <simons@cryp.to> dateTue 13 Oct 2015, 11:12 (11 years ago) parent4760b6eaefa4a1
1 file changed+3−2
pkgs/development/tools/profiling/oprofile/default.nix+3−2
pkgs/development/tools/profiling/oprofile/default.nix+3−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig
1+{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, linuxHeaders
22, withGUI ? false , qt4 ? null}:
33
44# libX11 is needed because the Qt build stuff automatically adds `-lX11'.
@@ -12,10 +12,11 @@ stdenv.mkDerivation rec {
1212 sha256 = "0nn4wfvwy4nii25y6lwlrnzx9ah4nz0r93yk7hswiy6wxjs10wc4";
1313 };
1414
15− buildInputs = [ binutils zlib popt pkgconfig ]
15+ buildInputs = [ binutils zlib popt pkgconfig linuxHeaders ]
1616 ++ stdenv.lib.optionals withGUI [ qt4 ];
1717
1818 configureFlags = [
19+ "--with-kernel=${linuxHeaders}"
1920 "--disable-shared" # needed because only the static libbfd is available
2021 ]
2122 ++ stdenv.lib.optional withGUI "--with-qt-dir=${qt4} --enable-gui=qt4";