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

96 lines
1.7 KiB
Nix
Raw Normal View History

2021-04-09 09:52:40 +02: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 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";
2021-10-29 05:04:12 +02:00
version = "6.17.2";
2019-08-25 14:20:02 +02:00
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
2021-10-29 05:04:12 +02:00
sha256 = "sha256-sMD2JTJJlssMdXCUHdFYjEqGknhGGuG4szfnvFFN7t4=";
2019-08-25 14:20:02 +02:00
fetchSubmodules = false;
};
nativeBuildInputs = [ cmake pkg-config ];
2021-04-09 09:52:40 +02:00
2019-08-25 14:20:02 +02:00
buildInputs = [
2021-04-09 09:52:40 +02: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 14:20:02 +02:00
];
2021-04-09 09:52:40 +02:00
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 = ''
2021-04-09 09:52:40 +02:00
SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
2019-08-25 14:20:02 +02:00
'';
homepage = "https://github.com/f4exb/sdrangel";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ alkeryn ];
2021-04-09 09:52:40 +02:00
platforms = platforms.linux;
2019-08-25 14:20:02 +02:00
};
}