Skip to content

Commit

Permalink
gnuradio: fix build for gcc6 and newer boost (#29740)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl authored and joachifm committed Sep 26, 2017
1 parent bda2d25 commit 3766637
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/applications/misc/gnuradio/default.nix
Expand Up @@ -41,8 +41,14 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

postPatch = ''
substituteInPlace \
gr-fec/include/gnuradio/fec/polar_decoder_common.h \
--replace BOOST_CONSTEXPR_OR_CONST const
'';

preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-unused-variable"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-unused-variable -std=c++11"
'';

# - Ensure we get an interactive backend for matplotlib. If not the gr_plot_*
Expand Down

0 comments on commit 3766637

Please sign in to comment.