sdrangel: add missing dependencies and fix DAB demodulator

This commit is contained in:
Tungsten842 2023-03-16 20:52:40 +01:00
parent 4a1c127928
commit 33c369df8f

View File

@ -23,14 +23,20 @@
, libbladeRF
, mbelib
, mkDerivation
, ninja
, ocl-icd
, opencv3
, pkg-config
, qtcharts
, qtdeclarative
, qtgraphicaleffects
, qtlocation
, qtmultimedia
, qtquickcontrols
, qtquickcontrols2
, qtserialport
, qtspeech
, qttools
, qtwebsockets
, qtwebengine
, rtl-sdr
@ -38,6 +44,7 @@
, sgp4
, soapysdr-with-plugins
, uhd
, zlib
}:
mkDerivation rec {
@ -48,10 +55,10 @@ mkDerivation rec {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
sha256 = "sha256-hsYt7zGG6CSWeQ9A3GPt65efjZGPu33O5pIhnZjFgmY=";
hash = "sha256-hsYt7zGG6CSWeQ9A3GPt65efjZGPu33O5pIhnZjFgmY=";
};
nativeBuildInputs = [ cmake pkg-config ];
nativeBuildInputs = [ cmake ninja pkg-config ];
buildInputs = [
airspy
@ -77,10 +84,15 @@ mkDerivation rec {
mbelib
opencv3
qtcharts
qtdeclarative
qtgraphicaleffects
qtlocation
qtmultimedia
qtquickcontrols
qtquickcontrols2
qtserialport
qtspeech
qttools
qtwebsockets
qtwebengine
rtl-sdr
@ -88,11 +100,12 @@ mkDerivation rec {
sgp4
soapysdr-with-plugins
uhd
zlib
];
cmakeFlags = [
"-DAPT_DIR=${aptdec}"
"-DDAB_LIB=${dab_lib}"
"-DDAB_INCLUDE_DIR:PATH=${dab_lib}/include/dab_lib"
"-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
"-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include"
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite.so"