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

70 lines
1.4 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,
pkgconfig,
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,
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-11-04 22:26:33 +00:00
version = "4.21.1";
2019-08-25 13:20:02 +01:00
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
2020-11-04 22:26:33 +00:00
sha256 = "y6BVwnSJXiapgm9pAuby1DLLeU5MSyB4uqEa3oS35/U=";
2019-08-25 13:20:02 +01:00
fetchSubmodules = false;
};
nativeBuildInputs = [ cmake pkgconfig ];
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
libbladeRF uhd
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"
];
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 ];
};
}