gnuradio: enable gr-vocoder
This commit is contained in:
parent
24abc4bfc4
commit
6242f38c30
@ -190,11 +190,10 @@ let
|
|||||||
runtime = [ SDL ];
|
runtime = [ SDL ];
|
||||||
cmakeEnableFlag = "GR_VIDEO_SDL";
|
cmakeEnableFlag = "GR_VIDEO_SDL";
|
||||||
};
|
};
|
||||||
# codec2 and gsm support is broken with gr3.9: https://github.com/gnuradio/gnuradio/issues/4278
|
gr-vocoder = {
|
||||||
# gr-vocoder = {
|
runtime = [ codec2 gsm ];
|
||||||
# runtime = [ codec2 gsm ];
|
cmakeEnableFlag = "GR_VOCODER";
|
||||||
# cmakeEnableFlag = "GR_VOCODER";
|
};
|
||||||
# };
|
|
||||||
gr-wavelet = {
|
gr-wavelet = {
|
||||||
cmakeEnableFlag = "GR_WAVELET";
|
cmakeEnableFlag = "GR_WAVELET";
|
||||||
runtime = [ gsl libsodium ];
|
runtime = [ gsl libsodium ];
|
||||||
@ -234,7 +233,6 @@ stdenv.mkDerivation rec {
|
|||||||
src
|
src
|
||||||
nativeBuildInputs
|
nativeBuildInputs
|
||||||
buildInputs
|
buildInputs
|
||||||
cmakeFlags
|
|
||||||
disallowedReferences
|
disallowedReferences
|
||||||
stripDebugList
|
stripDebugList
|
||||||
doCheck
|
doCheck
|
||||||
@ -250,6 +248,22 @@ stdenv.mkDerivation rec {
|
|||||||
} // lib.optionalAttrs (hasFeature "gr-qtgui" features) {
|
} // lib.optionalAttrs (hasFeature "gr-qtgui" features) {
|
||||||
inherit (libsForQt5) qwt;
|
inherit (libsForQt5) qwt;
|
||||||
};
|
};
|
||||||
|
cmakeFlags = shared.cmakeFlags
|
||||||
|
# From some reason, if these are not set, libcodec2 and gsm are not
|
||||||
|
# detected properly.
|
||||||
|
++ lib.optionals (hasFeature "gr-vocoder" features) [
|
||||||
|
"-DLIBCODEC2_FOUND=TRUE"
|
||||||
|
"-DLIBCODEC2_LIBRARIES=${codec2}/lib/libcodec2.so"
|
||||||
|
"-DLIBCODEC2_INCLUDE_DIRS=${codec2}/include"
|
||||||
|
"-DLIBCODEC2_HAS_FREEDV_API=ON"
|
||||||
|
"-DLIBGSM_FOUND=TRUE"
|
||||||
|
"-DLIBGSM_LIBRARIES=${gsm}/lib/libgsm.so"
|
||||||
|
"-DLIBGSM_INCLUDE_DIRS=${gsm}/include/gsm"
|
||||||
|
]
|
||||||
|
++ lib.optionals (hasFeature "volk" features && volk != null) [
|
||||||
|
"-DENABLE_INTERNAL_VOLK=OFF"
|
||||||
|
]
|
||||||
|
;
|
||||||
|
|
||||||
postInstall = shared.postInstall
|
postInstall = shared.postInstall
|
||||||
# This is the only python reference worth removing, if needed.
|
# This is the only python reference worth removing, if needed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user