12 , enableRawUdp ? true, libpcap
21 gnuradio.pkgs.mkDerivation rec {
25 src = fetchFromGitHub {
29 sha256 = "sha256-IbkYdw1pwI+FMnZMChsxMz241Kv4EzMcBb0mm6/jq1k=";
33 # Use the relative install location for volk_gnsssdr_module and
34 # cpu_features which is bundled in the source. NOTE: Perhaps this patch
35 # should be sent upstream.
36 ./fix_libcpu_features_install_path.patch
42 gnuradio.unwrapped.python
43 gnuradio.unwrapped.python.pkgs.mako
44 gnuradio.unwrapped.python.pkgs.six
61 gnuradio.unwrapped.boost
62 gnuradio.unwrapped.logLib
63 ] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
64 gnuradio.unwrapped.uhd
65 ] ++ lib.optionals (enableRawUdp) [
67 ] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
69 gnuradio.unwrapped.python.pkgs.thrift
70 ] ++ lib.optionals (gnuradio.hasFeature "gr-pdu" || gnuradio.hasFeature "gr-iio") [
71 gnuradio.unwrapped.libiio
72 ] ++ lib.optionals (gnuradio.hasFeature "gr-pdu") [
73 gnuradio.unwrapped.libad9361
77 (lib.cmakeFeature "GFlags_INCLUDE_DIRS" "${gflags}/include")
78 (lib.cmakeFeature "GLOG_INCLUDE_DIR" "${glog}/include")
79 # Should use .dylib if darwin support is requested
80 (lib.cmakeFeature "GFlags_LIBS" "${gflags}/lib/libgflags.so")
81 (lib.cmakeFeature "-DGLOG_LIBRARIES" "${glog}/lib/libglog.so")
82 # Use our dependencies glog, gflags and armadillo dependencies
83 (lib.cmakeBool "ENABLE_OWN_GLOG" false)
84 (lib.cmakeBool "ENABLE_OWN_ARMADILLO" false)
85 (lib.cmakeBool "ENABLE_ORC" true)
86 (lib.cmakeBool "ENABLE_LOG" true)
87 (lib.cmakeBool "ENABLE_RAW_UDP" enableRawUdp)
88 (lib.cmakeBool "ENABLE_UHD" (gnuradio.hasFeature "gr-uhd"))
89 (lib.cmakeBool "ENABLE_FMCOMMS2" (gnuradio.hasFeature "gr-iio" && gnuradio.hasFeature "gr-pdu"))
90 (lib.cmakeBool "ENABLE_PLUTOSDR" (gnuradio.hasFeature "gr-iio"))
91 (lib.cmakeBool "ENABLE_AD9361" (gnuradio.hasFeature "gr-pdu"))
92 (lib.cmakeBool "ENABLE_UNIT_TESTING" false)
94 # gnss-sdr doesn't truly depend on BLAS or LAPACK, as long as
95 # armadillo is built using both, so skip checking for them.
96 (lib.cmakeFeature "BLAS_LIBRARIES" "-lblas")
97 (lib.cmakeFeature "LAPACK_LIBRARIES" "-llapack")
101 description = "Open source Global Navigation Satellite Systems software-defined receiver";
102 homepage = "https://gnss-sdr.org/";
103 license = licenses.gpl3Plus;
104 platforms = platforms.linux;