mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
130 lines
2.2 KiB
Nix
130 lines
2.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, airspy
|
|
, airspyhf
|
|
, aptdec
|
|
, boost
|
|
, cm256cc
|
|
, cmake
|
|
, codec2
|
|
, dab_lib
|
|
, dsdcc
|
|
, faad2
|
|
, fetchFromGitHub
|
|
, fftwFloat
|
|
, glew
|
|
, hackrf
|
|
, hidapi
|
|
, ffmpeg
|
|
, libiio
|
|
, libopus
|
|
, libpulseaudio
|
|
, libusb1
|
|
, limesuite
|
|
, libbladeRF
|
|
, mbelib
|
|
, mkDerivation
|
|
, ninja
|
|
, ocl-icd
|
|
, opencv3
|
|
, pkg-config
|
|
, qtcharts
|
|
, qtdeclarative
|
|
, qtgraphicaleffects
|
|
, qtlocation
|
|
, qtmultimedia
|
|
, qtquickcontrols
|
|
, qtquickcontrols2
|
|
, qtserialport
|
|
, qtspeech
|
|
, qttools
|
|
, qtwebsockets
|
|
, qtwebengine
|
|
, rtl-sdr
|
|
, serialdv
|
|
, sgp4
|
|
, soapysdr-with-plugins
|
|
, uhd
|
|
, zlib
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "sdrangel";
|
|
version = "7.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "f4exb";
|
|
repo = "sdrangel";
|
|
rev = "v${version}";
|
|
hash = "sha256-hsYt7zGG6CSWeQ9A3GPt65efjZGPu33O5pIhnZjFgmY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config ];
|
|
|
|
buildInputs = [
|
|
airspy
|
|
airspyhf
|
|
aptdec
|
|
boost
|
|
cm256cc
|
|
codec2
|
|
dab_lib
|
|
dsdcc
|
|
faad2
|
|
ffmpeg
|
|
fftwFloat
|
|
glew
|
|
hackrf
|
|
hidapi
|
|
libbladeRF
|
|
libiio
|
|
libopus
|
|
libpulseaudio
|
|
libusb1
|
|
limesuite
|
|
mbelib
|
|
opencv3
|
|
qtcharts
|
|
qtdeclarative
|
|
qtgraphicaleffects
|
|
qtlocation
|
|
qtmultimedia
|
|
qtquickcontrols
|
|
qtquickcontrols2
|
|
qtserialport
|
|
qtspeech
|
|
qttools
|
|
qtwebsockets
|
|
qtwebengine
|
|
rtl-sdr
|
|
serialdv
|
|
sgp4
|
|
soapysdr-with-plugins
|
|
uhd
|
|
zlib
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DAPT_DIR=${aptdec}"
|
|
"-DDAB_INCLUDE_DIR:PATH=${dab_lib}/include/dab_lib"
|
|
"-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
|
|
"-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include"
|
|
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite${stdenv.hostPlatform.extensions.sharedLibrary}"
|
|
"-DSGP4_DIR=${sgp4}"
|
|
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
|
|
];
|
|
|
|
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;
|
|
maintainers = with maintainers; [ alkeryn ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|