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

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

96 lines
1.7 KiB
Nix
Raw Normal View History

2021-04-09 07:52:40 +00: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 12:20:02 +00:00
}:
2020-11-04 22:26:33 +00:00
mkDerivation rec {
2019-08-25 12:20:02 +00:00
pname = "sdrangel";
2022-02-02 02:39:00 +00:00
version = "6.18.1";
2019-08-25 12:20:02 +00:00
src = fetchFromGitHub {
owner = "f4exb";
repo = "sdrangel";
rev = "v${version}";
2022-02-02 02:39:00 +00:00
sha256 = "sha256-gf+RUOcki0pi3UH4NHFsmbTV04HUG16UC4jcUjyeip4=";
2019-08-25 12:20:02 +00:00
fetchSubmodules = false;
};
nativeBuildInputs = [ cmake pkg-config ];
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
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 12:20:02 +00:00
];
2021-04-09 07:52:40 +00:00
2019-08-25 12:20:02 +00: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 12:20:02 +00:00
];
LD_LIBRARY_PATH = "${ocl-icd}/lib";
meta = with lib; {
description = "Software defined radio (SDR) software";
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
'';
homepage = "https://github.com/f4exb/sdrangel";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ alkeryn ];
2021-04-09 07:52:40 +00:00
platforms = platforms.linux;
2019-08-25 12:20:02 +00:00
};
}