oprofile: remove withGUI
hasn't been supported since 2014 see 0c142c3a096d3e9ec42cc9b0ddad994fea60d135 upstream
This commit is contained in:
parent
824ad4fe30
commit
a661cfe9c2
|
@ -1,12 +1,8 @@
|
||||||
{ lib, stdenv, buildPackages
|
{ lib, stdenv, buildPackages
|
||||||
, fetchurl, pkg-config
|
, fetchurl, pkg-config
|
||||||
, libbfd, popt, zlib, linuxHeaders, libiberty_static
|
, 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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "oprofile";
|
pname = "oprofile";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
|
@ -23,14 +19,12 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ libbfd zlib popt linuxHeaders libiberty_static ]
|
buildInputs = [ libbfd zlib popt linuxHeaders libiberty_static ];
|
||||||
++ lib.optionals withGUI [ qt4 ];
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-kernel=${linuxHeaders}"
|
"--with-kernel=${linuxHeaders}"
|
||||||
"--disable-shared" # needed because only the static libbfd is available
|
"--disable-shared" # needed because only the static libbfd is available
|
||||||
]
|
];
|
||||||
++ lib.optional withGUI "--with-qt-dir=${qt4} --enable-gui=qt4";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "System-wide profiler for Linux";
|
description = "System-wide profiler for Linux";
|
||||||
|
|
Loading…
Reference in a new issue