diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-05-25 21:39:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 21:39:09 +0200 |
commit | d68562ad6fe22a04cf8b021cb11097213ff8137c (patch) | |
tree | 367497771987e5cda26db79945b7137b3a20b019 /pkgs/development | |
parent | 871f9530db299f24be002a003311efc5c02a8ad4 (diff) | |
parent | a661cfe9c2d9e945c5c90515390dc177f47f13c5 (diff) |
Merge pull request #174347 from helsinki-systems/oprofile-no-gui
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/profiling/oprofile/default.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/pkgs/development/tools/profiling/oprofile/default.nix b/pkgs/development/tools/profiling/oprofile/default.nix index 08f89d482ddd..3bedc45c8d10 100644 --- a/pkgs/development/tools/profiling/oprofile/default.nix +++ b/pkgs/development/tools/profiling/oprofile/default.nix @@ -1,12 +1,8 @@ { lib, stdenv, buildPackages , fetchurl, pkg-config , libbfd, popt, zlib, linuxHeaders, libiberty_static -, withGUI ? false, qt4 ? null }: -# libX11 is needed because the Qt build stuff automatically adds `-lX11'. -assert withGUI -> qt4 != null; - stdenv.mkDerivation rec { pname = "oprofile"; version = "1.4.0"; @@ -23,14 +19,12 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libbfd zlib popt linuxHeaders libiberty_static ] - ++ lib.optionals withGUI [ qt4 ]; + buildInputs = [ libbfd zlib popt linuxHeaders libiberty_static ]; configureFlags = [ - "--with-kernel=${linuxHeaders}" - "--disable-shared" # needed because only the static libbfd is available - ] - ++ lib.optional withGUI "--with-qt-dir=${qt4} --enable-gui=qt4"; + "--with-kernel=${linuxHeaders}" + "--disable-shared" # needed because only the static libbfd is available + ]; meta = { description = "System-wide profiler for Linux"; |