2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, airspy
|
2022-09-22 12:36:57 +00:00
|
|
|
, airspyhf
|
|
|
|
, aptdec
|
2021-04-17 00:35:05 +00:00
|
|
|
, boost
|
|
|
|
, cm256cc
|
|
|
|
, cmake
|
|
|
|
, codec2
|
2022-09-22 12:36:57 +00:00
|
|
|
, dab_lib
|
|
|
|
, dsdcc
|
|
|
|
, faad2
|
2021-04-17 00:35:05 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fftwFloat
|
|
|
|
, glew
|
|
|
|
, hackrf
|
2022-09-22 12:36:57 +00:00
|
|
|
, hidapi
|
2021-04-17 00:35:05 +00:00
|
|
|
, ffmpeg
|
|
|
|
, libiio
|
|
|
|
, libopus
|
|
|
|
, libpulseaudio
|
|
|
|
, libusb1
|
|
|
|
, limesuite
|
|
|
|
, libbladeRF
|
2022-09-22 12:36:57 +00:00
|
|
|
, mbelib
|
2021-04-17 00:35:05 +00:00
|
|
|
, mkDerivation
|
2023-03-24 00:07:29 +00:00
|
|
|
, ninja
|
2021-04-17 00:35:05 +00:00
|
|
|
, ocl-icd
|
|
|
|
, opencv3
|
|
|
|
, pkg-config
|
|
|
|
, qtcharts
|
2023-03-24 00:07:29 +00:00
|
|
|
, qtdeclarative
|
|
|
|
, qtgraphicaleffects
|
2021-04-17 00:35:05 +00:00
|
|
|
, qtlocation
|
|
|
|
, qtmultimedia
|
2023-03-24 00:07:29 +00:00
|
|
|
, qtquickcontrols
|
|
|
|
, qtquickcontrols2
|
2021-04-17 00:35:05 +00:00
|
|
|
, qtserialport
|
|
|
|
, qtspeech
|
2023-03-24 00:07:29 +00:00
|
|
|
, qttools
|
2021-04-17 00:35:05 +00:00
|
|
|
, qtwebsockets
|
2022-09-22 12:36:57 +00:00
|
|
|
, qtwebengine
|
2021-04-17 00:35:05 +00:00
|
|
|
, rtl-sdr
|
|
|
|
, serialdv
|
2022-09-22 12:36:57 +00:00
|
|
|
, sgp4
|
2021-04-17 00:35:05 +00:00
|
|
|
, soapysdr-with-plugins
|
|
|
|
, uhd
|
2023-03-24 00:07:29 +00:00
|
|
|
, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "sdrangel";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "7.11.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "sdrangel";
|
|
|
|
rev = "v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-zWux84a1MCK0XJXRXcaLHieJ47d4n/wO/xdwTYuuGJw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config ];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-04-17 00:35:05 +00:00
|
|
|
airspy
|
2022-09-22 12:36:57 +00:00
|
|
|
airspyhf
|
|
|
|
aptdec
|
2021-04-17 00:35:05 +00:00
|
|
|
boost
|
|
|
|
cm256cc
|
|
|
|
codec2
|
2022-09-22 12:36:57 +00:00
|
|
|
dab_lib
|
|
|
|
dsdcc
|
|
|
|
faad2
|
2021-04-17 00:35:05 +00:00
|
|
|
ffmpeg
|
|
|
|
fftwFloat
|
|
|
|
glew
|
|
|
|
hackrf
|
2022-09-22 12:36:57 +00:00
|
|
|
hidapi
|
2021-04-17 00:35:05 +00:00
|
|
|
libbladeRF
|
|
|
|
libiio
|
|
|
|
libopus
|
|
|
|
libpulseaudio
|
|
|
|
libusb1
|
|
|
|
limesuite
|
2022-09-22 12:36:57 +00:00
|
|
|
mbelib
|
2021-04-17 00:35:05 +00:00
|
|
|
opencv3
|
|
|
|
qtcharts
|
2023-03-24 00:07:29 +00:00
|
|
|
qtdeclarative
|
|
|
|
qtgraphicaleffects
|
2021-04-17 00:35:05 +00:00
|
|
|
qtlocation
|
|
|
|
qtmultimedia
|
2023-03-24 00:07:29 +00:00
|
|
|
qtquickcontrols
|
|
|
|
qtquickcontrols2
|
2021-04-17 00:35:05 +00:00
|
|
|
qtserialport
|
|
|
|
qtspeech
|
2023-03-24 00:07:29 +00:00
|
|
|
qttools
|
2021-04-17 00:35:05 +00:00
|
|
|
qtwebsockets
|
2022-09-22 12:36:57 +00:00
|
|
|
qtwebengine
|
2021-04-17 00:35:05 +00:00
|
|
|
rtl-sdr
|
|
|
|
serialdv
|
2022-09-22 12:36:57 +00:00
|
|
|
sgp4
|
2021-04-17 00:35:05 +00:00
|
|
|
soapysdr-with-plugins
|
|
|
|
uhd
|
2023-03-24 00:07:29 +00:00
|
|
|
zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
cmakeFlags = [
|
2022-09-22 12:36:57 +00:00
|
|
|
"-DAPT_DIR=${aptdec}"
|
2023-03-24 00:07:29 +00:00
|
|
|
"-DDAB_INCLUDE_DIR:PATH=${dab_lib}/include/dab_lib"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
|
|
|
|
"-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include"
|
2023-03-24 00:07:29 +00:00
|
|
|
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite${stdenv.hostPlatform.extensions.sharedLibrary}"
|
2022-09-22 12:36:57 +00:00
|
|
|
"-DSGP4_DIR=${sgp4}"
|
2020-12-25 13:55:36 +00:00
|
|
|
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH = "${ocl-icd}/lib";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Software defined radio (SDR) software";
|
|
|
|
longDescription = ''
|
2021-04-17 00:35:05 +00:00
|
|
|
SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/f4exb/sdrangel";
|
|
|
|
license = licenses.gpl3Plus;
|
2023-03-27 19:17:25 +00:00
|
|
|
maintainers = with maintainers; [ alkeryn Tungsten842 ];
|
2023-03-24 00:07:29 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|