git.iko.soy/typeable/nixpkgs
on master help sign in
oprofile: depend on kernel headers to correctly compile 'operf' util.
commitd7eb1dd8d03a8d44af90aa76742523f022bc0f49 authorTimofei Kushnir <timophey@ecotelecom.ru> dateMon 12 Oct 2015, 15:02 (11 years ago) parent6ea8f64
2 files changed+6−7
pkgs/development/tools/profiling/oprofile/default.nix+3−6 pkgs/top-level/all-packages.nix+3−1
pkgs/development/tools/profiling/oprofile/default.nix+3−6
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, linuxPackages
1+{ stdenv, fetchurl, binutils, popt, zlib, pkgconfig, kernelHeaders
22, withGUI ? false , qt4 ? null}:
33
44# libX11 is needed because the Qt build stuff automatically adds `-lX11'.
@@ -12,14 +12,11 @@ stdenv.mkDerivation rec {
1212 sha256 = "0nn4wfvwy4nii25y6lwlrnzx9ah4nz0r93yk7hswiy6wxjs10wc4";
1313 };
1414
15− buildInputs = [ binutils zlib popt pkgconfig linuxPackages.kernelHeaders ]
15+ buildInputs = [ binutils zlib popt pkgconfig kernelHeaders ]
1616 ++ stdenv.lib.optionals withGUI [ qt4 ];
1717
1818 configureFlags = [
19− "--build ${stdenv.system}"
20− "--host ${stdenv.system}"
21− "--target ${stdenv.system}"
22− "--with-kernel=${linuxPackages.kernelHeaders}"
19+ "--with-kernel=${kernelHeaders}"
2320 "--disable-shared" # needed because only the static libbfd is available
2421 ]
2522 ++ stdenv.lib.optional withGUI "--with-qt-dir=${qt4} --enable-gui=qt4";
pkgs/top-level/all-packages.nix+3−1
@@ -5656,7 +5656,9 @@ let
56565656
56575657 openocd = callPackage ../development/tools/misc/openocd { };
56585658
5659− oprofile = callPackage ../development/tools/profiling/oprofile { };
5659+ oprofile = callPackage ../development/tools/profiling/oprofile {
5660+ kernelHeaders = linuxHeaders;
5661+ };
56605662
56615663 patchelf = callPackage ../development/tools/misc/patchelf { };
56625664