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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

117 lines
1.9 KiB
Nix
Raw Normal View History

2021-04-09 09:52:40 +02:00
{ airspy
2022-09-11 07:58:51 +02:00
, airspyhf
, aptdec
2021-04-09 09:52:40 +02:00
, boost
, cm256cc
, cmake
, codec2
2022-09-11 07:58:51 +02:00
, dab_lib
, dsdcc
, faad2
2021-04-09 09:52:40 +02:00
, fetchFromGitHub
, fftwFloat
, glew
, hackrf
2022-09-11 07:58:51 +02:00
, hidapi
2021-04-09 09:52:40 +02:00
, lib
, ffmpeg
, libiio
, libopus
, libpulseaudio
, libusb1
, limesuite
, libbladeRF
2022-09-11 07:58:51 +02:00
, mbelib
2021-04-09 09:52:40 +02:00
, mkDerivation
, ocl-icd
, opencv3
, pkg-config
, qtcharts
, qtlocation
, qtmultimedia
, qtserialport
, qtspeech
, qtwebsockets
2022-09-11 07:58:51 +02:00
, qtwebengine
2021-04-09 09:52:40 +02:00
, rtl-sdr
, serialdv
2022-09-11 07:58:51 +02:00
, sgp4
2021-04-09 09:52:40 +02:00
, 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";
2022-11-17 03:46:09 +01:00
version = "7.8.3";
2019-08-25 14:20:02 +02:00
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
2022-11-17 03:46:09 +01:00
sha256 = "sha256-zP3Ic0mru0FcX7ZuE/IKGmHA596lq5Y1cWdBESzzU0U=";
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
2022-09-11 07:58:51 +02:00
airspyhf
aptdec
2021-04-09 09:52:40 +02:00
boost
cm256cc
codec2
2022-09-11 07:58:51 +02:00
dab_lib
dsdcc
faad2
2021-04-09 09:52:40 +02:00
ffmpeg
fftwFloat
glew
hackrf
2022-09-11 07:58:51 +02:00
hidapi
2021-04-09 09:52:40 +02:00
libbladeRF
libiio
libopus
libpulseaudio
libusb1
limesuite
2022-09-11 07:58:51 +02:00
mbelib
2021-04-09 09:52:40 +02:00
opencv3
qtcharts
qtlocation
qtmultimedia
qtserialport
qtspeech
qtwebsockets
2022-09-11 07:58:51 +02:00
qtwebengine
2021-04-09 09:52:40 +02:00
rtl-sdr
serialdv
2022-09-11 07:58:51 +02:00
sgp4
2021-04-09 09:52:40 +02:00
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 = [
2022-09-11 07:58:51 +02:00
"-DAPT_DIR=${aptdec}"
"-DDAB_LIB=${dab_lib}"
2019-08-25 14:20:02 +02:00
"-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
"-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include"
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite.so"
2022-09-11 07:58:51 +02:00
"-DSGP4_DIR=${sgp4}"
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
};
}