nixpkgs-suyu/pkgs/applications/radio/sdrangel/default.nix

72 lines
1.5 KiB
Nix
Raw Normal View History

2019-08-25 14:20:02 +02:00
{
airspy,
2019-08-25 14:20:02 +02:00
boost,
cm256cc,
cmake,
codec2,
fetchFromGitHub,
fftwFloat,
glew,
hackrf,
2019-08-25 14:20:02 +02:00
lib,
2021-01-30 20:06:13 +01:00
ffmpeg,
2019-08-25 14:20:02 +02:00
libiio,
libopus,
libpulseaudio,
2020-11-04 23:26:33 +01:00
libusb1,
2019-08-25 14:20:02 +02:00
limesuite,
2020-11-04 23:26:33 +01:00
libbladeRF,
2019-08-25 14:20:02 +02:00
mkDerivation,
ocl-icd,
opencv3,
pkg-config,
2019-08-25 14:20:02 +02:00
qtbase,
qtmultimedia,
2020-11-04 23:26:33 +01:00
qtserialport,
2019-08-25 14:20:02 +02:00
qtwebsockets,
rtl-sdr,
2020-11-04 23:26:33 +01:00
serialdv,
2020-12-21 00:11:31 +01:00
soapysdr-with-plugins,
2020-11-04 23:26:33 +01:00
uhd
2019-08-25 14:20:02 +02:00
}:
2020-11-04 23:26:33 +01:00
mkDerivation rec {
2019-08-25 14:20:02 +02:00
pname = "sdrangel";
2020-12-23 17:58:04 +01:00
version = "6.4.0";
2019-08-25 14:20:02 +02:00
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
2020-12-23 17:58:04 +01:00
sha256 = "4iJoKs0BHmBR6JRFuTIqs0GW3SjhPRMPRlqdyTI38T4=";
2019-08-25 14:20:02 +02:00
fetchSubmodules = false;
};
nativeBuildInputs = [ cmake pkg-config ];
2019-08-25 14:20:02 +02:00
buildInputs = [
2021-01-30 20:06:13 +01:00
glew opencv3 libusb1 boost libopus limesuite ffmpeg libiio libpulseaudio
qtbase qtwebsockets qtmultimedia rtl-sdr airspy hackrf
2020-11-04 23:26:33 +01:00
fftwFloat codec2 cm256cc serialdv qtserialport
2020-12-21 00:11:31 +01:00
libbladeRF uhd soapysdr-with-plugins
2019-08-25 14:20:02 +02: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 02:25:00 +01:00
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
2019-08-25 14:20:02 +02:00
];
LD_LIBRARY_PATH = "${ocl-icd}/lib";
meta = with lib; {
description = "Software defined radio (SDR) software";
longDescription = ''
SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
'';
homepage = "https://github.com/f4exb/sdrangel";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ alkeryn ];
};
}