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

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

135 lines
2.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, airspy
2022-09-11 05:58:51 +00:00
, airspyhf
, aptdec
2021-04-09 07:52:40 +00:00
, boost
, cm256cc
, cmake
, codec2
2022-09-11 05:58:51 +00:00
, dab_lib
, dsdcc
, faad2
2021-04-09 07:52:40 +00:00
, fetchFromGitHub
, fftwFloat
, glew
, hackrf
2022-09-11 05:58:51 +00:00
, hidapi
2021-04-09 07:52:40 +00:00
, ffmpeg
, libiio
, libopus
, libpulseaudio
, libusb1
, limesuite
, libbladeRF
2022-09-11 05:58:51 +00:00
, mbelib
, ninja
2023-09-21 16:27:00 +00:00
, opencv4
2021-04-09 07:52:40 +00:00
, pkg-config
, qtcharts
, qtdeclarative
2023-05-26 09:19:45 +00:00
, qtgamepad
, qtgraphicaleffects
2021-04-09 07:52:40 +00:00
, qtlocation
, qtmultimedia
, qtquickcontrols
, qtquickcontrols2
2021-04-09 07:52:40 +00:00
, qtserialport
, qtspeech
, qttools
2021-04-09 07:52:40 +00:00
, qtwebsockets
2022-09-11 05:58:51 +00:00
, qtwebengine
2021-04-09 07:52:40 +00:00
, rtl-sdr
, serialdv
2023-09-09 20:03:18 +00:00
, sdrplay
2022-09-11 05:58:51 +00:00
, sgp4
2021-04-09 07:52:40 +00:00
, soapysdr-with-plugins
, uhd
, wrapQtAppsHook
, zlib
2023-09-09 20:03:18 +00:00
, withSDRplay ? false
2019-08-25 12:20:02 +00:00
}:
2023-08-16 15:13:27 +00:00
stdenv.mkDerivation (finalAttrs: {
2019-08-25 12:20:02 +00:00
pname = "sdrangel";
2024-04-14 18:08:38 +00:00
version = "7.20.0";
2019-08-25 12:20:02 +00:00
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
2023-08-16 15:13:27 +00:00
rev = "v${finalAttrs.version}";
2024-04-14 18:08:38 +00:00
hash = "sha256-sS/ASTMdNJpllHqtmUsG+qBQ77j8IcG6l4g53/Lmcwk=";
2019-08-25 12:20:02 +00:00
};
2023-08-16 15:13:27 +00:00
nativeBuildInputs = [
cmake
ninja
pkg-config
wrapQtAppsHook
];
2021-04-09 07:52:40 +00:00
2019-08-25 12:20:02 +00:00
buildInputs = [
2021-04-09 07:52:40 +00:00
airspy
2022-09-11 05:58:51 +00:00
airspyhf
aptdec
2021-04-09 07:52:40 +00:00
boost
cm256cc
codec2
2022-09-11 05:58:51 +00:00
dab_lib
dsdcc
faad2
2021-04-09 07:52:40 +00:00
ffmpeg
fftwFloat
glew
hackrf
2022-09-11 05:58:51 +00:00
hidapi
2021-04-09 07:52:40 +00:00
libbladeRF
libiio
libopus
libpulseaudio
libusb1
limesuite
2022-09-11 05:58:51 +00:00
mbelib
2023-09-21 16:27:00 +00:00
opencv4
2021-04-09 07:52:40 +00:00
qtcharts
qtdeclarative
2023-05-26 09:19:45 +00:00
qtgamepad
qtgraphicaleffects
2021-04-09 07:52:40 +00:00
qtlocation
qtmultimedia
qtquickcontrols
qtquickcontrols2
2021-04-09 07:52:40 +00:00
qtserialport
qtspeech
qttools
2021-04-09 07:52:40 +00:00
qtwebsockets
2022-09-11 05:58:51 +00:00
qtwebengine
2021-04-09 07:52:40 +00:00
rtl-sdr
serialdv
2022-09-11 05:58:51 +00:00
sgp4
2021-04-09 07:52:40 +00:00
soapysdr-with-plugins
uhd
zlib
2023-09-09 20:03:18 +00:00
]
++ lib.optionals withSDRplay [ sdrplay ];
2021-04-09 07:52:40 +00:00
2019-08-25 12:20:02 +00:00
cmakeFlags = [
2022-09-11 05:58:51 +00:00
"-DAPT_DIR=${aptdec}"
"-DDAB_DIR=${dab_lib}"
2022-09-11 05:58:51 +00:00
"-DSGP4_DIR=${sgp4}"
2020-12-22 01:25:00 +00:00
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
"-Wno-dev"
2019-08-25 12:20:02 +00:00
];
2023-08-16 15:13:27 +00:00
meta = {
2019-08-25 12:20:02 +00:00
description = "Software defined radio (SDR) software";
2023-08-16 15:13:27 +00:00
homepage = "https://github.com/f4exb/sdrangel";
license = lib.licenses.gpl3Plus;
2019-08-25 12:20:02 +00:00
longDescription = ''
2021-04-09 07:52:40 +00:00
SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
2019-08-25 12:20:02 +00:00
'';
2023-08-16 15:13:27 +00:00
maintainers = with lib.maintainers; [ alkeryn Tungsten842 ];
platforms = lib.platforms.unix;
2019-08-25 12:20:02 +00:00
};
2023-08-16 15:13:27 +00:00
})