gnuradio: force wxgui and pygtk check to true

enables gnuradio-companion compilation in headless/nix-multiuser environment
This commit is contained in:
Luke Adams 2017-07-25 18:08:33 -05:00
parent 17908a7de1
commit 6e9140d5c3

View file

@ -65,8 +65,11 @@ stdenv.mkDerivation rec {
setupHook = [ grcSetupHook ];
# patch wxgui and pygtk check due to python importerror in a headless environment
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-unused-variable -std=c++11"
sed -i 's/.*wx\.version.*/set(WX_FOUND TRUE)/g' gr-wxgui/CMakeLists.txt
sed -i 's/.*pygtk_version.*/set(PYGTK_FOUND TRUE)/g' grc/CMakeLists.txt
'';
# Framework path needed for qwt6_qt4 but not qwt5