Merge pull request #220746 from Tungsten842/sdrangel

This commit is contained in:
Sandro 2023-03-19 22:39:23 +01:00 committed by GitHub
commit 42abb58ab3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,14 +24,20 @@
, libbladeRF
, mbelib
, mkDerivation
, ninja
, ocl-icd
, opencv3
, pkg-config
, qtcharts
, qtdeclarative
, qtgraphicaleffects
, qtlocation
, qtmultimedia
, qtquickcontrols
, qtquickcontrols2
, qtserialport
, qtspeech
, qttools
, qtwebsockets
, qtwebengine
, rtl-sdr
@ -39,6 +45,7 @@
, sgp4
, soapysdr-with-plugins
, uhd
, zlib
}:
mkDerivation rec {
@ -49,10 +56,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
@ -78,10 +85,15 @@ mkDerivation rec {
mbelib
opencv3
qtcharts
qtdeclarative
qtgraphicaleffects
qtlocation
qtmultimedia
qtquickcontrols
qtquickcontrols2
qtserialport
qtspeech
qttools
qtwebsockets
qtwebengine
rtl-sdr
@ -89,11 +101,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${stdenv.hostPlatform.extensions.sharedLibrary}"