2020-11-18 14:00:19 +01:00
|
|
|
{
|
|
|
|
stdenv
|
2023-03-02 17:58:53 +01:00
|
|
|
, autoreconfHook
|
2020-11-18 14:00:19 +01:00
|
|
|
, boost
|
|
|
|
, libxml2
|
|
|
|
, xml2
|
2023-04-11 20:34:11 +02:00
|
|
|
, wxGTK32
|
2020-11-18 14:00:19 +01:00
|
|
|
, autoconf
|
|
|
|
, automake
|
2023-03-02 17:58:53 +01:00
|
|
|
, paraverKernel
|
|
|
|
, openssl
|
|
|
|
, glibcLocales
|
2024-02-14 19:40:16 +01:00
|
|
|
, wrapGAppsHook
|
2020-11-18 14:00:19 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2023-04-11 20:34:11 +02:00
|
|
|
wx = wxGTK32;
|
2020-11-18 14:00:19 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wxparaver";
|
2023-11-28 16:30:16 +01:00
|
|
|
version = "4.11.2";
|
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/wxparaver.git";
|
2023-11-28 16:30:16 +01:00
|
|
|
rev = "129e6b4a4f061e5a319049db8db1620f5de3bd70"; # v4.11.2 (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
|
|
|
hardeningDisable = [ "all" ];
|
2020-11-18 14:00:19 +01:00
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
# Fix the PARAVER_HOME variable
|
2020-11-18 14:00:19 +01:00
|
|
|
postPatch = ''
|
2023-03-02 17:58:53 +01:00
|
|
|
sed -i 's@^PARAVER_HOME=.*$@PARAVER_HOME='$out'@g' docs/wxparaver
|
|
|
|
sed -i '1aexport LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"' docs/wxparaver
|
2020-11-18 14:00:19 +01:00
|
|
|
'';
|
2023-03-02 17:58:53 +01:00
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
enableParallelBuilding = true;
|
2020-11-18 14:00:19 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2023-03-02 17:58:53 +01:00
|
|
|
export CFLAGS="-O3"
|
|
|
|
export CXXFLAGS="-O3"
|
2020-11-18 14:00:19 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost}"
|
|
|
|
"--with-wx-config=${wx}/bin/wx-config"
|
2023-03-02 17:58:53 +01:00
|
|
|
"--with-paraver=${paraverKernel}"
|
|
|
|
"--with-openssl=${openssl.dev}"
|
2020-11-18 14:00:19 +01:00
|
|
|
];
|
|
|
|
|
2024-02-14 19:40:16 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
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
|
2020-11-18 14:00:19 +01:00
|
|
|
wx
|
|
|
|
autoconf
|
|
|
|
automake
|
2023-03-02 17:58:53 +01:00
|
|
|
paraverKernel
|
2023-03-02 12:47:25 +01:00
|
|
|
openssl.dev
|
2023-03-02 17:58:53 +01:00
|
|
|
paraverKernel
|
2020-11-18 14:00:19 +01:00
|
|
|
];
|
|
|
|
|
2023-03-02 17:58:53 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
mkdir -p $out/lib/paraver-kernel
|
|
|
|
mkdir -p $out/share/filters-config
|
|
|
|
cp -p ${paraverKernel}/bin/* $out/bin
|
|
|
|
# cp -p ${paraverKernel}/include/* $out/include
|
|
|
|
cp -a ${paraverKernel}/lib/paraver-kernel $out/lib/paraver-kernel
|
|
|
|
cp -p ${paraverKernel}/share/filters-config/* $out/share/filters-config
|
|
|
|
'';
|
2020-11-18 14:00:19 +01:00
|
|
|
}
|