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
|
2023-03-24 00:07:29 +00:00
|
|
|
, ninja
|
2023-11-16 04:20:00 +00:00
|
|
|
, opencv4
|
2021-04-17 00:35:05 +00:00
|
|
|
, pkg-config
|
|
|
|
, qtcharts
|
2023-03-24 00:07:29 +00:00
|
|
|
, qtdeclarative
|
2023-07-15 17:15:38 +00:00
|
|
|
, qtgamepad
|
2023-03-24 00:07:29 +00:00
|
|
|
, 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
|
2023-10-09 19:29:22 +00:00
|
|
|
, sdrplay
|
2022-09-22 12:36:57 +00:00
|
|
|
, sgp4
|
2021-04-17 00:35:05 +00:00
|
|
|
, soapysdr-with-plugins
|
|
|
|
, uhd
|
2023-04-29 16:46:19 +00:00
|
|
|
, wrapQtAppsHook
|
2023-03-24 00:07:29 +00:00
|
|
|
, zlib
|
2023-10-09 19:29:22 +00:00
|
|
|
, withSDRplay ? false
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "sdrangel";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "7.22.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "sdrangel";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-cF6vKwAWz32/XYUWvq/4Wu73TFQ2jaGIFxWmeXmlPCE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
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
|
2023-11-16 04:20:00 +00:00
|
|
|
opencv4
|
2021-04-17 00:35:05 +00:00
|
|
|
qtcharts
|
2023-03-24 00:07:29 +00:00
|
|
|
qtdeclarative
|
2023-07-15 17:15:38 +00:00
|
|
|
qtgamepad
|
2023-03-24 00:07:29 +00:00
|
|
|
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
|
2023-10-09 19:29:22 +00:00
|
|
|
]
|
|
|
|
++ lib.optionals withSDRplay [ sdrplay ];
|
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-04-29 16:46:19 +00:00
|
|
|
"-DDAB_DIR=${dab_lib}"
|
2022-09-22 12:36:57 +00:00
|
|
|
"-DSGP4_DIR=${sgp4}"
|
2020-12-25 13:55:36 +00:00
|
|
|
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
|
2023-04-29 16:46:19 +00:00
|
|
|
"-Wno-dev"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Software defined radio (SDR) software";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/f4exb/sdrangel";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
'';
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with lib.maintainers; [ alkeryn Tungsten842 ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-08-22 20:05:09 +00:00
|
|
|
})
|