2021-04-09 08:52:40 +01:00
|
|
|
{ airspy
|
|
|
|
, boost
|
|
|
|
, cm256cc
|
|
|
|
, cmake
|
|
|
|
, codec2
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fftwFloat
|
|
|
|
, glew
|
|
|
|
, hackrf
|
|
|
|
, lib
|
|
|
|
, ffmpeg
|
|
|
|
, libiio
|
|
|
|
, libopus
|
|
|
|
, libpulseaudio
|
|
|
|
, libusb1
|
|
|
|
, limesuite
|
|
|
|
, libbladeRF
|
|
|
|
, mkDerivation
|
|
|
|
, ocl-icd
|
|
|
|
, opencv3
|
|
|
|
, pkg-config
|
|
|
|
, qtcharts
|
|
|
|
, qtlocation
|
|
|
|
, qtmultimedia
|
|
|
|
, qtserialport
|
|
|
|
, qtspeech
|
|
|
|
, qtwebsockets
|
|
|
|
, rtl-sdr
|
|
|
|
, serialdv
|
|
|
|
, soapysdr-with-plugins
|
|
|
|
, uhd
|
2019-08-25 13:20:02 +01:00
|
|
|
}:
|
|
|
|
|
2020-11-04 22:26:33 +00:00
|
|
|
mkDerivation rec {
|
2019-08-25 13:20:02 +01:00
|
|
|
pname = "sdrangel";
|
2021-04-09 08:52:40 +01:00
|
|
|
version = "6.8.0";
|
2019-08-25 13:20:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "sdrangel";
|
|
|
|
rev = "v${version}";
|
2021-04-09 08:52:40 +01:00
|
|
|
sha256 = "sha256-dFWwEs2nvcaCWpM4tA3/w8PbmNXn/R7JvxP3XEHasSQ=";
|
2019-08-25 13:20:02 +01:00
|
|
|
fetchSubmodules = false;
|
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2021-04-09 08:52:40 +01:00
|
|
|
|
2019-08-25 13:20:02 +01:00
|
|
|
buildInputs = [
|
2021-04-09 08:52:40 +01:00
|
|
|
airspy
|
|
|
|
boost
|
|
|
|
cm256cc
|
|
|
|
codec2
|
|
|
|
ffmpeg
|
|
|
|
fftwFloat
|
|
|
|
glew
|
|
|
|
hackrf
|
|
|
|
libbladeRF
|
|
|
|
libiio
|
|
|
|
libopus
|
|
|
|
libpulseaudio
|
|
|
|
libusb1
|
|
|
|
limesuite
|
|
|
|
opencv3
|
|
|
|
qtcharts
|
|
|
|
qtlocation
|
|
|
|
qtmultimedia
|
|
|
|
qtserialport
|
|
|
|
qtspeech
|
|
|
|
qtwebsockets
|
|
|
|
rtl-sdr
|
|
|
|
serialdv
|
|
|
|
soapysdr-with-plugins
|
|
|
|
uhd
|
2019-08-25 13:20:02 +01:00
|
|
|
];
|
2021-04-09 08:52:40 +01:00
|
|
|
|
2019-08-25 13:20:02 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
|
|
|
|
"-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include"
|
|
|
|
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite.so"
|
2020-12-22 01:25:00 +00:00
|
|
|
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
|
2019-08-25 13:20:02 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH = "${ocl-icd}/lib";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Software defined radio (SDR) software";
|
|
|
|
longDescription = ''
|
2021-04-09 08:52:40 +01:00
|
|
|
SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
2019-08-25 13:20:02 +01:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/f4exb/sdrangel";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ alkeryn ];
|
2021-04-09 08:52:40 +01:00
|
|
|
platforms = platforms.linux;
|
2019-08-25 13:20:02 +01:00
|
|
|
};
|
|
|
|
}
|