2023-03-02 17:58:53 +01:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, autoreconfHook
|
2020-11-18 14:00:19 +01:00
|
|
|
, boost
|
|
|
|
, libxml2
|
|
|
|
, xml2
|
2023-03-02 17:58:53 +01:00
|
|
|
, wxGTK30
|
|
|
|
, autoconf
|
|
|
|
, automake
|
2023-08-31 12:56:35 +02:00
|
|
|
, pkg-config
|
2020-11-18 14:00:19 +01:00
|
|
|
}:
|
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
let
|
|
|
|
wx = wxGTK30;
|
|
|
|
in
|
2020-11-18 14:00:19 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "paraver-kernel";
|
2023-03-02 17:58:53 +01:00
|
|
|
version = "${src.shortRev}";
|
2020-11-18 14:00:19 +01:00
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "https://github.com/bsc-performance-tools/paraver-kernel.git";
|
2023-11-28 16:30:16 +01:00
|
|
|
rev = "2e167da3cee78ca11e31b74faefb23f12bac2b8c"; # master (missing tag)
|
2023-03-02 17:58:53 +01:00
|
|
|
ref = "master";
|
2020-11-18 14:00:19 +01:00
|
|
|
};
|
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
patches = [
|
|
|
|
# https://github.com/bsc-performance-tools/paraver-kernel/pull/11
|
|
|
|
./dont-expand-colors.patch
|
|
|
|
];
|
2020-11-18 14:00:19 +01:00
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
hardeningDisable = [ "all" ];
|
2020-11-18 14:00:19 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
dontStrip = true;
|
|
|
|
|
2020-11-18 14:00:19 +01:00
|
|
|
preConfigure = ''
|
2023-03-02 17:58:53 +01:00
|
|
|
export CFLAGS="-O3 -DPARALLEL_ENABLED"
|
|
|
|
export CXXFLAGS="-O3 -DPARALLEL_ENABLED"
|
2020-11-18 14:00:19 +01:00
|
|
|
'';
|
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost}"
|
|
|
|
"--enable-openmp"
|
|
|
|
];
|
|
|
|
|
2020-11-18 14:00:19 +01:00
|
|
|
buildInputs = [
|
2023-03-02 17:58:53 +01:00
|
|
|
autoreconfHook
|
2020-11-18 14:00:19 +01:00
|
|
|
boost
|
|
|
|
libxml2.dev
|
2023-03-02 17:58:53 +01:00
|
|
|
xml2
|
|
|
|
autoconf
|
|
|
|
automake
|
2023-08-31 12:56:35 +02:00
|
|
|
pkg-config
|
2020-11-18 14:00:19 +01:00
|
|
|
];
|
|
|
|
}
|