tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gnuradio: setupHook: enable composition with nix-shell
Luke Adams
8 years ago
17908a7d
482d8de3
+11
-1
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
gnuradio
default.nix
+11
-1
pkgs/applications/misc/gnuradio/default.nix
···
1
1
-
{ stdenv, fetchurl, makeWrapper
1
1
+
{ stdenv, fetchurl, writeText, makeWrapper
2
2
# Dependencies documented @ https://gnuradio.org/doc/doxygen/build_guide.html
3
3
# => core dependencies
4
4
, cmake, pkgconfig, git, boost, cppunit, fftw
···
54
54
gr-fec/include/gnuradio/fec/polar_decoder_common.h \
55
55
--replace BOOST_CONSTEXPR_OR_CONST const
56
56
'';
57
57
+
58
58
+
# Enables composition with nix-shell
59
59
+
grcSetupHook = writeText "grcSetupHook.sh" ''
60
60
+
addGRCBlocksPath() {
61
61
+
addToSearchPath GRC_BLOCKS_PATH $1/share/gnuradio/grc/blocks
62
62
+
}
63
63
+
envHooks+=(addGRCBlocksPath)
64
64
+
'';
65
65
+
66
66
+
setupHook = [ grcSetupHook ];
57
67
58
68
preConfigure = ''
59
69
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-unused-variable -std=c++11"