paraver: Downgrade wx to 2.8 and add wxpropgrid

Fixes a problem with i3 when opening a new timeline view, which caused a
rapid switch between paraver main window and the timeline.
This commit is contained in:
Rodrigo Arias 2020-11-19 16:36:47 +01:00
parent a076d7d3d0
commit e65c801a20
3 changed files with 34 additions and 5 deletions

View File

@ -5,13 +5,14 @@
, libxml2
, xml2
, fetchurl
, wxGTK31
, wxGTK28
, autoconf
, automake
, wxpropgrid
}:
let
wx = wxGTK31;
wx = wxGTK28;
in
stdenv.mkDerivation rec {
pname = "wxparaver";
@ -36,9 +37,9 @@ stdenv.mkDerivation rec {
# Patch shebang as /usr/bin/env is missing in nix
sed -i '1c#!/bin/sh' src/paraver-cfgs/install.sh
sed -i '1524d' src/wxparaver/src/gtimeline.cpp
sed -i '806d' src/wxparaver/src/gtimeline.cpp
sed -i '142d' src/wxparaver/src/paravermain.cpp
#sed -i '1524d' src/wxparaver/src/gtimeline.cpp
#sed -i '806d' src/wxparaver/src/gtimeline.cpp
#sed -i '142d' src/wxparaver/src/paravermain.cpp
'';
#TODO: Move the sed commands to proper patches (and maybe send them upstream?)
@ -51,6 +52,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--with-boost=${boost}"
"--with-wx-config=${wx}/bin/wx-config"
"--with-wxpropgrid-dir=${wxpropgrid}"
];
buildInputs = [

View File

@ -0,0 +1,26 @@
{
stdenv
, fetchurl
, wxGTK28
}:
let
#wx = wxGTK31; # BUG
wx = wxGTK28;
in
stdenv.mkDerivation rec {
pname = "wxpropgrid";
version = "1.4.15";
src = fetchurl {
url = "http://prdownloads.sourceforge.net/wxpropgrid/wxpropgrid-${version}-src.tar.gz";
sha256 = "1f62468x5s4h775bn5svlkv0lzzh06aciljpiqn5k3w2arkaijgh";
};
enableParallelBuilding = true;
buildInputs = [
wx
];
}

View File

@ -97,6 +97,7 @@ let
fftw = callPackage ./bsc/fftw/default.nix { };
wxpropgrid = callPackage ./bsc/wxpropgrid/default.nix { };
paraver = callPackage ./bsc/paraver/default.nix { };
paraverDebug = bsc.paraver.overrideAttrs (old:
{