3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/sdrangel/default.nix

72 lines
1.5 KiB
Nix
Raw Normal View History

2019-08-25 13:20:02 +01:00
{
airspy,
2019-08-25 13:20:02 +01:00
boost,
cm256cc,
cmake,
codec2,
fetchFromGitHub,
fftwFloat,
glew,
hackrf,
2019-08-25 13:20:02 +01:00
lib,
libav,
libiio,
libopus,
libpulseaudio,
2020-11-04 22:26:33 +00:00
libusb1,
2019-08-25 13:20:02 +01:00
limesuite,
2020-11-04 22:26:33 +00:00
libbladeRF,
2019-08-25 13:20:02 +01:00
mkDerivation,
ocl-icd,
opencv3,
pkg-config,
2019-08-25 13:20:02 +01:00
qtbase,
qtmultimedia,
2020-11-04 22:26:33 +00:00
qtserialport,
2019-08-25 13:20:02 +01:00
qtwebsockets,
rtl-sdr,
2020-11-04 22:26:33 +00:00
serialdv,
2020-12-20 23:11:31 +00:00
soapysdr-with-plugins,
2020-11-04 22:26:33 +00:00
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";
2020-12-23 16:58:04 +00:00
version = "6.4.0";
2019-08-25 13:20:02 +01:00
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
2020-12-23 16:58:04 +00:00
sha256 = "4iJoKs0BHmBR6JRFuTIqs0GW3SjhPRMPRlqdyTI38T4=";
2019-08-25 13:20:02 +01:00
fetchSubmodules = false;
};
nativeBuildInputs = [ cmake pkg-config ];
2019-08-25 13:20:02 +01:00
buildInputs = [
2020-11-04 22:26:33 +00:00
glew opencv3 libusb1 boost libopus limesuite libav libiio libpulseaudio
qtbase qtwebsockets qtmultimedia rtl-sdr airspy hackrf
2020-11-04 22:26:33 +00:00
fftwFloat codec2 cm256cc serialdv qtserialport
2020-12-20 23:11:31 +00:00
libbladeRF uhd soapysdr-with-plugins
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 = ''
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 ];
};
}